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(); game.switchToNextPlayer();
break; break;
case BUILDSETTLEMENT: case BUILDSETTLEMENT:
game. parser.giveCoordinatesForStructures(Config.Structure.SETTLEMENT);
game.buildSettlement(parser.getPoint());
break; break;
case BUILDCITY: case BUILDCITY:
parser.giveCoordinatesForStructures(Config.Structure.CITY);
game.buildCity(parser.getPoint());
break; break;
case BUILDROAD: case BUILDROAD:
parser.giveCoordinatesForStructures(Config.Structure.ROAD);
game.buildRoad(parser.getPoint(), parser.getPoint());
break; break;
case TRADEWITHBANK: case TRADEWITHBANK:
Config.Resource toGive = parser.trade(true);
Config.Resource toGet = parser.trade(false);
break; break;
case QUIT: case QUIT:
running = false; running = false;
//todo clone windows
break; break;
default: default:
parser.errorMessage(); parser.errorMessage();