Class ForestGameArea

java.lang.Object
com.csse3200.game.areas.GameArea
com.csse3200.game.areas.ForestGameArea
All Implemented Interfaces:
com.badlogic.gdx.utils.Disposable
Direct Known Subclasses:
GoodEnd

public class ForestGameArea extends GameArea
Forest area for the demo game with trees, a player, and some enemies.
  • Constructor Details

    • ForestGameArea

      public ForestGameArea(TerrainFactory terrainFactory, GdxGame.LevelType level, UpgradesDisplay upgradesDisplay)
      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
    • getCustomerSpawnController

      public Entity getCustomerSpawnController()
    • 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
    • getLevel

      public GdxGame.LevelType getLevel()
      Returns the level the game is currently on.
      Returns:
      level - the level the player is currently on