Class MovingBossRoom

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

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

    • MovingBossRoom

      public MovingBossRoom(TerrainFactory terrainFactory, CameraComponent cameraComponent)
      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
      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
    • loadSecurity

      public void loadSecurity()
    • loadOffice

      public void loadOffice()