Exemple #1
0
 public void updateGhostsWithoutReverse(EnumMap<GHOST, MOVE> ghostMoves) {
   ghostMoves = _completeGhostMoves(ghostMoves);
   _updateGhosts(ghostMoves);
 }
Exemple #2
0
  /**
   * 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);
  }