Class MapGameArea

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

public class MapGameArea extends GameArea
A Base Game Area for any level. Details of map can be defined in a config file to be passed to the constructor
  • Constructor Details

  • Method Details

    • getSpeedMult

      public static float getSpeedMult()
    • create

      public void create()
      Create the game area
      Specified by:
      create in class GameArea
    • loadAssets

      protected void loadAssets()
      Loads all assets listed in the config file
    • removeItemOnMap

      public static void removeItemOnMap(Entity entityToRemove)
    • getPlayer

      public static Entity getPlayer()
    • 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
    • unloadAssets

      protected void unloadAssets()
      Unloads all assets from config file