|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.ou.pacman.heuristic.GhostPathFinding
public final class GhostPathFinding
Class to house static methods for pac-man's pathfinding heuristic methods.
Constructor Summary | |
---|---|
GhostPathFinding()
|
Method Summary | |
---|---|
static Direction |
aStar(GameBoard board,
CharacterType character)
Method to determine the direction a player should go using the aStar algorithm. |
static Direction |
greedyBestFirst(GameBoard board,
CharacterType character)
Method to determine the direction a player should go using the greedy best first search algorithm. |
static Direction |
pacmanFinder(GameBoard board,
CharacterType character)
Check pacman's current location and follow him, regardless of him being powered up. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GhostPathFinding()
Method Detail |
---|
public static Direction aStar(GameBoard board, CharacterType character)
board
- - The board to traverse.character
- - The character to determine a direction for
public static Direction greedyBestFirst(GameBoard board, CharacterType character)
board
- - The board to traverse.character
- - The character to determine a direction for
public static Direction pacmanFinder(GameBoard board, CharacterType character)
board
- - The game boardcharacter
- - The character to choose a direction for
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |