Example #1
0
 /**
  * Can we place a settlement on that vertex?
  *
  * @pre the vertex location is not null
  * @param vertexLocation
  * @post it tells you whether or not you can build a Settlement on that vertex
  */
 public boolean canDoPlaceSettlementOnVertex(int UserId, VertexLocation vertexLocation) {
   // Check if the user is the current player
   if (UserId != currentPlayer.getPlayerId()) {
     return false;
   }
   return board.canDoPlaceSettlementOnVertex(currentPlayer, vertexLocation);
 }