Package com.csse3200.game.areas
Class StorageGameArea
java.lang.Object
com.csse3200.game.areas.GameArea
com.csse3200.game.areas.StorageGameArea
- All Implemented Interfaces:
com.badlogic.gdx.utils.Disposable
The "Storage" area of the game map. This class:
- Builds the terrain (background)
- Spawns the player and necessary props
- Generates the doors to the previous and next room
-
Nested Class Summary
Nested classes/interfaces inherited from class com.csse3200.game.areas.GameArea
GameArea.Bounds
-
Field Summary
Fields inherited from class com.csse3200.game.areas.GameArea
areaEntities, baseScaling, cameraComponent, isTransitioning, roomNumber, terrain, terrainFactory, wavesManager
-
Constructor Summary
ConstructorsConstructorDescriptionStorageGameArea
(TerrainFactory terrainFactory, CameraComponent cameraComponent) Initialise this StorageGameArea to use the provided TerrainFactory and camera helper. -
Method Summary
Modifier and TypeMethodDescriptionvoid
create()
Create the game area, including terrain, static entities (platforms), dynamic entities (player) Entry point for this room.allows manipulation of player character by loading functionstatic StorageGameArea
load
(TerrainFactory terrainFactory, CameraComponent camera) toString()
Methods inherited from class com.csse3200.game.areas.GameArea
addSolidWallBottom, addSolidWallLeft, addSolidWallRight, addSolidWallTop, addVerticalDoorLeft, addVerticalDoorRight, beginTransition, clearAndLoad, dispose, endTransition, ensurePlayerAtlas, ensureTextures, getBaseDifficultyScale, getCameraBounds, getEnemySpawnPosition, getEntities, getRoomNumber, getRoomSpawnPosition, loadArea, removeEntity, setupTerrainWithOverlay, spawnDeepspin, spawnEnemies, spawnEntity, spawnEntityAt, spawnEntityInRoom, spawnFloor, spawnGhostGPT, spawnGhostGPTProjectile, spawnGrokDroid, spawnItem, spawnObjectDoors, spawnTurret, spawnVroomba, startWaves, unloadAssets
-
Constructor Details
-
StorageGameArea
Initialise this StorageGameArea to use the provided TerrainFactory and camera helper. The camera is used to size the screen-edge walls and place the right-side door trigger.- Parameters:
terrainFactory
- TerrainFactory used to create the terrain for the GameArea (required).cameraComponent
- Camera helper supplying an OrthographicCamera (optional but used here).- Requires:
- terrainFactory != null
-
-
Method Details
-
create
public void create()Create the game area, including terrain, static entities (platforms), dynamic entities (player) Entry point for this room. This: - Loads textures - Creates the terrain, walls, and UI label - Spawns player, props, and enemies (to be added) -
toString
-
getPlayer
Description copied from class:GameArea
allows manipulation of player character by loading function -
load
-