Class KaiserEnginePrinter

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

public class KaiserEnginePrinter extends Object
This class contains static helper methods to print results or calculation or status information of the currently running game.
  • Field Details

  • Constructor Details

    • KaiserEnginePrinter

      public KaiserEnginePrinter(KaiserEngine engine)
  • Method Details

    • getStatus

      public String getStatus(int round)
      Show status information of the underlying game engine for the given round.
      Parameters:
      round - current round/year of the game.
      Returns:
      colour-encoded status.
    • getYearResult

      public String getYearResult(int round)
      Show population result of the current round.
      Parameters:
      round - current round/year of the game.
      Returns:
      colour-encoded population statistics.
    • getResults

      public String getResults()
      After the game ends and the maximum number of years is reached an overall statistics is printed out.
      Returns:
      colour-encoded overall statistics.
    • evaluateRegency

      public String evaluateRegency()
      Depending on global rules the player's legacy is described/classified depending on the engine's results.
      Returns:
      colour-encoded legacy/regency output.