changes in mainMethod
This commit is contained in:
parent
be26fc77cd
commit
7b23ed5380
|
@ -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();
|
||||||
|
|
Loading…
Reference in New Issue