Uses of Class
edu.ou.pacman.util.Direction

Packages that use Direction
edu.ou.pacman   
edu.ou.pacman.board   
edu.ou.pacman.character   
edu.ou.pacman.client   
edu.ou.pacman.controller   
edu.ou.pacman.heuristic   
edu.ou.pacman.util   
 

Uses of Direction in edu.ou.pacman
 

Methods in edu.ou.pacman with parameters of type Direction
 boolean ImmutablePacmanState.canMove(CharacterType character, Direction direction)
          Determine whether a character can move in a given direction.
 boolean PacmanControllable.isLegal(Direction action)
           
 boolean ImmutablePacmanState.pelletInDirection(CharacterType character, Direction direction)
          Check whether a pellet is available in a given direction for the character.
 Location2D ImmutablePacmanState.simulatePacmanMoveFromLocation(Location2D startingLocation, Direction direction)
          Pretends to move pacman from the specified location in the specified direction.
 

Uses of Direction in edu.ou.pacman.board
 

Methods in edu.ou.pacman.board with parameters of type Direction
 boolean BoardLocation.blocked(Direction direction)
          Returns whether a location is blocked in the given direction.
 boolean GameBoard.canMove(CharacterType character, Direction direction)
          Determine whether a player can move in a given direction.
 Location2D GameBoard.simulateMove(Location2D startingLocation, Direction direction)
          Simulate moving from one location to another (but don't actually update the game board)
 

Uses of Direction in edu.ou.pacman.character
 

Methods in edu.ou.pacman.character that return Direction
 Direction PacmanCharacter.currentAction()
           
 

Methods in edu.ou.pacman.character with parameters of type Direction
 void PacmanCharacter.setCurrentAction(Direction d)
           
 

Uses of Direction in edu.ou.pacman.client
 

Methods in edu.ou.pacman.client that return Direction
 Direction DepthFirstClient.DFS(javax.swing.tree.DefaultMutableTreeNode tree, ImmutablePacmanState world, ImmutablePacmanCharacter client, Location2D goalLocation)
          Method to recursively search a node following Depth First Search protocol.
 Direction PelletFinder.startAction(ImmutablePacmanState world, ImmutablePacmanCharacter client)
           
 Direction PacmanFinder.startAction(ImmutablePacmanState world, ImmutablePacmanCharacter client)
           
 Direction DepthFirstClient.startAction(ImmutablePacmanState world, ImmutablePacmanCharacter client)
           
 Direction ClosePelletGrabber.startAction(ImmutablePacmanState world, ImmutablePacmanCharacter client)
           
 Direction RandomClient.startAction(ImmutablePacmanState world, ImmutablePacmanCharacter client)
           
 

Uses of Direction in edu.ou.pacman.controller
 

Fields in edu.ou.pacman.controller declared as Direction
static Direction PlayerController.PLAYER_MOVEMENT
           
 

Uses of Direction in edu.ou.pacman.heuristic
 

Methods in edu.ou.pacman.heuristic that return Direction
static Direction PacmanPathFinding.aStar(GameBoard board)
          Method to determine the direction a player should go using the aStar algorithm.
static Direction GhostPathFinding.aStar(GameBoard board, CharacterType character)
          Method to determine the direction a player should go using the aStar algorithm.
static Direction PacmanPathFinding.greedyBestFirst(GameBoard board)
          Method to determine the direction a player should go using the greedy best first search 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.
static Direction PacmanPathFinding.pelletFinder(GameBoard board)
          Check pacman's current location and shoot for the next pellet regardless of where the ghosts are.
 

Uses of Direction in edu.ou.pacman.util
 

Methods in edu.ou.pacman.util that return Direction
 Direction[] Location2D.directionsToOther(Location2D other)
          Return the directions from one location to another.
 Direction Location2D.directionToOther(Location2D other)
          Determines the direction needed to go towards another location.
 Direction Direction.opposite()
          Return the opposite direction of this direction.
static Direction Direction.oppositeDirection(Direction direction)
          Return the opposite direction of the given one.
static Direction Direction.random()
          Delivers a random direction.
static Direction Direction.valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static Direction[] Direction.values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 

Methods in edu.ou.pacman.util with parameters of type Direction
static Direction Direction.oppositeDirection(Direction direction)
          Return the opposite direction of the given one.