Package com.csse3200.game.areas
Class ServerGameArea
java.lang.Object
com.csse3200.game.areas.GameArea
com.csse3200.game.areas.ServerGameArea
- All Implemented Interfaces:
com.badlogic.gdx.utils.Disposable
Server Room. Has several platforms as well as server racks sprites.
Is attached to Tunnel 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
ConstructorsConstructorDescriptionServerGameArea
(TerrainFactory terrainFactory, CameraComponent cameraComponent) Constructor for the Server Room, simples calls GameArea constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoid
create()
The create function for the Server Room.Getter method for the player entitystatic ServerGameArea
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
-
ServerGameArea
Constructor for the Server Room, simples calls GameArea constructor.- Parameters:
terrainFactory
- the game's terrain factory (set in MainGameScreen)cameraComponent
- the game's camera component (set in MainGameScreen)
-
-
Method Details
-
create
public void create()The create function for the Server Room. Loads assets, displays UI, spawns terrain, spawns in side wall, platforms, room objects (server racks) and spawn pads. Then spawns the player in bottom left, spawns a rifle on the purple spawn pad, and then spawns the floor. -
getPlayer
Getter method for the player entity -
toString
-
load
-