Package com.csse3200.game.areas
Class MovingBossRoom
java.lang.Object
com.csse3200.game.areas.GameArea
com.csse3200.game.areas.MovingBossRoom
- All Implemented Interfaces:
com.badlogic.gdx.utils.Disposable
This is the room that holds the Ground Moving Boss Boss.
This boss is a small robot that moves towards the player and attacks
Room is empty except for boss and player
-
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
ConstructorsConstructorDescriptionMovingBossRoom
(TerrainFactory terrainFactory, CameraComponent cameraComponent) Creates a new MovingBossRoom for the room where the flying boss spawns. -
Method Summary
Modifier and TypeMethodDescriptionvoid
create()
Creates the room by: - loading assest - displaying the UI - spawning terrain (without door triggers) - spawn player and rifle - spawns static boss - spawns floorsallows manipulation of player character by loading functionvoid
void
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, toString, unloadAssets
-
Constructor Details
-
MovingBossRoom
Creates a new MovingBossRoom for the room where the flying boss spawns.- Parameters:
terrainFactory
- TerrainFactory used to create the terrain for the GameArea (required).cameraComponent
- Camera helper supplying an OrthographicCamera (optional but used here).- Requires:
- terrainFactory not null
-
-
Method Details
-
create
public void create()Creates the room by: - loading assest - displaying the UI - spawning terrain (without door triggers) - spawn player and rifle - spawns static boss - spawns floors -
getPlayer
Description copied from class:GameArea
allows manipulation of player character by loading function -
loadSecurity
public void loadSecurity() -
loadOffice
public void loadOffice()
-