Package com.csse3200.game.areas
Class TemplateGameArea
java.lang.Object
com.csse3200.game.areas.GameArea
com.csse3200.game.areas.TemplateGameArea
- All Implemented Interfaces:
com.badlogic.gdx.utils.Disposable
-
Field Summary
Fields inherited from class com.csse3200.game.areas.GameArea
areaEntities, combatStats, deathLocations, grid, inventory, isResetting, player, tileBounds -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddispose()Dispose of all internal entities in the areaprotected voidLoads assetsprotected voidLoads all entities in a given areaprotected voidLoads prerequisites for each area.protected EntitySpawns playerprotected EntityspawnPlayer(List<Component> componentList) Spawns player with previous componentsMethods inherited from class com.csse3200.game.areas.GameArea
create, createMinimap, createWithPlayer, getComponents, getDeathLocations, getEvents, getMapBounds, getPlayer, recordDeathLocation, reset, saveComponents, setDeathMarkerTexture, spawnDeathMarker, spawnDeathMarkers, spawnEntity, spawnEntityAt, trigger
-
Constructor Details
-
TemplateGameArea
-
-
Method Details
-
loadPrerequisites
protected void loadPrerequisites()Description copied from class:GameAreaLoads prerequisites for each area. Music, sounds, grid etc- Specified by:
loadPrerequisitesin classGameArea
-
loadEntities
protected void loadEntities()Description copied from class:GameAreaLoads all entities in a given area- Specified by:
loadEntitiesin classGameArea
-
spawnPlayer
Description copied from class:GameAreaSpawns player- Specified by:
spawnPlayerin classGameArea- Returns:
- player entity
-
spawnPlayer
Description copied from class:GameAreaSpawns player with previous components- Specified by:
spawnPlayerin classGameArea- Parameters:
componentList- the list of components with witch to create the player- Returns:
- Player entity with old components
-
loadAssets
protected void loadAssets()Description copied from class:GameAreaLoads assets- Specified by:
loadAssetsin classGameArea
-
dispose
public void dispose()Description copied from class:GameAreaDispose of all internal entities in the area
-