| Package | Description |
|---|---|
| edu.ucsb.cs56.projects.games.pacman |
| Modifier and Type | Method | Description |
|---|---|---|
abstract void |
Character.move(Grid grid) |
Moves character's current position with the board's collision
|
void |
Ghost.move(Grid grid) |
Moves character's current position with the board's collision
Handles logic pertaining to collision detection, movement, and standstill
|
void |
PacPlayer.move(Grid grid) |
Moves character's current position with the board's collision
|
abstract void |
Character.moveAI(Grid grid,
Character[] c) |
Moves character's current position with the board's collision
|
void |
Ghost.moveAI(Grid grid,
Character[] c) |
For ghosts that are close to pacman, have them follow pacman
with a specified probability
|
void |
PacPlayer.moveAI(Grid grid,
Character[] c) |
Moves character's current position while detecting for collision
within the board
|
void |
Ghost.moveRandom(Grid grid) |
Pick a random move from the list of available movement options
for the ghost to move in
|
Node |
Ghost.pathFind(Grid grid,
int x,
int y) |
A* pathfinding algorithm
|
| Constructor | Description |
|---|---|
Ghost(int x,
int y,
int speed,
int type,
int playerNum,
Grid grid) |
|
Ghost(int x,
int y,
int speed,
int playerNum,
Grid grid) |
Ghost class constructor for multiplayer
|
PacPlayer(int x,
int y,
int playerNum,
Grid grid) |
Constructor for PacPlayer class for use
when multiple players are playing the game
|