Package com.csse3200.game.areas
Class StaticBossRoom
java.lang.Object
com.csse3200.game.areas.GameArea
com.csse3200.game.areas.StaticBossRoom
- All Implemented Interfaces:
com.badlogic.gdx.utils.Disposable
This is the room that holds the static Boss.
The boss is a static enemy that spawns on the floor and
shoots projectiles outwards from itself. Most
challenging boss.
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
ConstructorsConstructorDescriptionStaticBossRoom
(TerrainFactory terrainFactory, CameraComponent cameraComponent) Creates a new StaticBossRoom for the room where the static 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
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
-
StaticBossRoom
Creates a new StaticBossRoom for the room where the static 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 -
loadTunnel
public void loadTunnel()
-