Esempio n. 1
0
 /**
  * The Specified User will Steal a Random ResourceCard from the specified Victim
  *
  * @pre canDoStealPlayerResource != false
  * @param UserId
  * @param victimId
  * @throws Exception
  * @post the Victim will have one less Resource Card, which the User will now have in possession
  */
 public void stealPlayerResource(int UserId, int victimId) throws Exception {
   if (canDoStealPlayerResource(UserId, victimId) == false) {
     throw new Exception("canDoStealPlayerResource == false");
   }
   currentPlayer.stealPlayerResource(getPlayerByID(victimId));
   status = "Playing";
   versionNumber++;
 }