private void move(ManantialesFicha... moves) throws InvalidMoveException { for (ManantialesFicha f : moves) { ManantialesPlayer player = null; for (GridPlayer p : game.getPlayers()) { if (p.getColor().equals(f.getColor())) { player = (ManantialesPlayer) p; break; } } stripTurns(); player.setTurn(true); ManantialesMove m = new ManantialesMove(player, f); game.move(m); } }
private void stripTurns() { for (GridPlayer p : game.getPlayers()) { p.setTurn(false); } game.setTurns(0); }