Package com.csse3200.game.areas
Class SpaceGameArea
java.lang.Object
com.csse3200.game.areas.GameArea
com.csse3200.game.areas.SpaceGameArea
- All Implemented Interfaces:
com.badlogic.gdx.utils.Disposable
SpaceGameArea is the area used for the initial game version
-
Field Summary
Fields inherited from class com.csse3200.game.areas.GameArea
areaEntities, terrain
-
Constructor Summary
ConstructorsConstructorDescriptionSpaceGameArea
(TerrainFactory terrainFactory) Initialise this ForestGameArea to use the provided TerrainFactory. -
Method Summary
Modifier and TypeMethodDescriptionvoid
create()
Create the game area, including terrain, static entities (trees), dynamic entities (player)void
dispose()
Dispose of all internal entities in the areaGetter for hostileSpawner in this game areagetMap()
Returns the game mapvoid
Spawns the player highlight entity Is the yellow square that highlights the tile the player is hovering overMethods inherited from class com.csse3200.game.areas.GameArea
deSpawnEntity, getAreaEntities, getLoadableTypes, getTractor, removeEntity, removeLoadableEntities, setPlayer, setTractor, spawnEntity, spawnEntityAt
-
Constructor Details
-
SpaceGameArea
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) -
getHostileSpawner
Getter for hostileSpawner in this game area- Returns:
- EntitiesSpawner for hostiles
-
getPlayer
-
getClimateController
- Specified by:
getClimateController
in classGameArea
-
dispose
public void dispose()Description copied from class:GameArea
Dispose of all internal entities in the area -
getMap
Returns the game map -
spawnPlayerHighlight
public void spawnPlayerHighlight()Spawns the player highlight entity Is the yellow square that highlights the tile the player is hovering over
-