Package com.deco2800.game.areas
Class UndergroundGameArea
java.lang.Object
com.deco2800.game.areas.GameArea
com.deco2800.game.areas.UndergroundGameArea
- All Implemented Interfaces:
com.badlogic.gdx.utils.Disposable
Underground 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
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.Vector2
getFriendlycreaturePosition
(com.badlogic.gdx.math.GridPoint2 friendlycreaturePosition) static com.badlogic.gdx.math.GridPoint2
Get the player entity from the map.static boolean
Check if Mega Poop 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 underground mapSpawns an AOE attack 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
Spawns a 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
-
GuardPosition
public static com.badlogic.gdx.math.GridPoint2 GuardPosition -
GuardDialoguePosition
public static com.badlogic.gdx.math.GridPoint2 GuardDialoguePosition -
friendlycreaturePosition
public static com.badlogic.gdx.math.GridPoint2 friendlycreaturePosition -
friendlycreatureDialoguePosition
public static com.badlogic.gdx.math.GridPoint2 friendlycreatureDialoguePosition
-
-
Constructor Details
-
UndergroundGameArea
-
-
Method Details
-
getPlayer
Get the player entity from the map. -
create
public void create()Create the game area, including terrain, static entities (trees), dynamic entities (player) -
ifMegaPoopOnMap
public static boolean ifMegaPoopOnMap()Check if Mega Poop is alive on map -
spawnCraftingTable
public void spawnCraftingTable()Spawns the crafting table entity on the underground map -
getGuardPosition
public static com.badlogic.gdx.math.GridPoint2 getGuardPosition() -
getFriendlycreaturePosition
public static com.badlogic.gdx.math.Vector2 getFriendlycreaturePosition(com.badlogic.gdx.math.GridPoint2 friendlycreaturePosition) -
spawnWeaponProjectile
public void spawnWeaponProjectile()Spawns a projectile at the player entity's coordinates. -
spawnPlayerAOE
Spawns an AOE attack at the player entity's coordinates. -
removeProjectileOnMap
-
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 -
removeAuraOnMap
-
removeItemOnMap
-
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.
-