Package com.deco2800.game.areas
Class ForestGameArea
java.lang.Object
com.deco2800.game.areas.GameArea
com.deco2800.game.areas.ForestGameArea
- All Implemented Interfaces:
com.badlogic.gdx.utils.Disposable
Forest area for the demo game with trees, a player, and some enemies.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic com.badlogic.gdx.math.GridPoint2
static com.badlogic.gdx.math.GridPoint2
static com.badlogic.gdx.math.GridPoint2
static com.badlogic.gdx.math.GridPoint2
static com.badlogic.gdx.math.GridPoint2
static com.badlogic.gdx.math.GridPoint2
static com.badlogic.gdx.math.GridPoint2
static com.badlogic.gdx.math.GridPoint2
static com.badlogic.gdx.math.GridPoint2
static com.badlogic.gdx.math.GridPoint2
Fields inherited from class com.deco2800.game.areas.GameArea
areaEntities, terrain
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
create()
Create the game area, including terrain, static entities (trees), dynamic entities (player)void
dispose()
Dispose of all internal entities in the areastatic com.badlogic.gdx.math.GridPoint2
static com.badlogic.gdx.math.GridPoint2
static com.badlogic.gdx.math.GridPoint2
Get the player entity from the map.static com.badlogic.gdx.math.Vector2
GridPointToVector
(com.badlogic.gdx.math.GridPoint2 position) static boolean
Check if Heracles is alive on mapstatic void
removeAuraOnMap
(Entity entityToRemove) static void
removeItemOnMap
(Entity entityToRemove) static void
removeProjectileOnMap
(Entity entityToRemove) void
Spawns the crafting table entity on the forest mapvoid
spawnEntityOnMap
(Entity entity, com.badlogic.gdx.math.GridPoint2 position, Boolean centreX, Boolean centreY) void
Spawn male NPC in random position.Spawns the player entity, with a skill and combat animator overlaid above the player.Spawns an AOE attack at the player entity's coordinates.void
Spawns a projectile at the player entity's coordinates.void
Spawns a spray of projectiles at the player entity's coordinates.void
Spawns a spray of projectiles at the player entity's coordinates.void
void
Spawns a weapon bow projectile at the player entity's coordinates.toString()
toString returning a string of the classes nameMethods inherited from class com.deco2800.game.areas.GameArea
setPlayer, spawnEntity, spawnEntityAt
-
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
-
-
Method Details
-
getPlayer
Get the player entity from the map. -
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) -
spawnTerrain
public void spawnTerrain() -
removeAuraOnMap
-
removeItemOnMap
-
removeProjectileOnMap
-
spawnEntityOnMap
-
spawnCraftingTables
public void spawnCraftingTables()Spawns the crafting table entity on the forest map -
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
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 -
toString
toString returning a string of the classes name
-