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); } }
public void passTurn() { if (currentPlayer.getConqueredLand()) { dealer.drawCard(currentPlayer); currentPlayer.setConqueredLand(false); } nextPlayer(); nextPhase(); }