- death() - Method in class edu.ucsb.cs56.projects.games.pacman.Character
-
Handles character's death
- death() - Method in class edu.ucsb.cs56.projects.games.pacman.Ghost
-
Handles character's death
coordinates are reset to the coordinates that
the ghost initially started at and the ghost
becomes inedible
- death() - Method in class edu.ucsb.cs56.projects.games.pacman.PacPlayer
-
Handles PacMan's death by taking away lives,
resetting the death timer, and resetting position
- death(int, int) - Method in class edu.ucsb.cs56.projects.games.pacman.Ghost
-
Handles character's death and allows specification of a new location
for the character to spawn at
- deathTimer - Variable in class edu.ucsb.cs56.projects.games.pacman.Character
-
- defaultSpeed - Static variable in class edu.ucsb.cs56.projects.games.pacman.Ghost
-
- detectCollision(ArrayList<Ghost>) - Method in class edu.ucsb.cs56.projects.games.pacman.Board
-
Detects when ghosts and pacman collide
Ghosts are sent back to the 'ghost house' (center of map)
when pacman dies
- dir - Variable in class edu.ucsb.cs56.projects.games.pacman.Node
-
- direction - Variable in class edu.ucsb.cs56.projects.games.pacman.PacPlayer
-
- Direction - Class in edu.ucsb.cs56.projects.games.pacman
-
Direction class holds 4 directions.
- Direction() - Constructor for class edu.ucsb.cs56.projects.games.pacman.Direction
-
- distance - Variable in class edu.ucsb.cs56.projects.games.pacman.Node
-
- doAnim() - Method in class edu.ucsb.cs56.projects.games.pacman.PacPlayer
-
Animates the Pacman sprite's direction as well as mouth opening and closing
- DOWN - Static variable in class edu.ucsb.cs56.projects.games.pacman.Direction
-
- draw(Graphics2D, JComponent) - Method in class edu.ucsb.cs56.projects.games.pacman.Character
-
draws the character onto the screen
- draw(Graphics2D, JComponent) - Method in class edu.ucsb.cs56.projects.games.pacman.Ghost
-
Draws the ghost
- draw(Graphics2D, JComponent) - Method in class edu.ucsb.cs56.projects.games.pacman.PacPlayer
-
Calls the appropriate draw method for the direction Pacman is facing
- drawHighScores(Graphics) - Method in class edu.ucsb.cs56.projects.games.pacman.Board
-
Displays a list of high scores on the bottom of the screen
- drawMaze(Graphics2D) - Method in class edu.ucsb.cs56.projects.games.pacman.Grid
-
Draws the maze that serves as a playing field.
- drawScore(Graphics) - Method in class edu.ucsb.cs56.projects.games.pacman.Board
-
Display game information such as:
the number of pellets left,
the current score,
the number of lives left for pacman and possibly Ms.
- dx - Variable in class edu.ucsb.cs56.projects.games.pacman.Character
-
- dy - Variable in class edu.ucsb.cs56.projects.games.pacman.Character
-
- gameInit() - Method in class edu.ucsb.cs56.projects.games.pacman.Board
-
Initialize game variables
- gameOver() - Method in class edu.ucsb.cs56.projects.games.pacman.Board
-
End the game if remaining lives reaches 0.
- GamePlayed - Class in edu.ucsb.cs56.projects.games.pacman
-
Stores information about the game that has just been played
- GamePlayed(String, Date, int) - Constructor for class edu.ucsb.cs56.projects.games.pacman.GamePlayed
-
Constructor to create a GamePlayed object
- GamePlayedTest - Class in edu.ucsb.cs56.projects.games.pacman
-
Test class for GamePlayed
- GamePlayedTest() - Constructor for class edu.ucsb.cs56.projects.games.pacman.GamePlayedTest
-
- gCost - Variable in class edu.ucsb.cs56.projects.games.pacman.Node
-
- get2DGridData() - Method in class edu.ucsb.cs56.projects.games.pacman.GridData
-
- getChild(int, int) - Method in class edu.ucsb.cs56.projects.games.pacman.Node
-
Creates a child node which represents movement from parent node
- getDate() - Method in class edu.ucsb.cs56.projects.games.pacman.GamePlayed
-
Getter that returns the date for this GamePlayed instance
- getDirection(int, int) - Static method in class edu.ucsb.cs56.projects.games.pacman.Direction
-
- getGhosts() - Method in class edu.ucsb.cs56.projects.games.pacman.GhostHouse
-
returns the ghosts list
- getGridData() - Method in class edu.ucsb.cs56.projects.games.pacman.GridData
-
- getGridWidth() - Method in class edu.ucsb.cs56.projects.games.pacman.GridData
-
- getLifeImage() - Method in class edu.ucsb.cs56.projects.games.pacman.Character
-
Returns the image used for displaying remaining lives
- getLifeImage() - Method in class edu.ucsb.cs56.projects.games.pacman.Ghost
-
Returns the image used for displaying remaining lives
- getLifeImage() - Method in class edu.ucsb.cs56.projects.games.pacman.PacPlayer
-
Returns the image used for displaying remaining lives
- getName() - Method in class edu.ucsb.cs56.projects.games.pacman.GamePlayed
-
Getter that returns the name for this GamePlayed instance
- getPelletNum() - Method in class edu.ucsb.cs56.projects.games.pacman.Grid
-
Count the number of pellets left for Pacman to eat
- getPelletNumForMap(int) - Method in class edu.ucsb.cs56.projects.games.pacman.Grid
-
Count the number of pellets in each map
- getPillNum() - Method in class edu.ucsb.cs56.projects.games.pacman.Grid
-
Count the number of power pills left for Pacman to eat
- getPlayerTopThree() - Method in class edu.ucsb.cs56.projects.games.pacman.LeaderboardTest
-
Test case for getPlayerTopThree() method of Leaderboard
- getPlayerTopThree(String) - Method in class edu.ucsb.cs56.projects.games.pacman.Leaderboard
-
returns a formatted string of the top three scores for a player
- getScore() - Method in class edu.ucsb.cs56.projects.games.pacman.GamePlayed
-
Getter that returns the score for this GamePlayed instance
- getTopLeft() - Method in class edu.ucsb.cs56.projects.games.pacman.GhostHouse
-
returns the top left location of the ghost house
- getTopThree() - Method in class edu.ucsb.cs56.projects.games.pacman.Leaderboard
-
returns a formatted string of the top three all time highest scores
- getTopThree() - Method in class edu.ucsb.cs56.projects.games.pacman.LeaderboardTest
-
Test case for getTopThree() method of Leaderboard
- getWidth() - Method in class edu.ucsb.cs56.projects.games.pacman.GhostHouse
-
returns the width of the ghost house
- getX() - Method in class edu.ucsb.cs56.projects.games.pacman.Location
-
Gets the x-coordinate of the location
- getY() - Method in class edu.ucsb.cs56.projects.games.pacman.Location
-
Get the y-coordinate of the location
- Ghost - Class in edu.ucsb.cs56.projects.games.pacman
-
A class used to represent the ghost enemies
used for AI-controlled ghosts in the standard mode
and for player controlled ghosts in multiplayer
- Ghost(int, int, int, int) - Constructor for class edu.ucsb.cs56.projects.games.pacman.Ghost
-
Ghost class constructor for singleplayer
- Ghost(int, int, int, int, int, Grid) - Constructor for class edu.ucsb.cs56.projects.games.pacman.Ghost
-
- Ghost(int, int, int, int, Grid) - Constructor for class edu.ucsb.cs56.projects.games.pacman.Ghost
-
Ghost class constructor for multiplayer
- GHOST1 - Static variable in class edu.ucsb.cs56.projects.games.pacman.Ghost
-
- GHOST2 - Static variable in class edu.ucsb.cs56.projects.games.pacman.Ghost
-
- GhostHouse - Class in edu.ucsb.cs56.projects.games.pacman
-
This is a class to represent a Ghost House which holds ghost
starting coordinates and tracks when ghosts are released onto
the map to chase Pacman
- GhostHouse(Location, int, int) - Constructor for class edu.ucsb.cs56.projects.games.pacman.GhostHouse
-
Constructor for a ghosthouse object
note that location must matched with the level map data that is created
- GHOSTHOUSE_WIDTH - Static variable in class edu.ucsb.cs56.projects.games.pacman.Board
-
- GhostHouseTest - Class in edu.ucsb.cs56.projects.games.pacman
-
Test class for GhostHouse
- GhostHouseTest() - Constructor for class edu.ucsb.cs56.projects.games.pacman.GhostHouseTest
-
- GhostTest - Class in edu.ucsb.cs56.projects.games.pacman
-
A class for testing the functionality of
the ghost class
- GhostTest() - Constructor for class edu.ucsb.cs56.projects.games.pacman.GhostTest
-
- goingDown(int, int) - Static method in class edu.ucsb.cs56.projects.games.pacman.Direction
-
- goingLeft(int, int) - Static method in class edu.ucsb.cs56.projects.games.pacman.Direction
-
- goingRight(int, int) - Static method in class edu.ucsb.cs56.projects.games.pacman.Direction
-
- goingUp(int, int) - Static method in class edu.ucsb.cs56.projects.games.pacman.Direction
-
- Grid - Class in edu.ucsb.cs56.projects.games.pacman
-
Class representing the map layout
- Grid() - Constructor for class edu.ucsb.cs56.projects.games.pacman.Grid
-
Constructor for Board object
- GRID_CELL_BORDER_BOTTOM - Static variable in class edu.ucsb.cs56.projects.games.pacman.GridData
-
- GRID_CELL_BORDER_LEFT - Static variable in class edu.ucsb.cs56.projects.games.pacman.GridData
-
- GRID_CELL_BORDER_RIGHT - Static variable in class edu.ucsb.cs56.projects.games.pacman.GridData
-
- GRID_CELL_BORDER_TOP - Static variable in class edu.ucsb.cs56.projects.games.pacman.GridData
-
- GRID_CELL_FRUIT - Static variable in class edu.ucsb.cs56.projects.games.pacman.GridData
-
- GRID_CELL_PELLET - Static variable in class edu.ucsb.cs56.projects.games.pacman.GridData
-
- GRID_CELL_POWER_PILL - Static variable in class edu.ucsb.cs56.projects.games.pacman.GridData
-
- GridData - Class in edu.ucsb.cs56.projects.games.pacman
-
A class to hold the information that is associated with a level
such as walls, fruit, pellets, and power pills
- GridData(int, short[]) - Constructor for class edu.ucsb.cs56.projects.games.pacman.GridData
-
Constructor for a Grid object
- GridDataConversion - Class in edu.ucsb.cs56.projects.games.pacman.editor
-
- GridDataConversion() - Constructor for class edu.ucsb.cs56.projects.games.pacman.editor.GridDataConversion
-
Deprecated.
- Leaderboard - Class in edu.ucsb.cs56.projects.games.pacman
-
Stores instances of GamePlayed objects and sorts them by highest score--keeps track of Game History
Loads and Stores the GamePlayed Objects in a file
- Leaderboard() - Constructor for class edu.ucsb.cs56.projects.games.pacman.Leaderboard
-
- LeaderboardGUI - Class in edu.ucsb.cs56.projects.games.pacman
-
Represents the GUI elements of the Leaderboard class that holds high scores
- LeaderboardGUI() - Constructor for class edu.ucsb.cs56.projects.games.pacman.LeaderboardGUI
-
Constructor for LeaderboardGui--initializes the JComponents of leaderboardgui
- LeaderboardTest - Class in edu.ucsb.cs56.projects.games.pacman
-
Test class for Leaderboard
- LeaderboardTest() - Constructor for class edu.ucsb.cs56.projects.games.pacman.LeaderboardTest
-
- LEFT - Static variable in class edu.ucsb.cs56.projects.games.pacman.Direction
-
- levelContinue() - Method in class edu.ucsb.cs56.projects.games.pacman.Board
-
Initialize Pacman and ghost position/direction
- levelInit(int) - Method in class edu.ucsb.cs56.projects.games.pacman.Grid
-
Initialize level with data containing game object information
- lives - Variable in class edu.ucsb.cs56.projects.games.pacman.Character
-
- load() - Method in class edu.ucsb.cs56.projects.games.pacman.Leaderboard
-
Loads the Leaderboard ArrayList from the .ser file
- loadAudio() - Method in class edu.ucsb.cs56.projects.games.pacman.PacPlayer
-
Load game audio from audio folder
- loadImages() - Method in class edu.ucsb.cs56.projects.games.pacman.Character
-
Load game sprites from images folder
- loadImages() - Method in class edu.ucsb.cs56.projects.games.pacman.Ghost
-
Load ghost sprites from images folder
- loadImages() - Method in class edu.ucsb.cs56.projects.games.pacman.PacPlayer
-
Load game sprites from images folder
- loadLevel() - Method in class edu.ucsb.cs56.projects.games.pacman.editor.PacManLevelEditor
-
- loadLevel(String) - Method in class edu.ucsb.cs56.projects.games.pacman.Grid
-
- loadScores() - Method in class edu.ucsb.cs56.projects.games.pacman.ScoreLoader
-
Scans the save file and assigns its values into an ArrayList
- loadStream(InputStream) - Method in class edu.ucsb.cs56.projects.games.pacman.Audio
-
Gets the sound bytes from the stream
- Location - Class in edu.ucsb.cs56.projects.games.pacman
-
This class represents location in x-y coordinates
of an object on the game map
- Location(int, int) - Constructor for class edu.ucsb.cs56.projects.games.pacman.Location
-
Location constructor takes an x and y
integer to track location of object
- main(String[]) - Static method in class edu.ucsb.cs56.projects.games.pacman.editor.GridDataConversion
-
Deprecated.
- main(String[]) - Static method in class edu.ucsb.cs56.projects.games.pacman.editor.PacManLevelEditor
-
- main(String[]) - Static method in class edu.ucsb.cs56.projects.games.pacman.PacMan
-
Main function for PacMan Class that tests to see if there are command line arguments
- move() - Method in class edu.ucsb.cs56.projects.games.pacman.Character
-
Moves character's current position
- move(Grid) - Method in class edu.ucsb.cs56.projects.games.pacman.Character
-
Moves character's current position with the board's collision
- move(Grid) - Method in class edu.ucsb.cs56.projects.games.pacman.Ghost
-
Moves character's current position with the board's collision
Handles logic pertaining to collision detection, movement, and standstill
- move(Grid) - Method in class edu.ucsb.cs56.projects.games.pacman.PacPlayer
-
Moves character's current position with the board's collision
- moveable(int, int, short) - Static method in class edu.ucsb.cs56.projects.games.pacman.Character
-
Check if the direction has no wall and moveable
- moveAI(Grid, Character[]) - Method in class edu.ucsb.cs56.projects.games.pacman.Character
-
Moves character's current position with the board's collision
- moveAI(Grid, Character[]) - Method in class edu.ucsb.cs56.projects.games.pacman.Ghost
-
For ghosts that are close to pacman, have them follow pacman
with a specified probability
- moveAI(Grid, Character[]) - Method in class edu.ucsb.cs56.projects.games.pacman.PacPlayer
-
Moves character's current position while detecting for collision
within the board
- moveRandom(Grid) - Method in class edu.ucsb.cs56.projects.games.pacman.Ghost
-
Pick a random move from the list of available movement options
for the ghost to move in
- MSPACMAN - Static variable in class edu.ucsb.cs56.projects.games.pacman.PacPlayer
-
- save() - Method in class edu.ucsb.cs56.projects.games.pacman.Leaderboard
-
Saves the Leaderboard ArrayList in .ser file
- saveLevel() - Method in class edu.ucsb.cs56.projects.games.pacman.editor.PacManLevelEditor
-
- saveLevelAs() - Method in class edu.ucsb.cs56.projects.games.pacman.editor.PacManLevelEditor
-
- saveScore(ArrayList<Integer>) - Method in class edu.ucsb.cs56.projects.games.pacman.ScoreLoader
-
Rewrites the save file using the list of scores given
- score - Static variable in class edu.ucsb.cs56.projects.games.pacman.Board
-
- SCORE_ENEMY - Static variable in class edu.ucsb.cs56.projects.games.pacman.Board
-
- SCORE_FRUIT - Static variable in class edu.ucsb.cs56.projects.games.pacman.Board
-
- SCORE_PELLET - Static variable in class edu.ucsb.cs56.projects.games.pacman.Board
-
- SCORE_POWER_PILL - Static variable in class edu.ucsb.cs56.projects.games.pacman.Board
-
- SCORE_WIN - Static variable in class edu.ucsb.cs56.projects.games.pacman.Board
-
- ScoreLoader - Class in edu.ucsb.cs56.projects.games.pacman
-
Writes and loads a list of int from a textfile
- ScoreLoader(String) - Constructor for class edu.ucsb.cs56.projects.games.pacman.ScoreLoader
-
Constructor to create an object of class ScoreLoader
- SCRSIZE - Static variable in class edu.ucsb.cs56.projects.games.pacman.Board
-
- setDir(int, int) - Method in class edu.ucsb.cs56.projects.games.pacman.Node
-
Sets the direction of movement into node
Prevents abrupt movements (left to right and up to down)
- setFileName(String) - Method in class edu.ucsb.cs56.projects.games.pacman.Leaderboard
-
Setter for filename
- setGridData(short[]) - Method in class edu.ucsb.cs56.projects.games.pacman.GridData
-
Method to set the grid's data array
- setGridSelection(Point) - Method in class edu.ucsb.cs56.projects.games.pacman.editor.PacManLevelEditor
-
- setGridWidth(int) - Method in class edu.ucsb.cs56.projects.games.pacman.GridData
-
A method to specify the grid's width
- setLeaderBoardFileName(String[]) - Method in class edu.ucsb.cs56.projects.games.pacman.LeaderboardGUI
-
setLeaderBoardFileName method- sets the fileName in the instance of the leaderboard class
- setSpeed(int) - Method in class edu.ucsb.cs56.projects.games.pacman.Character
-
sets the speed of the character
- setX(int) - Method in class edu.ucsb.cs56.projects.games.pacman.Character
-
sets the x-coordiante of the character on the screen
- setX(int) - Method in class edu.ucsb.cs56.projects.games.pacman.Location
-
Changes the x-coordinate to the specified coordinate
- setY(int) - Method in class edu.ucsb.cs56.projects.games.pacman.Character
-
sets the y-coordinate of the character on the screen
- setY(int) - Method in class edu.ucsb.cs56.projects.games.pacman.Location
-
Changes the y-coordinate to the specified coordinate
- showEndGameScreen(int, Date, int) - Method in class edu.ucsb.cs56.projects.games.pacman.LeaderboardGUI
-
Draw a box with the Game Over text, that prompts user for his/her name
- showHelpScreen(Graphics) - Method in class edu.ucsb.cs56.projects.games.pacman.Board
-
Shows help screen detailing game mode instructions,
movement commands, and other game controls
- showIntroScreen(Graphics) - Method in class edu.ucsb.cs56.projects.games.pacman.Board
-
Draw a message box with the text "Press s to start." in the center of the screen
- showPauseScreen(Graphics) - Method in class edu.ucsb.cs56.projects.games.pacman.Board
-
Draw a message box telling the player the game is paused
Also tells player to press 'p' to continue the game
- speed - Variable in class edu.ucsb.cs56.projects.games.pacman.Character
-
- startDevMode() - Method in class edu.ucsb.cs56.projects.games.pacman.Board
-
if the game is running in dev-mode then create a dev-tool GUI
- startX - Variable in class edu.ucsb.cs56.projects.games.pacman.Character
-
- startY - Variable in class edu.ucsb.cs56.projects.games.pacman.Character
-
- test_add() - Method in class edu.ucsb.cs56.projects.games.pacman.LeaderboardTest
-
Test case for add(GamePlayed g) method of Leaderboard
- test_add2() - Method in class edu.ucsb.cs56.projects.games.pacman.LeaderboardTest
-
Test case for add(String name, Date d, int score) method of Leaderboard
- test_addGhost() - Method in class edu.ucsb.cs56.projects.games.pacman.GhostHouseTest
-
- test_addGhosts() - Method in class edu.ucsb.cs56.projects.games.pacman.GhostHouseTest
-
- test_constructor() - Method in class edu.ucsb.cs56.projects.games.pacman.GamePlayedTest
-
Test case for GamePlayed constructor
- test_constructor() - Method in class edu.ucsb.cs56.projects.games.pacman.GhostHouseTest
-
- test_constructor_1() - Method in class edu.ucsb.cs56.projects.games.pacman.GhostTest
-
Test to determine that the Ghost constructor works properly
- test_constructor_2() - Method in class edu.ucsb.cs56.projects.games.pacman.GhostTest
-
A more rigorous test to determine that the Ghost constructor works properly
- test_constructor_complex() - Method in class edu.ucsb.cs56.projects.games.pacman.PacPlayerTest
-
Testing to debug the PacPlayer constructor by
testing values for positin, lives, direction, speed, and
testing for 'Ms PacMan'
- test_constructor_simple() - Method in class edu.ucsb.cs56.projects.games.pacman.CharacterTest
-
Runs a test on the character constructor
for debugging purposes
- test_constructor_simple() - Method in class edu.ucsb.cs56.projects.games.pacman.PacPlayerTest
-
Testing to debug the PacPlayer constructor by
testing values for position, lives, direction, and speed
- test_constructor_super() - Method in class edu.ucsb.cs56.projects.games.pacman.GhostTest
-
A test of the death() method where ghosts
return to their original locations after death
- test_death() - Method in class edu.ucsb.cs56.projects.games.pacman.PacPlayerTest
-
Testing to debug the death method of the PacPlayer class
- test_death_1() - Method in class edu.ucsb.cs56.projects.games.pacman.GhostTest
-
- test_death_2() - Method in class edu.ucsb.cs56.projects.games.pacman.GhostTest
-
A test of the death() method where ghosts
return to a given location upon death
- test_getDate() - Method in class edu.ucsb.cs56.projects.games.pacman.GamePlayedTest
-
Test case for getDate() method of GamePlayed
- test_getName() - Method in class edu.ucsb.cs56.projects.games.pacman.GamePlayedTest
-
Test case for getName() method of GamePlayed
- test_getScore() - Method in class edu.ucsb.cs56.projects.games.pacman.GamePlayedTest
-
Test case for getScore() method of GamePlayed
- test_move() - Method in class edu.ucsb.cs56.projects.games.pacman.CharacterTest
-
A test to debug the character class's 'move' method
- test_moveable() - Method in class edu.ucsb.cs56.projects.games.pacman.CharacterTest
-
- test_reset() - Method in class edu.ucsb.cs56.projects.games.pacman.CharacterTest
-
A test to debug the reset method of the PacPlayer class
- test_resetPos() - Method in class edu.ucsb.cs56.projects.games.pacman.CharacterTest
-
- test_resetPos() - Method in class edu.ucsb.cs56.projects.games.pacman.PacPlayerTest
-
- test_update() - Method in class edu.ucsb.cs56.projects.games.pacman.GhostHouseTest
-
- toString() - Method in class edu.ucsb.cs56.projects.games.pacman.GamePlayed
-
Overridden version of toString() method for GamePlayed Class
- tx - Static variable in class edu.ucsb.cs56.projects.games.pacman.Node
-
- ty - Static variable in class edu.ucsb.cs56.projects.games.pacman.Node
-
- type - Variable in class edu.ucsb.cs56.projects.games.pacman.Ghost
-
- TYPE_PINK - Static variable in class edu.ucsb.cs56.projects.games.pacman.Ghost
-
- TYPE_RED - Static variable in class edu.ucsb.cs56.projects.games.pacman.Ghost
-