Class ServerGameArea

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

public class ServerGameArea extends GameArea
Server Room. Has several platforms as well as server racks sprites. Is attached to Tunnel Room.
  • Constructor Details

    • ServerGameArea

      public ServerGameArea(TerrainFactory terrainFactory, CameraComponent cameraComponent)
      Constructor for the Server Room, simples calls GameArea constructor.
      Parameters:
      terrainFactory - the game's terrain factory (set in MainGameScreen)
      cameraComponent - the game's camera component (set in MainGameScreen)
  • Method Details

    • create

      public void create()
      The create function for the Server Room. Loads assets, displays UI, spawns terrain, spawns in side wall, platforms, room objects (server racks) and spawn pads. Then spawns the player in bottom left, spawns a rifle on the purple spawn pad, and then spawns the floor.
      Specified by:
      create in class GameArea
    • getPlayer

      public Entity getPlayer()
      Getter method for the player entity
      Specified by:
      getPlayer in class GameArea
      Returns:
      Entity player
    • toString

      public String toString()
      Overrides:
      toString in class GameArea
    • load

      public static ServerGameArea load(TerrainFactory terrainFactory, CameraComponent camera)