- cheatState - Variable in class MVC.Controller
-
The stage of counting "cheat" typing
- checkCollision() - Method in class MVC.Model
-
Method that deals with all the various collisions in the game.
- checkPlants() - Method in class MVC.Model
-
Method called to decide if all plants are gone and whether to flood the river
- checkPlayerAnimalCollision() - Method in class MVC.Model
-
Method that checks whether the crab has collided with the player.
- checkPlayerWallCollision() - Method in class MVC.Model
-
Checks whether the player is walking of the screen in any dimension, and prevents the player from doing so.
- checkTutorialStates() - Method in class MVC.Model
-
Checks the current state of the tutorial, and calls tutorial events and
changes tutorial states as the player progresses through the tutorial.
- Controller - Class in MVC
-
Manages interfacing
View
and
Model
, as well as managing timed loops.
- Controller() - Constructor for class MVC.Controller
-
- Controller.damagePlantTask - Class in MVC
-
TimerTask that handles damaging plants in a certain interval.
- Controller.TrashTask - Class in MVC
-
TimerTask subclass that handles the spawning of Litter object around the map at the set interval it was scheduled at by calling the appropriate Model to View communication.
- crab - Variable in class MVC.Model
-
The Crab, currently the only Animal in the game.
- crabDirection - Variable in class MVC.Model
-
- crabXLoc - Static variable in class MVC.View
-
The x location of the crab in world coordinates
- crabYLoc - Static variable in class MVC.View
-
The y location of the crab in world coordinates
- curDir - Variable in class MapObjects.Animal
-
Current Direction of the Animal
- damagePlant() - Method in class MVC.Model
-
Method called to decrement plant health by the plantdamage integer value
- damagePlant(int) - Method in class MVC.Model
-
Method called to damage a specific plant by the plantdamage integer value
- damagePlantTask() - Constructor for class MVC.Controller.damagePlantTask
-
- Direction - Enum in Player
-
Represents a movement direction on the screen using cardinal and inter-cardinal directions.
- Direction() - Constructor for enum Player.Direction
-
- direction - Variable in class Player.Player
-
Movement direction.
- DRAW_DELAY - Static variable in class MVC.Controller
-
The delay between game frames
- drawEndScreenOverlay(Graphics) - Method in class MVC.View
-
Draws the end screen text onto the screen.
- drawHealth(Graphics) - Method in class MVC.View
-
Draws the health bar and the crabs in the upper right hand corner of the
screen.
- drawImage(Graphics, Sprite.ID, int, int) - Method in class MVC.View
-
Renders a
Sprite.ID
onto the given Graphics by consuming
world coordinates.
- drawLitterContainerOverlay(Graphics) - Method in class MVC.View
-
Draws the litter container overlay
- drawOverlayBox(Graphics) - Method in class MVC.View
-
Draws a box on the screen appropriate for title screen, end score, etc.
- drawRiver(Graphics2D, int) - Method in class MVC.View
-
Draws the river on the screen.
- drawStartScreenText(Graphics) - Method in class MVC.View
-
Draws the start screen text onto the screen.
- drawString(Graphics, String, int, int, int, View.HorizLocation, View.VertLocation) - Method in class MVC.View
-
Draws a string centered in the specified horizontal line by consuming
world coordinates.
- drawTimer(Graphics) - Method in class MVC.View
-
Draws a timer on the screen.
- drawTutorialOverlays(Graphics) - Method in class MVC.View
-
Draws the tutorial overlay
- dx - Variable in class Player.Player
-
Horizontal movement direction.
- dy - Variable in class Player.Player
-
Vertical movement direction.
- GamePhase - Enum in MVC
-
Represents the current phase of the game the player is in.
- GamePhase(boolean) - Constructor for enum MVC.GamePhase
-
- gamePhase - Variable in class MVC.Model
-
The current game phase
- gamePhase - Variable in class MVC.View
-
The current phase of the game
- getAnimal() - Method in class MVC.Model
-
Gets the Animal of the game.
- getAnimalEatenLitter() - Method in class MVC.Model
-
- getAnimalXIncr() - Method in class MVC.Model
-
Simple getter method that retrieves the amount the x coordinate should be
incremented by.
- getAnimalYIncr() - Method in class MVC.Model
-
Simple getter method that retrieves the amount the y coordinate should be
incremented by.
- getCollidesWith(Interactable) - Method in class MapObjects.Interactable
-
Determines whether this Interactable and another are colliding according to their collision boxes.
- getCollisionRect() - Method in class MapObjects.Interactable
-
Returns a rectangle representing the collision box of the Interactable,
relative to world coordinate 0,0.
Note that this is
different from the
Interactable.relativeCollisionBox
used internally.
- getDirection() - Method in class MapObjects.Animal
-
Simple getter method that retrieves the current direction of the animal.
- getDirection() - Method in class Player.Player
-
- getDx() - Method in class Player.Player
-
Returns the Dx of the current Player.
- getDy() - Method in class Player.Player
-
Returns the Dy of the current Player
- getEndTime() - Method in class MVC.Model
-
Method that returns how long the game should last in milliseconds
- getFrameDimensions() - Method in class MVC.View
-
Returns the dimensions of the inner frame in pixels.
- getFrameHeight() - Method in class MVC.View
-
Returns the height in pixels of the inner frame.
- getFrameHorizOffset() - Method in class MVC.View
-
Returns the distance in pixels between a side of the window and the inner
frame.
- getFrameVertOffset() - Method in class MVC.View
-
Returns the distance in pixels between the top/bottom of the window and the
inner frame.
- getFrameWidth() - Method in class MVC.View
-
Returns the width in pixels of the inner frame.
- getGamePhase() - Method in class MVC.Model
-
Sets the last picked up litter to the parameter
- getHasLost() - Method in class MVC.Model
-
Get whether the player has lost,
- getHealth() - Method in class MapObjects.Animal
-
Simple getter method that retrieves the current health of the animal.
- getHealth() - Method in class MapObjects.Plant
-
Gets health of plant object
- getHealth() - Method in class Player.Player
-
Gets the current health of the player
- getHeight() - Method in class MapObjects.Interactable
-
- getHeight() - Method in class MVC.Model
-
Gets the height of the Model
- getID() - Method in enum MapObjects.LitterType
-
- getID() - Method in enum MapObjects.ReceptacleType
-
- getImage(Sprite.ID, double) - Static method in class MVC.Sprite
-
Retrieve the correctly scaled image for the given id, according to the given scaleFactor, loading from disk if necessary, scaling if necessary, and tiling if necessary.
- getImage(double) - Method in class MVC.Sprite
-
Retrieve the correctly scaled image according to the scaleFactor, loading from disk if necessary, scaling if necessary, and tiling if necessary.
- getImgID() - Method in class MapObjects.Litter
-
Method that returns the imgID that is used to map the litter object to its Sprite in View.
- getLitterAttr(Litter) - Method in class MVC.Model
-
Take a litter object and adds its attributes to an ArrayList of Integers that can be passed on to view
The first and second integer in the ArrayList returns represents the x and y location of the Litter object respectively
The third integer represents the imgID, the fourth represents the LitterType represented as an integer.
- getLitterAttrSet() - Method in class MVC.Model
-
Returns the HashSet
> of Litter attributes used to send to View to avoid calling Litter methods in the view and maintain MVC.
- getLitterSet() - Method in class MVC.Model
-
Returns the HashSet of Litter objects in the game.
- getPickedUpAttr() - Method in class MVC.Model
-
Returns the ArrayList corresponding to the Litter object of the
player's most recently picked up Litter object
- getPickedUpLitter() - Method in class MVC.Model
-
Gets the Litter most recently picked up by the Player.
- getPlants() - Method in class MVC.Model
-
Method called to return plant array
- getPlayer() - Method in class MVC.Model
-
Gets the Player of the game
- getPlayerSprite() - Method in class MVC.View
-
Determines which
Sprite.ID
to use to render the player.
- getRandPlant() - Method in class MVC.Model
-
Method called to return randPlant index
- getRawImage(Sprite.ID) - Static method in class MVC.Sprite
-
Retrieves thet unscaled version of the image.
- getRawImage() - Method in class MVC.Sprite
-
Retrieve the unscaled image, loading from disk if necessary.
- getRBin() - Method in class MVC.Model
-
- getRecycleVictory() - Method in class MVC.Model
-
- getRiver() - Method in class MVC.Model
-
Method called to return river
- getSpacePressed() - Method in class MVC.Model
-
Gets whether the space key is pressed down.
- getSpeed() - Method in class Player.Player
-
- getSpriteID(int, int) - Method in class MVC.View
-
Chooses a Sprite ID to represent a Litter object.
- getStartTime() - Method in class MVC.Model
-
Method to determine the game's start time
- getStatus() - Method in class Player.Player
-
- getTBin() - Method in class MVC.Model
-
- getTotalLitterCollected() - Method in class MVC.Model
-
Returns the number of Litter objects that were collected throughout the game.
- getTotalPlantsPlanted() - Method in class MVC.Model
-
Get the number of plants that were planted throughout the game.
- getTrashVictory() - Method in class MVC.Model
-
- getTutorialState() - Method in class MVC.Model
-
Returns the current state of the tutorial, more specifically which stage of
the tutorial the player is on.
- getType() - Method in class MapObjects.Litter
-
Returns this Litter object's lType attribute that represents the kind of Litter it is.
- getType() - Method in class MapObjects.Receptacle
-
Method that returns the ReceptacleType
- getWidth() - Method in class MapObjects.Interactable
-
- getWidth() - Method in class MVC.Model
-
Gets the width of the Model
- getXLocation() - Method in class MapObjects.Interactable
-
Gets the current x-location of the Interactable.
- getYLocation() - Method in class MapObjects.Interactable
-
Gets the current y-location of the Interactable.
- id - Variable in enum MapObjects.LitterType
-
- id - Variable in enum MapObjects.ReceptacleType
-
- ID(String, int, int) - Constructor for enum MVC.Sprite.ID
-
Creates a non-animated Sprite.ID with the given fname, world width, and world height.
- ID(String, int, int, int, int) - Constructor for enum MVC.Sprite.ID
-
Creates a animated Sprite.ID with the given filename, world width, world height, tileset width, and tileset height.
- ID(String, int, int, int, int, int) - Constructor for enum MVC.Sprite.ID
-
Creates a animated Sprite.ID with the given filename, world width, world height, tileset width, tileset height, and frame division factor.
- imageHeight - Static variable in class MapObjects.Animal
-
Height of the Animal
- imageWidth - Static variable in class MapObjects.Animal
-
Width of the Animal
- imgID - Variable in class MapObjects.Litter
-
Number generated randomly that later maps to A SpriteID to paint it with.
- incrementFrameCounter() - Static method in class MVC.Sprite
-
Increment the frame counter used for animated Sprites.
- instances - Static variable in class MVC.Sprite
-
Contains all Sprite instances.
- Interactable - Class in MapObjects
-
Highest class in the Game object Heirarchy.
- Interactable(int, int, int, int) - Constructor for class MapObjects.Interactable
-
Create a new Interactable with the given position and dimensions.
- isAnimalAteLitter() - Method in class MVC.Model
-
Returns the tutorialAnimalAteLitter boolean value
- isArrowKeyPrompt() - Method in class MVC.Model
-
Returns the tutorialArrowKeyPrompt
- isHasLitter() - Method in class MVC.Model
-
Returns a boolean depending on whether or not the player is currently holding
a Litter object that needs to be disposed of.
- isHoverLitter() - Method in class MVC.Model
-
Returns the tutorialHoverLitter boolean of Model.
- isPlayable() - Method in enum MVC.GamePhase
-
Returns whether the game is playable during this phase.
- LENGTH - Static variable in enum MapObjects.LitterType
-
- LENGTH - Static variable in enum MapObjects.ReceptacleType
-
- Litter - Class in MapObjects
-
Class of the Litter objects that spawn periodically around the map.
- Litter() - Constructor for class MapObjects.Litter
-
Constructor for all Litter objects.
- litterAttrSet - Variable in class MVC.Model
-
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
- litterAttrSet - Variable in class MVC.View
-
Contains all Litter objects to be rendered onscreen, maps them to a
Sprite.ID.
- litterCount - Static variable in class MVC.View
-
The number of distinct litter sprites
- litterImgLists - Static variable in class MVC.View
-
A list containing lists of litter sprite ids.
- litterSet - Variable in class MVC.Model
-
HashSet of all of the current Litter objects in the game
- litterSet - Variable in class MVC.View
-
contains all of the Litter objects on-screen
- LitterType - Enum in MapObjects
-
Enum that holds the different type of Litters that can spawn in the game.
- LitterType(int) - Constructor for enum MapObjects.LitterType
-
- litterWasCollected() - Method in class MVC.Model
-
Increments the counter to track that a litter was collected.
- loadGame() - Method in class MVC.Controller
-
Method that loads the serializable file and changes the attributes in model.
- loadSource() - Method in class MVC.Sprite
-
Ensures that the image is loaded from disk.
- loseHealth() - Method in class MapObjects.Animal
-
"Decreases the health of the animal by 30.
- loseHealth() - Method in class Player.Player
-
Decrement the player's health by 10
- lType - Variable in class MapObjects.Litter
-
Enum from LitterType that represents the type of Litter this object is
- paint(Graphics) - Method in class MVC.View
-
Paints this view
- pickedUp - Variable in class MVC.Model
-
- pickedUpAttr - Variable in class MVC.Model
-
ArrayList of Litter imgID and LitterType of Model.pickedUp Litter attribute
to send to View
- pickedUpAttr - Variable in class MVC.View
-
The image attributes of the Litter object most recently held by the Player
- pickUpLitter(Litter) - Method in class MVC.Model
-
"Picks up" a Litter object the Player is colliding with.
- Plant - Class in MapObjects
-
Represents a plant object
- Plant(int, int, int) - Constructor for class MapObjects.Plant
-
Constructor for plant object
- plantDamage - Variable in class MVC.Model
-
The amount of health to detract from the Plant every time it is damaged
- plantHealth - Static variable in class MVC.Model
-
The initial amount of health of each Plant
- plants - Variable in class MVC.Model
-
Contains plant objects
- plants - Variable in class MVC.View
-
Contains all plant objects onscreen
- playable - Variable in enum MVC.GamePhase
-
Whether the game can be played normally during this phase.
- Player - package Player
-
- player - Variable in class MVC.Model
-
The only controllable object in the game.
- Player - Class in Player
-
A user-controlled character that can move around the screen and interact with other map objects
- Player(int, int, int, int) - Constructor for class Player.Player
-
Create a player with the given position and size, and sets up the collision box.
- playerDirection - Static variable in class MVC.View
-
The current direction of the player
- playerHealth - Variable in class MVC.View
-
The current health of the player
- playerMove - Variable in class MVC.Model
-
Whether the player is allowed to move this frame.
- playerStatus - Static variable in class MVC.View
-
The status of the player, i.e.&nbdp;idle, moving, etc.
- PlayerStatus - Enum in Player
-
PlayerStatus represents what the Player is currently doing.
- PlayerStatus() - Constructor for enum Player.PlayerStatus
-
- playerXLoc - Static variable in class MVC.View
-
The x location of the player in world coordinates
- playerYLoc - Static variable in class MVC.View
-
The y location of the player in world coordinates
- preloadLitterImgs() - Method in class MVC.View
-
Populates trashImgList and recyclableImgList with Sprite.IDs.
- RANDOM - Static variable in enum MapObjects.LitterType
-
- randomLitter() - Static method in enum MapObjects.LitterType
-
Generates a random value from this enumerated type
- randPlant - Variable in class MapObjects.Plant
-
- randPlant - Variable in class MVC.Model
-
Random index of next plant
- rBin - Variable in class MVC.Model
-
The recycle bin
- recedeRiver() - Method in class MVC.Model
-
Method called to return river to normal state
- Receptacle - Class in MapObjects
-
Class of the Receptacles in which the Litter objects are placed into.
- Receptacle(int, int, ReceptacleType) - Constructor for class MapObjects.Receptacle
-
Constructor for Receptacle objects.
- ReceptacleType - Enum in MapObjects
-
Enum that holds all of the Receptacle types that appear in the game
- ReceptacleType(int) - Constructor for enum MapObjects.ReceptacleType
-
- recImgCount - Static variable in class MVC.View
-
The number of distinct recyclable sprites
- recycleGlow - Variable in class MVC.Model
-
A count of the number of frames the recycle bin has been in glowing victory state for
- recycleVictory - Variable in class MVC.Model
-
Whether the recycle bin recently received a piece of Litter
- recyclingYpos - Static variable in class MapObjects.Receptacle
-
y Location of the recycling bin Receptacle in the game
- relativeCollisionBox - Variable in class MapObjects.Interactable
-
The collision box used by the object.
- resetEverything() - Method in class MVC.Model
-
Resets everything to the 'initial game' state.
- rGlow - Variable in class MVC.View
-
A Boolean to decide if the recycling bin is in the glowing deposit state
- River - Class in MapObjects
-
Represents a river object
- River(int, int, int, int) - Constructor for class MapObjects.River
-
Constructor for plant object
- river - Variable in class MVC.Model
-
onscreen river
- river - Variable in class MVC.View
-
The river
- riverAlphaMapPixels - Variable in class MVC.View
-
- riverTexturePixels - Variable in class MVC.View
-
- rType - Variable in class MapObjects.Receptacle
-
The type of Receptacle this object is.
- run() - Method in class MVC.Controller.damagePlantTask
-
Method that calls the model method to damage the plant.
- run() - Method in class MVC.Controller.TrashTask
-
Calls the view method that adds a Litter object to the HashMap of rendered Litter object.
- saveGame() - Method in class MVC.Controller
-
Method that serializes the state of model to a serial file.
- scale(double) - Method in class MVC.Sprite
-
Ensures that the image has been scaled according to the specified scale factor.
- scaled - Variable in class MVC.Sprite
-
- scaledTiles - Variable in class MVC.Sprite
-
- scaleFactor - Variable in class MVC.Sprite
-
The scaleFactor used to generate the currently saved scaled image
- screenDimension - Static variable in class MVC.View
-
The dimensions of the computer screen, in pixels.
- screenHeight - Static variable in class MVC.View
-
The height of the computer screen, in pixels.
- screenWidth - Static variable in class MVC.View
-
The width of the computer screen, in pixels.
- setAnimalAteLitter(boolean) - Method in class MVC.Model
-
Sets the tutorialAnimalAteLitter boolean value of the Model.
- setDirection(Direction) - Method in class MapObjects.Animal
-
"Sets the direction of the animal.
- setDirection(Direction) - Method in class Player.Player
-
Change the player's direction to the parameter
- setFontSize(Graphics, int) - Method in class MVC.View
-
Sets the font of the given Graphics
to match the given height in world coordinates.
- setGamePhase(GamePhase) - Method in class MVC.Model
-
Sets the game phase of the Model.
- setHasLitter(boolean) - Method in class MVC.Model
-
Sets the hasLitter boolean of the model
- setHealth(int) - Method in class MapObjects.Plant
-
Sets health of plant object
- setImgID(int) - Method in class MapObjects.Litter
-
Method that sets the imgID of a Litter object that is used to map the object to an appropriate Litter Sprite in View.
- setKeyListener(KeyListener) - Method in class MVC.View
-
Adds a key listener to the associated JFrame
- setPaint(Graphics2D, Sprite.ID) - Method in class MVC.View
-
Sets the paint of the given Graphics2D to be a tesselation of the given Sprite.ID, scaling to match rendering size.
- setPickedUpLitter(Litter) - Method in class MVC.Model
-
Sets the last picked up litter to the parameter
- setPlantGrown(boolean) - Method in class MVC.Model
-
Sets the tutorialPlantGrown boolean value of the Model.
- setRandPlant() - Method in class MVC.Model
-
Method called to set randPlant index
- setRecycleVictory(boolean) - Method in class MVC.Model
-
Sets the recycleVictory boolean of the Model.
- setRelativeCollisionRect(int, int, int, int) - Method in class MapObjects.Interactable
-
Sets the relative collision box of this interactable.
- setSpeed(int) - Method in class Player.Player
-
- setTrashVictory(boolean) - Method in class MVC.Model
-
Sets the trashVictory boolean of the Model.
- setTutorialState(TutorialState) - Method in class MVC.Model
-
Sets the tutorial state of the game.
- setType(LitterType) - Method in class MapObjects.Litter
-
Sets this Litter object's lType attribute that represents the kind of Litter it is.
- setXLocation(int) - Method in class MapObjects.Interactable
-
Sets the x-coordinate of the Interactable
- setYLocation(int) - Method in class MapObjects.Interactable
-
Sets the y-coordinate of the Interactable
- source - Variable in class MVC.Sprite
-
The completely unprocessed source image
- spaceKeyPressed() - Method in class MVC.Model
-
Method called when the space key is pressed.
- spaceKeyReleased() - Method in class MVC.Model
-
Method called when the space key is released.
- spacePressed - Variable in class MVC.Model
-
Whether the space key is currently pressed down.
- spawnLitter() - Method in class MVC.Model
-
Generates a new Litter object with random x and y coordinates, as well as
generates a random imgID for the object.
- spawnLitter(LitterType) - Method in class MVC.Model
-
- speed - Variable in class MapObjects.Animal
-
Speed of the Animal
- SPEED - Variable in class Player.Player
-
Movement speed
- Sprite - Class in MVC
-
The Sprite class manages all sprites (images) that are drawn.
- Sprite(String, int, int, int, int, int) - Constructor for class MVC.Sprite
-
Creates a Sprite with the specified attributes, not to be called by the user,
- Sprite.ID - Enum in MVC
-
Houses all Sprites' info.
- start() - Method in class MVC.Controller
-
Method that creates a new Model and View, and starts the game.
- startEndGame() - Method in class MVC.Model
-
Moves to the ending game state (does NOT reset!)
- startNormal() - Method in class MVC.Model
-
Moves to the Normal game state (does NOT reset!)
- startTime - Variable in class MVC.Model
-
The time in milliseconds that the game has begun
- startTime - Variable in class MVC.View
-
A long representing when the game started in order to draw the truck timer in
the correct spot
- startTitleScreen() - Method in class MVC.Model
-
Initializes the title screen
- startTutorial() - Method in class MVC.Model
-
Initializes the tutorial
- status - Variable in class Player.Player
-
Player status, i.e. IDLE or WALKING, etc.
- step() - Method in class MVC.Controller
-
Method that updates the Model and changes the view based on the Model.
- stepAction - Variable in class MVC.Controller
-
The Action to run every frame.
- stepTimer - Variable in class MVC.Controller
-
The main loop timer
- stop() - Method in class Player.Player
-
- takeLitter(Player, Model) - Method in class MapObjects.Receptacle
-
Method that removes Litter from the player object
- taskTimer - Variable in class MVC.Controller
-
- tBin - Variable in class MVC.Model
-
The trash bin
- testAddXLocation() - Method in class tests.ModelTest
-
- testAddYLocation() - Method in class tests.ModelTest
-
- testAlterVelocityEast() - Method in class tests.ModelTest
-
- testAlterVelocityIdle() - Method in class tests.ModelTest
-
- testAlterVelocityLowerXCap() - Method in class tests.ModelTest
-
- testAlterVelocityLowerYCap() - Method in class tests.ModelTest
-
- testAlterVelocityNormal() - Method in class tests.ModelTest
-
- testAlterVelocityNorth() - Method in class tests.ModelTest
-
- testAlterVelocityNorthWest() - Method in class tests.ModelTest
-
- testAlterVelocitySouth() - Method in class tests.ModelTest
-
- testAlterVelocityUpperXCap() - Method in class tests.ModelTest
-
- testAlterVelocityUpperYCap() - Method in class tests.ModelTest
-
- testAlterVelocityWest() - Method in class tests.ModelTest
-
- testAnimalBinCollisionNorthEast() - Method in class tests.ModelTest
-
- testAnimalBinCollisionNorththWest() - Method in class tests.ModelTest
-
- testAnimalBinCollisionSouth() - Method in class tests.ModelTest
-
- testAnimalBinCollisionSouthEast() - Method in class tests.ModelTest
-
- testAnimalBinCollisionSouthWest() - Method in class tests.ModelTest
-
- testAnimalBinCollisionWest() - Method in class tests.ModelTest
-
- testAnimalLitterCollision() - Method in class tests.ModelTest
-
- testAnimalLitterCollisionFalse() - Method in class tests.ModelTest
-
- testAnimalLoseHealth() - Method in class tests.ModelTest
-
- testAnimalWallCollisionBottom() - Method in class tests.ModelTest
-
- testAnimalWallCollisionBottomSouthEast() - Method in class tests.ModelTest
-
- testAnimalWallCollisionBottomSouthWest() - Method in class tests.ModelTest
-
- testAnimalWallCollisionBottomWall() - Method in class tests.ModelTest
-
- testAnimalWallCollisionLeft() - Method in class tests.ModelTest
-
- testAnimalWallCollisionLeftNorthWest() - Method in class tests.ModelTest
-
- testAnimalWallCollisionLeftSouthWest() - Method in class tests.ModelTest
-
- testAnimalWallCollisionLeftWall() - Method in class tests.ModelTest
-
- testAnimalWallCollisionRight() - Method in class tests.ModelTest
-
- testAnimalWallCollisionRightNorthEast() - Method in class tests.ModelTest
-
- testAnimalWallCollisionRightSouthEast() - Method in class tests.ModelTest
-
- testAnimalWallCollisionRightWall() - Method in class tests.ModelTest
-
- testAnimalWallCollisionTop() - Method in class tests.ModelTest
-
- testAnimalWallCollisionTopNorthEast() - Method in class tests.ModelTest
-
- testAnimalWallCollisionTopNorthWest() - Method in class tests.ModelTest
-
- testAnimalWallCollisionTopWall() - Method in class tests.ModelTest
-
- testCheckColl() - Method in class MVC.Model
-
- testCheckPlantsFlood() - Method in class tests.ModelTest
-
- testCheckPlantsRecede() - Method in class tests.ModelTest
-
- testCheckTutorialDamagePlant() - Method in class tests.ModelTest
-
- testCheckTutorialStatesCrabEatLitter() - Method in class tests.ModelTest
-
- testCheckTutorialStatesCrabEatLitterNoChange() - Method in class tests.ModelTest
-
- testCheckTutorialStatesDamagePlant() - Method in class tests.ModelTest
-
- testCheckTutorialStatesSignalPlant() - Method in class tests.ModelTest
-
- testCheckTutorialStatesSignalRecBin() - Method in class tests.ModelTest
-
- testCheckTutorialStatesSignalRecyclable() - Method in class tests.ModelTest
-
- testCheckTutorialStatesSignalTrash() - Method in class tests.ModelTest
-
- testCheckTutorialStatesSignalTrashCan() - Method in class tests.ModelTest
-
- testCheckTutorialStatesSpawnRec() - Method in class tests.ModelTest
-
- testCheckTutorialStatesSpawnTrash() - Method in class tests.ModelTest
-
- testCrabMotion() - Method in class tests.ModelTest
-
- testDamagePlant() - Method in class tests.ModelTest
-
- testDamagePlantChange() - Method in class tests.ModelTest
-
- testFloodRiver() - Method in class tests.ModelTest
-
- testGetAnimalXIncr() - Method in class tests.ModelTest
-
- testGetAnimalYIncr() - Method in class tests.ModelTest
-
- testgetCollisionRectNull() - Method in class tests.ModelTest
-
- testGetEndTime() - Method in class tests.ModelTest
-
- testGetGameState() - Method in class tests.ModelTest
-
- testGetPickedUpLitter() - Method in class tests.ModelTest
-
- testGetRecycleVictory() - Method in class tests.ModelTest
-
- testGetStartTime() - Method in class tests.ModelTest
-
- testGetTrashVictory() - Method in class tests.ModelTest
-
- testGetTutorialState() - Method in class tests.ModelTest
-
- testIsAnimalAteLitter() - Method in class tests.ModelTest
-
- testIsArrowKeyPrompt() - Method in class tests.ModelTest
-
- testIsArrowKeyPromptFalse() - Method in class tests.ModelTest
-
- testIsHasLitter() - Method in class tests.ModelTest
-
- testIsHoverLitterFalse() - Method in class tests.ModelTest
-
- testIsHoverLitterTrue() - Method in class tests.ModelTest
-
- testLitterEquality() - Method in class tests.ModelTest
-
- testLitterInEquality() - Method in class tests.ModelTest
-
- testPlantSetHealth() - Method in class tests.ModelTest
-
- testPlayerAnimalCollisionEast() - Method in class tests.ModelTest
-
- testPlayerAnimalCollisionNorth() - Method in class tests.ModelTest
-
- testPlayerAnimalCollisionNorthEast() - Method in class tests.ModelTest
-
- testPlayerAnimalCollisionNorthWest() - Method in class tests.ModelTest
-
- testPlayerAnimalCollisionSouth() - Method in class tests.ModelTest
-
- testPlayerAnimalCollisionSouthEast() - Method in class tests.ModelTest
-
- testPlayerAnimalCollisionSouthWest() - Method in class tests.ModelTest
-
- testPlayerAnimalCollisionWest() - Method in class tests.ModelTest
-
- testPlayerLitterCollision() - Method in class tests.ModelTest
-
- testPlayerLitterCollisionFalse() - Method in class tests.ModelTest
-
- testPlayerMoveX() - Method in class tests.ModelTest
-
- testPlayerMoveY() - Method in class tests.ModelTest
-
- testPlayerPlantCollision() - Method in class tests.ModelTest
-
- testPlayerPlantCollisionFalse() - Method in class tests.ModelTest
-
- testPlayerRecycleBinCollision() - Method in class tests.ModelTest
-
- testPlayerTrashBinCollision() - Method in class tests.ModelTest
-
- testPlayerTrashBinCollisionFalse() - Method in class tests.ModelTest
-
- testRecedeRiver() - Method in class tests.ModelTest
-
- testReceptacleGetType() - Method in class tests.ModelTest
-
- testRiverPlayerCollision() - Method in class tests.ModelTest
-
- tests - package tests
-
- testSetGameState() - Method in class tests.ModelTest
-
- testSpaceKeyPressed() - Method in class tests.ModelTest
-
- testSpaceKeyRelease() - Method in class tests.ModelTest
-
- testSpawnLitterXCoord() - Method in class tests.ModelTest
-
- testSpawnLitterYCoord() - Method in class tests.ModelTest
-
- testStartEndGame() - Method in class tests.ModelTest
-
- testStartTitleScreen() - Method in class tests.ModelTest
-
- testUpdateModelRecVictory() - Method in class tests.ModelTest
-
- testUpdateModelTrashVictory() - Method in class tests.ModelTest
-
- testUpdatingAnimalLocationEast() - Method in class tests.ModelTest
-
- testUpdatingAnimalLocationNorth() - Method in class tests.ModelTest
-
- testUpdatingAnimalLocationNorthEast() - Method in class tests.ModelTest
-
- testUpdatingAnimalLocationNorthWest() - Method in class tests.ModelTest
-
- testUpdatingAnimalLocationSouth() - Method in class tests.ModelTest
-
- testUpdatingAnimalLocationSouthEast() - Method in class tests.ModelTest
-
- testUpdatingAnimalLocationSouthWest() - Method in class tests.ModelTest
-
- testUpdatingAnimalLocationWest() - Method in class tests.ModelTest
-
- tGlow - Variable in class MVC.View
-
A Boolean to decide if the trash bin is in the glowing deposit state
- tile() - Method in class MVC.Sprite
-
Ensures that the image has been tiled into individual frames.
- totalLitterCollected - Variable in class MVC.Model
-
The number of Litter objects that the Player has picked up throughout the game
- totalLitterCollected - Variable in class MVC.View
-
The number of Litter objects that the Player has picked up throughout the game
- totalPlantsPlanted - Variable in class MVC.Model
-
The number of Plants that the Player has replanted throughout the game
- totalPlantsPlanted - Variable in class MVC.View
-
The number of Plants that the Player has replanted throughout the game
- trashGlow - Variable in class MVC.Model
-
A count of the number of frames the trash bin has been in glowing victory state for
- trashImgCount - Static variable in class MVC.View
-
The number of distinct trash sprites
- TrashTask() - Constructor for class MVC.Controller.TrashTask
-
- trashTimer - Variable in class MVC.Controller
-
- trashVictory - Variable in class MVC.Model
-
Whether the trash bin recently received a piece of Litter
- trashYpos - Static variable in class MapObjects.Receptacle
-
y Location of the trash bin Recptacle in the game
- tutorialAnimalAteLitter - Variable in class MVC.Model
-
Boolean variable that represents whether the animal has eaten the Litter in
the tutorial
- tutorialArrowKeyPrompt - Variable in class MVC.Model
-
Boolean that represents whether the arrow key prompt should be shown on
screen.
- tutorialHoverLitter - Variable in class MVC.Model
-
Boolean that represents whether or not the Player is hovering, but not
picking up a Litter object
- tutorialPlantGrown - Variable in class MVC.Model
-
Boolean variable that represents whether the player has planted the plant
that despawns in the tutorial
- tutorialState - Variable in class MVC.Model
-
Current state of the tutorial
- TutorialState - Enum in MVC
-
The current state of the tutorial
- TutorialState() - Constructor for enum MVC.TutorialState
-
- tutorialState - Variable in class MVC.View
-
Gamestate variable that represents the current stage of the tutorial the
player is at
- valueOf(String) - Static method in enum MapObjects.LitterType
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum MapObjects.ReceptacleType
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum MVC.GamePhase
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum MVC.Sprite.ID
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum MVC.TutorialState
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum MVC.View.HorizLocation
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum MVC.View.VertLocation
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum Player.Direction
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum Player.PlayerStatus
-
Returns the enum constant of this type with the specified name.
- VALUES - Static variable in enum MapObjects.LitterType
-
- values() - Static method in enum MapObjects.LitterType
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- VALUES - Static variable in enum MapObjects.ReceptacleType
-
- values() - Static method in enum MapObjects.ReceptacleType
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum MVC.GamePhase
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum MVC.Sprite.ID
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum MVC.TutorialState
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum MVC.View.HorizLocation
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum MVC.View.VertLocation
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum Player.Direction
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum Player.PlayerStatus
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- VertLocation() - Constructor for enum MVC.View.VertLocation
-
- view - Variable in class MVC.Controller
-
- View - Class in MVC
-
View: Contains everything about graphics and images Know size of screen,
which images to load etc
- View() - Constructor for class MVC.View
-
Creates a new View, places it in a new JPanel, arranges everything, and makes it visible.
- View.HorizLocation - Enum in MVC
-
A x-location of something
- View.VertLocation - Enum in MVC
-
A y-location of something
- width - Variable in class MapObjects.Interactable
-
The width of the object
- WIDTH - Static variable in class MVC.Model
-
The width of the world in WORLD coordinates
- WORLD_HEIGHT - Static variable in class MVC.View
-
The height of the game world
- WORLD_WIDTH - Static variable in class MVC.View
-
The width of the game world
- worldHeight - Variable in enum MVC.Sprite.ID
-
The height of the sprite, in world coordinates.
- worldHeight - Variable in class MVC.Sprite
-
The display height of the Sprite, in world coordinates
- worldHeightToPixelHeight(int) - Method in class MVC.View
-
Consumes a height in world coordinates, computes the expected height
in the window (i.e. pixel coordinates).
- worldWidth - Variable in enum MVC.Sprite.ID
-
The width of the sprite, in world coordinates.
- worldWidth - Variable in class MVC.Sprite
-
The display width of the Sprite, in world coordinates
- worldWidthToPixelWidth(int) - Method in class MVC.View
-
Consumes a width in world coordinates, computes the expected width
in the window (i.e. pixel coordinates).
- worldXToPixelX(int) - Method in class MVC.View
-
Consumes a x-coordinate in world coordinates, computes the expected
x-coordinate in the window (i.e. pixel coordinates).
- worldYToPixelY(int) - Method in class MVC.View
-
Consumes a y-coordinate in world coordinates, computes the expected
y-coordinate in the window (i.e. pixel coordinates).