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.GridPoint2static com.badlogic.gdx.math.GridPoint2static com.badlogic.gdx.math.GridPoint2static com.badlogic.gdx.math.GridPoint2Fields inherited from class com.deco2800.game.areas.GameArea
areaEntities, terrain - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionvoidcreate()Create the game area, including terrain, static entities (trees), dynamic entities (player)voiddispose()Dispose of all internal entities in the areastatic com.badlogic.gdx.math.Vector2getFriendlycreaturePosition(com.badlogic.gdx.math.GridPoint2 friendlycreaturePosition) static com.badlogic.gdx.math.GridPoint2Get the player entity from the map.static booleanCheck if Mega Poop is alive on mapstatic voidremoveAuraOnMap(Entity entityToRemove) static voidremoveItemOnMap(Entity entityToRemove) static voidremoveProjectileOnMap(Entity entityToRemove) voidSpawns the crafting table entity on the underground mapSpawns an AOE attack at the player entity's coordinates.voidSpawns a spray of projectiles at the player entity's coordinates.voidSpawns a spray of projectiles at the player entity's coordinates.voidSpawns 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:GameAreaDispose 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. 
 -