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