|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use CharacterType | |
---|---|
edu.ou.pacman | |
edu.ou.pacman.board | |
edu.ou.pacman.character | |
edu.ou.pacman.heuristic | |
edu.ou.pacman.view |
Uses of CharacterType in edu.ou.pacman |
---|
Methods in edu.ou.pacman with parameters of type CharacterType | |
---|---|
boolean |
ImmutablePacmanState.canMove(CharacterType character,
Direction direction)
Determine whether a character can move in a given direction. |
Location2D |
ImmutablePacmanState.getCharacterLocation(CharacterType character)
Get the location of the given character for the current world state. |
boolean |
ImmutablePacmanState.pelletInDirection(CharacterType character,
Direction direction)
Check whether a pellet is available in a given direction for the character. |
Uses of CharacterType in edu.ou.pacman.board |
---|
Methods in edu.ou.pacman.board that return CharacterType | |
---|---|
CharacterType |
GameBoard.pacmanCapturer()
|
Methods in edu.ou.pacman.board with parameters of type CharacterType | |
---|---|
boolean |
GameBoard.canMove(CharacterType character,
Direction direction)
Determine whether a player can move in a given direction. |
Location2D |
GameBoard.characterLocation(CharacterType character)
Returns the location of the given character. |
int[] |
GameBoard.charactersVisible(CharacterType character1,
CharacterType character2)
Checks whether 2 characters are in sight of each other in any direction. |
boolean[] |
GameBoard.directionsToCharacter(CharacterType char1,
CharacterType char2)
Gives the directions from char1 to char2. |
int[] |
GameBoard.pacmanVisible(CharacterType character)
Helper method to see which directions pacman is visible in for the given character. |
int[] |
GameBoard.teammatesVisible(CharacterType character)
|
boolean[] |
GameBoard.viableDirections(CharacterType character)
Return a list of the viable directions for a given character. |
Uses of CharacterType in edu.ou.pacman.character |
---|
Methods in edu.ou.pacman.character that return CharacterType | |
---|---|
CharacterType |
PacmanCharacter.type()
The character type for the given character. |
CharacterType |
ImmutablePacmanCharacter.type()
The character type for the given character. |
static CharacterType |
CharacterType.valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static CharacterType[] |
CharacterType.values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods in edu.ou.pacman.character with parameters of type CharacterType | |
---|---|
static java.awt.image.BufferedImage |
PacmanCharacter.characterImage(CharacterType character)
Get the image for the specified character. |
static int |
CharacterType.colorValue(CharacterType color)
The value for the color in the game board space. |
Constructors in edu.ou.pacman.character with parameters of type CharacterType | |
---|---|
ImmutablePacmanCharacter(CharacterType characterType,
Location2D location)
|
|
PacmanCharacter(CharacterType characterType,
Location2D location)
|
Uses of CharacterType in edu.ou.pacman.heuristic |
---|
Methods in edu.ou.pacman.heuristic with parameters of type CharacterType | |
---|---|
static Direction |
GhostPathFinding.aStar(GameBoard board,
CharacterType character)
Method to determine the direction a player should go using the aStar algorithm. |
static Direction |
GhostPathFinding.greedyBestFirst(GameBoard board,
CharacterType character)
Method to determine the direction a player should go using the greedy best first search algorithm. |
static Direction |
GhostPathFinding.pacmanFinder(GameBoard board,
CharacterType character)
Check pacman's current location and follow him, regardless of him being powered up. |
Uses of CharacterType in edu.ou.pacman.view |
---|
Methods in edu.ou.pacman.view with parameters of type CharacterType | |
---|---|
void |
GameBoardView.drawCharacter(java.awt.Graphics g,
int x,
int y,
CharacterType type)
Display the character specified. |
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |