changes in mainMethod

This commit is contained in:
schrom01 2021-12-02 18:12:04 +01:00
parent be26fc77cd
commit 7b23ed5380
1 changed files with 9 additions and 1 deletions

View File

@ -25,16 +25,24 @@ public class Siedler {
game.switchToNextPlayer();
break;
case BUILDSETTLEMENT:
game.
parser.giveCoordinatesForStructures(Config.Structure.SETTLEMENT);
game.buildSettlement(parser.getPoint());
break;
case BUILDCITY:
parser.giveCoordinatesForStructures(Config.Structure.CITY);
game.buildCity(parser.getPoint());
break;
case BUILDROAD:
parser.giveCoordinatesForStructures(Config.Structure.ROAD);
game.buildRoad(parser.getPoint(), parser.getPoint());
break;
case TRADEWITHBANK:
Config.Resource toGive = parser.trade(true);
Config.Resource toGet = parser.trade(false);
break;
case QUIT:
running = false;
//todo clone windows
break;
default:
parser.errorMessage();