Package de.aikiit.game.kaiser
Class KaiserGame
java.lang.Object
de.aikiit.game.kaiser.KaiserGame
This class encapsulates the actual game flow.
A player
- is shown current statistics and
- can start to act
- until the maximum number of rounds is reached and the game ends.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
The player can play at most this number of rounds. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
actions()
Performs user interactions.void
banner()
Shows the game's banner.void
Shows console banner after the game is over.void
finish()
Shows results after the game is over.void
intro()
Shows information about the game flow and welcomes the player.void
run()
Start the game and allow player interactions until the maximum number of rounds is reached.void
status()
Shows the underlying status of the current round the player is in.
-
Field Details
-
MAX_ROUNDS
public static final int MAX_ROUNDSThe player can play at most this number of rounds.- See Also:
-
-
Constructor Details
-
KaiserGame
public KaiserGame() -
KaiserGame
KaiserGame(KaiserEngine engine)
-
-
Method Details
-
run
public void run()Start the game and allow player interactions until the maximum number of rounds is reached. -
intro
public void intro()Shows information about the game flow and welcomes the player. -
banner
public void banner()Shows the game's banner. -
byeByeBanner
public void byeByeBanner()Shows console banner after the game is over. -
status
public void status()Shows the underlying status of the current round the player is in. -
actions
public void actions()Performs user interactions. The player can either- buy or sell land
- feed the population
- perform agricultural operations per round.
-
finish
public void finish()Shows results after the game is over.
-