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, inventory, player, terrain
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
dispose()
Dispose of all internal entities in the areaprotected void
Loads assetsprotected void
Loads all entities in a given areaprotected void
Loads prerequisites for each area.protected Entity
Spawns playerprotected Entity
spawnPlayer
(List<Component> componentList) Spawns player with previous componentsMethods inherited from class com.csse3200.game.areas.GameArea
create, createMinimap, createWithPlayer, getComponents, getEvents, getPlayer, reset, saveComponents, spawnEntity, spawnEntityAt, trigger
-
Constructor Details
-
TemplateGameArea
-
-
Method Details
-
loadPrerequisites
protected void loadPrerequisites()Description copied from class:GameArea
Loads prerequisites for each area. Music, sounds, terrain etc- Specified by:
loadPrerequisites
in classGameArea
-
loadEntities
protected void loadEntities()Description copied from class:GameArea
Loads all entities in a given area- Specified by:
loadEntities
in classGameArea
-
spawnPlayer
Description copied from class:GameArea
Spawns player- Specified by:
spawnPlayer
in classGameArea
- Returns:
- player entity
-
spawnPlayer
Description copied from class:GameArea
Spawns player with previous components- Specified by:
spawnPlayer
in classGameArea
- Parameters:
componentList
-- Returns:
- Player entity with old components
-
loadAssets
protected void loadAssets()Description copied from class:GameArea
Loads assets- Specified by:
loadAssets
in classGameArea
-
dispose
public void dispose()Description copied from class:GameArea
Dispose of all internal entities in the area
-