updated javaodoc Siedler

This commit is contained in:
Andrin Fassbind 2021-12-10 11:18:06 +01:00
parent 1b6983dace
commit 0386d43529
1 changed files with 3 additions and 1 deletions

View File

@ -5,6 +5,8 @@ import java.util.Random;
/** /**
* This Class manages the game process and contains the Main Method which creates and starts a new Parser and a new Game. * This Class manages the game process and contains the Main Method which creates and starts a new Parser and a new Game.
*
* @author Leonardo Brandeberger, Roman Schenk
*/ */
public class Siedler { public class Siedler {
/** /**
@ -29,7 +31,7 @@ public class Siedler {
boolean diceThrown = false; boolean diceThrown = false;
while (running) { while (running) {
Config.Faction currentPlayerFaction = game.getCurrentPlayerFaction(); Config.Faction currentPlayerFaction = game.getCurrentPlayerFaction();
parser.displayGameboard(game.getBoard().getTextView()); //TODO Every turn or separate command? parser.displayGameboard(game.getBoard().getTextView());
parser.playerTurn(currentPlayerFaction); parser.playerTurn(currentPlayerFaction);
if (!diceThrown) { if (!diceThrown) {
throwDice(parser, game); throwDice(parser, game);