Package com.csse3200.game.areas
Class ForestGameArea
java.lang.Object
com.csse3200.game.areas.GameArea
com.csse3200.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.csse3200.game.areas.GameArea
areaEntities, terrain
-
Constructor Summary
ConstructorDescriptionInitialise this ForestGameArea to use the provided TerrainFactory. -
Method Summary
Methods inherited from class com.csse3200.game.areas.GameArea
spawnEntity, spawnEntityAt
-
Constructor Details
-
ForestGameArea
public ForestGameArea()Initialise this ForestGameArea to use the provided TerrainFactory.- Requires:
- terrainFactory != null
-
-
Method Details
-
create
public void create()Create the game area, including terrain, static entities (trees), dynamic entities (player) -
spawnMob
Spawn an entity on the map. Is called during a wave. Add cases here for each mob type- Parameters:
entity
- mob to be spawnedrandomPos
- position to be spawned athealth
- health of the mob
-
dispose
public void dispose()Description copied from class:GameArea
Dispose of all internal entities in the area
-