Package com.deco2800.game.areas
Class ForestGameArea
java.lang.Object
com.deco2800.game.areas.GameArea
com.deco2800.game.areas.ForestGameArea
- All Implemented Interfaces:
com.badlogic.gdx.utils.Disposable
Forest area for the demo game with trees, a player, and some enemies.
-
Field Summary
Fields inherited from class com.deco2800.game.areas.GameArea
areaEntities, terrain
-
Constructor Summary
ConstructorsConstructorDescriptionForestGameArea
(TerrainFactory terrainFactory) Initialise this ForestGameArea to use the provided TerrainFactory. -
Method Summary
Methods inherited from class com.deco2800.game.areas.GameArea
spawnEntity, spawnEntityAt
-
Constructor Details
-
ForestGameArea
Initialise this ForestGameArea to use the provided TerrainFactory.- Parameters:
terrainFactory
- TerrainFactory used to create the terrain for the GameArea.- Requires:
- terrainFactory != null
-
-
Method Details
-
create
public void create()Create the game area, including terrain, static entities (trees), dynamic entities (player) -
dispose
public void dispose()Description copied from class:GameArea
Dispose of all internal entities in the area
-