Package de.aikiit.game.kaiser
Class KaiserActions
java.lang.Object
de.aikiit.game.kaiser.KaiserActions
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanbuy(KaiserEngine engine) Try to buy land in the current game.static voidcultivate(KaiserEngine engine) In order to feed your population you need to plant crops and cultivate your available area/land.static voidfeed(KaiserEngine engine) Perform a feeding operation in the current game, that means give food to the population.static voidsell(KaiserEngine engine) Perform a sell operation in the current game.
-
Constructor Details
-
KaiserActions
public KaiserActions()
-
-
Method Details
-
buy
Try to buy land in the current game.- Parameters:
engine- the current game engine- Returns:
trueif the buy action succeeded,falseotherwise.
-
sell
Perform a sell operation in the current game.- Parameters:
engine- the current game engine
-
feed
Perform a feeding operation in the current game, that means give food to the population.- Parameters:
engine- the current game engine
-
cultivate
In order to feed your population you need to plant crops and cultivate your available area/land.- Parameters:
engine- the current game engine
-