Class StaticBossRoom

java.lang.Object
com.csse3200.game.areas.GameArea
com.csse3200.game.areas.StaticBossRoom
All Implemented Interfaces:
com.badlogic.gdx.utils.Disposable

public class StaticBossRoom extends GameArea
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
  • Constructor Details

    • StaticBossRoom

      public StaticBossRoom(TerrainFactory terrainFactory, CameraComponent cameraComponent)
      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
      Specified by:
      create in class GameArea
    • getPlayer

      public Entity getPlayer()
      Description copied from class: GameArea
      allows manipulation of player character by loading function
      Specified by:
      getPlayer in class GameArea
      Returns:
      player entity
    • loadTunnel

      public void loadTunnel()