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
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
buy
(KaiserEngine engine) Try to buy land in the current game.static void
cultivate
(KaiserEngine engine) In order to feed your population you need to plant crops and cultivate your available area/land.static void
feed
(KaiserEngine engine) Perform a feeding operation in the current game, that means give food to the population.static void
sell
(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:
true
if the buy action succeeded,false
otherwise.
-
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
-