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
FieldsFields inherited from class com.deco2800.game.areas.GameArea
areaEntities, terrain -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcreate()Create the game area, including terrain, static entities (trees), dynamic entities (player)voiddispose()Dispose of all internal entities in the areavoidvoidvoidvoidupdatePlayerHealth(int health) Methods inherited from class com.deco2800.game.areas.GameArea
spawnEntity, spawnEntityAt
-
Field Details
-
key
-
-
Constructor Details
-
ForestGameArea
-
-
Method Details
-
nextLevel
public void nextLevel() -
create
public void create()Create the game area, including terrain, static entities (trees), dynamic entities (player) -
updatePlayerHealth
public void updatePlayerHealth(int health) -
spawnTimeConsumeableItem
public void spawnTimeConsumeableItem() -
spawnKey
-
dispose
public void dispose()Description copied from class:GameAreaDispose of all internal entities in the area
-