Package com.csse3200.game.areas
Class FlyingBossRoom
java.lang.Object
com.csse3200.game.areas.GameArea
com.csse3200.game.areas.FlyingBossRoom
- All Implemented Interfaces:
com.badlogic.gdx.utils.Disposable
This is the room that holds the Flying Boss.
The boss is a flying enemy that spawns at the top of the map and
shoots projectiles at the player.
There are two platforms that can possibly server as cover as well as a floor
at the bottom
-
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
ConstructorsConstructorDescriptionFlyingBossRoom
(TerrainFactory terrainFactory, CameraComponent cameraComponent) Creates a new FlyingBossRoom for the room where the flying boss spawns. -
Method Summary
Modifier and TypeMethodDescriptionvoid
create()
Creates the room by: - spawning doors - displaying the UI - spawns player - spawns platforms - spanws walls - spawns the flying boss - spawns itemsallows 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
-
FlyingBossRoom
Creates a new FlyingBossRoom 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: - spawning doors - displaying the UI - spawns player - spawns platforms - spanws walls - spawns the flying boss - spawns items -
getPlayer
Description copied from class:GameArea
allows manipulation of player character by loading function -
loadShipping
public void loadShipping() -
loadResearch
public void loadResearch()
-