예제 #1
0
파일: Game.java 프로젝트: dallinca/Settlers
 /**
  * Retrieves whether the Robber can be moved to the specified hexLocation
  *
  * @pre board != null
  * @param hex
  * @return whether the Robber can be moved to the specified hexLocation
  */
 public boolean canDoMoveRobberToHex(int UserId, HexLocation hexLocation) {
   // Check if the user is the current player
   if (UserId != currentPlayer.getPlayerId()) {
     return false;
   }
   return board.canDoMoveRobberToHex(hexLocation);
 }