Class KaiserActions

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

public class KaiserActions extends Object
This class contains all available actions that have to be taken by the player of the game. At the moment this is done via the operating system's console.
  • Constructor Details

    • KaiserActions

      public KaiserActions()
  • Method Details

    • buy

      public static boolean buy(KaiserEngine engine)
      Try to buy land in the current game.
      Parameters:
      engine - the current game engine
      Returns:
      true if the buy action succeeded, false otherwise.
    • sell

      public static void sell(KaiserEngine engine)
      Perform a sell operation in the current game.
      Parameters:
      engine - the current game engine
    • feed

      public static void feed(KaiserEngine engine)
      Perform a feeding operation in the current game, that means give food to the population.
      Parameters:
      engine - the current game engine
    • cultivate

      public static void cultivate(KaiserEngine engine)
      In order to feed your population you need to plant crops and cultivate your available area/land.
      Parameters:
      engine - the current game engine