Class SpaceGameArea

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

public class SpaceGameArea extends GameArea
SpaceGameArea is the area used for the initial game version
  • Constructor Details

    • SpaceGameArea

      public SpaceGameArea(TerrainFactory terrainFactory)
      Initialise this ForestGameArea to use the provided TerrainFactory.
      Parameters:
      terrainFactory - TerrainFactory used to create the terrain for the GameArea.
      Requires:
      terrainFactory != null
  • Method Details

    • create

      public void create()
      Create the game area, including terrain, static entities (trees), dynamic entities (player)
      Specified by:
      create in class GameArea
    • getHostileSpawner

      public EntitiesSpawner getHostileSpawner()
      Getter for hostileSpawner in this game area
      Returns:
      EntitiesSpawner for hostiles
    • getPlayer

      public Entity getPlayer()
      Overrides:
      getPlayer in class GameArea
    • getClimateController

      public ClimateController getClimateController()
      Specified by:
      getClimateController in class GameArea
    • dispose

      public void dispose()
      Description copied from class: GameArea
      Dispose of all internal entities in the area
      Specified by:
      dispose in interface com.badlogic.gdx.utils.Disposable
      Overrides:
      dispose in class GameArea
    • getMap

      public GameMap getMap()
      Returns the game map
      Specified by:
      getMap in class GameArea
    • spawnPlayerHighlight

      public void spawnPlayerHighlight()
      Spawns the player highlight entity Is the yellow square that highlights the tile the player is hovering over