示例#1
0
文件: Game.java 项目: jgacitua/PacMan
 public void updateGhostsWithoutReverse(EnumMap<GHOST, MOVE> ghostMoves) {
   ghostMoves = _completeGhostMoves(ghostMoves);
   _updateGhosts(ghostMoves);
 }
示例#2
0
文件: Game.java 项目: jgacitua/PacMan
  /**
   * Updates the states of the ghosts given the moves returned by the controller.
   *
   * @param ghostMoves The moves supplied by the ghosts controller
   */
  public void updateGhosts(EnumMap<GHOST, MOVE> ghostMoves) {
    ghostMoves = _completeGhostMoves(ghostMoves);

    if (!_reverseGhosts(ghostMoves, false)) _updateGhosts(ghostMoves);
  }