示例#1
0
 public void passLand(Land landAttacker, Land landDefender, RiskPlayer oldOwner, RiskPlayer newOwner, int tanks)
 {
     oldOwner.removeLand(landDefender);
     newOwner.addLand(landDefender);
     moveTanks(landAttacker, landDefender, tanks);
     if (!newOwner.getConqueredLand())
     {
         newOwner.setConqueredLand(true);
     }
 }
示例#2
0
 public void passTurn()
 {
     if (currentPlayer.getConqueredLand())
     {
         dealer.drawCard(currentPlayer);
         currentPlayer.setConqueredLand(false);
     }
     nextPlayer();
     nextPhase();
 }