fixed Error in Main Method
This commit is contained in:
parent
060310aebc
commit
f60b65af83
|
@ -30,14 +30,14 @@ public class Siedler {
|
||||||
switch (parser.getAction()) {
|
switch (parser.getAction()) {
|
||||||
case NEXTPLAYER:
|
case NEXTPLAYER:
|
||||||
Config.Faction winner = game.getWinner();
|
Config.Faction winner = game.getWinner();
|
||||||
if(winner == null) {
|
if(winner == null && false) { //todo remove false
|
||||||
game.switchToNextPlayer();
|
game.switchToNextPlayer();
|
||||||
diceThrown = false;
|
diceThrown = false;
|
||||||
break;
|
|
||||||
} else {
|
} else {
|
||||||
parser.displayWinnertext(winner);
|
parser.displayWinnertext(game.getCurrentPlayerFaction());//todo replace with winner
|
||||||
running = false;
|
running = false;
|
||||||
}
|
}
|
||||||
|
break;
|
||||||
case BUILDSETTLEMENT:
|
case BUILDSETTLEMENT:
|
||||||
parser.giveCoordinatesForStructures(Config.Structure.SETTLEMENT);
|
parser.giveCoordinatesForStructures(Config.Structure.SETTLEMENT);
|
||||||
game.buildSettlement(parser.getPoint());
|
game.buildSettlement(parser.getPoint());
|
||||||
|
|
Loading…
Reference in New Issue