-
player
Player player
The only controllable object in the game.
- See Also:
Player
-
gamePhase
GamePhase gamePhase
The current game phase
-
tutorialState
TutorialState tutorialState
Current state of the tutorial
-
hasLitter
boolean hasLitter
Whether the Player is carrying
Litter
.
-
spacePressed
boolean spacePressed
Whether the space key is currently pressed down.
-
crabDirection
int crabDirection
-
plantDamage
int plantDamage
The amount of health to detract from the Plant every time it is damaged
-
tBin
Receptacle tBin
The trash bin
-
rBin
Receptacle rBin
The recycle bin
-
trashVictory
boolean trashVictory
Whether the trash bin recently received a piece of Litter
-
recycleVictory
boolean recycleVictory
Whether the recycle bin recently received a piece of Litter
-
trashGlow
int trashGlow
A count of the number of frames the trash bin has been in glowing victory state for
-
recycleGlow
int recycleGlow
A count of the number of frames the recycle bin has been in glowing victory state for
-
crab
Animal crab
The Crab, currently the only Animal in the game.
-
animals
java.util.HashSet<E> animals
Every animal in the world. Currently only the crab.
-
litterSet
java.util.HashSet<E> litterSet
HashSet of all of the current Litter objects in the game
-
litterAttrSet
java.util.HashSet<E> litterAttrSet
HashSet where every element is an ArrayList containing the x and y
coordinates of the Litter objects, as well as the imgID and LitterType to
send to View
-
animalXIncr
int animalXIncr
The horizontal speed of the Crab
-
animalYIncr
int animalYIncr
The vertical speed of the Crab
-
hasLost
boolean hasLost
Whether the player has lost
-
playerMove
boolean playerMove
Whether the player is allowed to move this frame. Set to false under specific
circumstances, i.e. when colliding with an Animal
-
pickedUp
Litter pickedUp
-
pickedUpAttr
java.util.ArrayList<E> pickedUpAttr
ArrayList of Litter imgID and LitterType of Model.pickedUp Litter attribute
to send to View
-
animalEatenLitter
Litter animalEatenLitter
The last Litter to be picked up by an
animal
-
plants
java.util.ArrayList<E> plants
Contains plant objects
-
randPlant
int randPlant
Random index of next plant
-
tutorialPlantGrown
boolean tutorialPlantGrown
Boolean variable that represents whether the player has planted the plant
that despawns in the tutorial
-
tutorialAnimalAteLitter
boolean tutorialAnimalAteLitter
Boolean variable that represents whether the animal has eaten the Litter in
the tutorial
-
tutorialArrowKeyPrompt
boolean tutorialArrowKeyPrompt
Boolean that represents whether the arrow key prompt should be shown on
screen.
-
tutorialHoverLitter
boolean tutorialHoverLitter
Boolean that represents whether or not the Player is hovering, but not
picking up a Litter object
-
river
River river
onscreen river
-
startTime
long startTime
The time in milliseconds that the game has begun
-
endTimeMilli
int endTimeMilli
How many milliseconds the game should last
-
totalLitterCollected
int totalLitterCollected
The number of Litter objects that the Player has picked up throughout the game
-
totalPlantsPlanted
int totalPlantsPlanted
The number of Plants that the Player has replanted throughout the game