Class KaiserGame

java.lang.Object
de.aikiit.game.kaiser.KaiserGame

public class KaiserGame extends Object
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

    Fields
    Modifier and Type
    Field
    Description
    static final int
    The player can play at most this number of rounds.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Performs user interactions.
    void
    Shows the game's banner.
    void
    Shows console banner after the game is over.
    void
    Shows results after the game is over.
    void
    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
    Shows the underlying status of the current round the player is in.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • MAX_ROUNDS

      public static final int MAX_ROUNDS
      The 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.