From 7b23ed5380bc8862ac392772ae7343ab9cb63b4c Mon Sep 17 00:00:00 2001 From: schrom01 Date: Thu, 2 Dec 2021 18:12:04 +0100 Subject: [PATCH] changes in mainMethod --- src/ch/zhaw/catan/Siedler.java | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/ch/zhaw/catan/Siedler.java b/src/ch/zhaw/catan/Siedler.java index 9798c46..7bafff8 100644 --- a/src/ch/zhaw/catan/Siedler.java +++ b/src/ch/zhaw/catan/Siedler.java @@ -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();