Class ForestGameArea

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

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

    • oneLegGirlPosition

      public static com.badlogic.gdx.math.GridPoint2 oneLegGirlPosition
    • oneLegGirlDialoguePosition

      public static com.badlogic.gdx.math.GridPoint2 oneLegGirlDialoguePosition
    • HumanGuardPosition

      public static com.badlogic.gdx.math.GridPoint2 HumanGuardPosition
    • HumanGuardDialoguePosition

      public static com.badlogic.gdx.math.GridPoint2 HumanGuardDialoguePosition
    • PlumberFriendPosition

      public static com.badlogic.gdx.math.GridPoint2 PlumberFriendPosition
    • PLumberFriendDialoguePosition

      public static com.badlogic.gdx.math.GridPoint2 PLumberFriendDialoguePosition
    • maleCitizenPosition

      public static com.badlogic.gdx.math.GridPoint2 maleCitizenPosition
    • maleCitizenDialoguePosition

      public static com.badlogic.gdx.math.GridPoint2 maleCitizenDialoguePosition
    • childPosition

      public static com.badlogic.gdx.math.GridPoint2 childPosition
    • childDialoguePosition

      public static com.badlogic.gdx.math.GridPoint2 childDialoguePosition
  • Constructor Details

    • ForestGameArea

      public ForestGameArea(TerrainFactory terrainFactory)
  • Method Details

    • getPlayer

      public Entity getPlayer()
      Get the player entity from the map.
      Overrides:
      getPlayer in class GameArea
      Returns:
      player entity.
    • ifHeraclesOnMap

      public static boolean ifHeraclesOnMap()
      Check if Heracles is alive on map
    • create

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

      public void spawnTerrain()
    • removeAuraOnMap

      public static void removeAuraOnMap(Entity entityToRemove)
    • removeItemOnMap

      public static void removeItemOnMap(Entity entityToRemove)
    • removeProjectileOnMap

      public static void removeProjectileOnMap(Entity entityToRemove)
    • spawnEntityOnMap

      public void spawnEntityOnMap(Entity entity, com.badlogic.gdx.math.GridPoint2 position, Boolean centreX, Boolean centreY)
    • spawnCraftingTables

      public void spawnCraftingTables()
      Spawns the crafting table entity on the forest map
    • spawnPlayer

      public Entity spawnPlayer()
      Spawns the player entity, with a skill and combat animator overlaid above the player.
      Returns:
      the player entity
    • spawnPlayerProjectile

      public void spawnPlayerProjectile()
      Spawns a projectile at the player entity's coordinates.
    • spawnPlayerProjectileSpray

      public void spawnPlayerProjectileSpray()
      Spawns a spray of projectiles at the player entity's coordinates.
    • spawnPlayerProjectileCone

      public void spawnPlayerProjectileCone()
      Spawns a spray of projectiles at the player entity's coordinates.
    • spawnWeaponProjectile

      public void spawnWeaponProjectile()
      Spawns a weapon bow projectile at the player entity's coordinates.
    • spawnPlayerAOE

      public Entity spawnPlayerAOE()
      Spawns an AOE attack at the player entity's coordinates.
    • getOneLegGirlPosition

      public static com.badlogic.gdx.math.GridPoint2 getOneLegGirlPosition()
    • GridPointToVector

      public static com.badlogic.gdx.math.Vector2 GridPointToVector(com.badlogic.gdx.math.GridPoint2 position)
    • getChildPosition

      public static com.badlogic.gdx.math.GridPoint2 getChildPosition()
    • spawnMaleCitizen

      public void spawnMaleCitizen()
      Spawn male NPC in random position. - Team 7 all-mid-npc
    • getMaleCitizenPosition

      public static com.badlogic.gdx.math.GridPoint2 getMaleCitizenPosition()
    • 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
    • toString

      public String toString()
      toString returning a string of the classes name
      Overrides:
      toString in class Object
      Returns:
      (String) class name