Index
All Classes and Interfaces|All Packages|Constant Field Values
A
- abort() - Method in class de.aikiit.game.kaiser.KaiserEngine
-
Marks the game as aborted without changing resources or demographic figures.
- ABORTED - Enum constant in enum class de.aikiit.game.kaiser.KaiserEngine.GameState
-
The player or console input ended the game before completion.
- actions() - Method in class de.aikiit.game.kaiser.KaiserGame
-
Performs user interactions.
- ANSI_BLACK - Static variable in class de.aikiit.game.kaiser.KaiserEnginePrinter
-
Colour BLACK.
- ANSI_BLUE - Static variable in class de.aikiit.game.kaiser.KaiserEnginePrinter
-
Colour BLUE.
- ANSI_CYAN - Static variable in class de.aikiit.game.kaiser.KaiserEnginePrinter
-
Colour CYAN.
- ANSI_GREEN - Static variable in class de.aikiit.game.kaiser.KaiserEnginePrinter
-
Colour GREEN.
- ANSI_PURPLE - Static variable in class de.aikiit.game.kaiser.KaiserEnginePrinter
-
Colour PURPLE.
- ANSI_RED - Static variable in class de.aikiit.game.kaiser.KaiserEnginePrinter
-
Colour RED.
- ANSI_RESET - Static variable in class de.aikiit.game.kaiser.KaiserEnginePrinter
-
Reset anything in console.
- ANSI_WHITE - Static variable in class de.aikiit.game.kaiser.KaiserEnginePrinter
-
Colour WHITE.
- ANSI_YELLOW - Static variable in class de.aikiit.game.kaiser.KaiserEnginePrinter
-
Colour YELLOW.
B
- banner() - Method in class de.aikiit.game.kaiser.KaiserGame
-
Shows the game's banner.
- buy(KaiserEngine, Scanner) - Static method in class de.aikiit.game.kaiser.KaiserActions
-
Asks how many hectares to buy and retries until the engine accepts the quantity or the game is aborted.
- buyLand(long) - Method in class de.aikiit.game.kaiser.KaiserEngine
-
Buys a whole-number quantity of land using the same validation, grain payment and abort handling as
KaiserEngine.buyLand(BigDecimal). - buyLand(BigDecimal) - Method in class de.aikiit.game.kaiser.KaiserEngine
-
Increases owned land by the requested hectares and pays for it from grain stocks at the current land price.
- byeByeBanner() - Method in class de.aikiit.game.kaiser.KaiserGame
-
Shows console banner after the game is over.
C
- COMPLETED - Enum constant in enum class de.aikiit.game.kaiser.KaiserEngine.GameState
-
The ten action years and the final year-start update have completed.
- countDiscontentedResidents() - Method in class de.aikiit.game.kaiser.KaiserEngine
-
Draws the number of residents who would like to hang the ruler in the mediocre-reign message.
- cultivate(long) - Method in class de.aikiit.game.kaiser.KaiserEngine
-
Plants a whole-number area and processes the harvest using the same resource checks, random draws and abort handling as
KaiserEngine.cultivate(BigDecimal). - cultivate(KaiserEngine, Scanner) - Static method in class de.aikiit.game.kaiser.KaiserActions
-
Asks how many hectares to plant and delegates seed consumption, harvest and rat losses to the engine.
- cultivate(BigDecimal) - Method in class de.aikiit.game.kaiser.KaiserEngine
-
Validates the planted area, consumes seed grain and processes this year's harvest and rat damage.
D
- de.aikiit.game.kaiser - package de.aikiit.game.kaiser
- DISASTROUS - Enum constant in enum class de.aikiit.game.kaiser.KaiserEngine.Regency
-
Average starvation exceeds 33 percent, or land per person is below seven hectares.
- DISMISSED - Enum constant in enum class de.aikiit.game.kaiser.KaiserEngine.GameState
-
More than 45 percent of the population starved in one year.
E
- evaluateRegency() - Method in class de.aikiit.game.kaiser.KaiserEnginePrinter
-
Depending on global rules the player's legacy is described/classified depending on the engine's results.
- EXCELLENT - Enum constant in enum class de.aikiit.game.kaiser.KaiserEngine.Regency
-
Average starvation is at most three percent and land per person is at least ten hectares.
F
- feed(KaiserEngine, Scanner) - Static method in class de.aikiit.game.kaiser.KaiserActions
-
Asks how much stored grain to distribute to the population.
- feedToPopulation(long) - Method in class de.aikiit.game.kaiser.KaiserEngine
-
Allocates a whole-number amount of grain for feeding using the same stock checks, deferred starvation calculation and abort handling as
KaiserEngine.feedToPopulation(BigDecimal). - feedToPopulation(BigDecimal) - Method in class de.aikiit.game.kaiser.KaiserEngine
-
Removes the requested grain from stocks and remembers it as this year's food allocation.
- finish() - Method in class de.aikiit.game.kaiser.KaiserGame
-
Shows results after the game is over.
- finishRoundAfterActions() - Method in class de.aikiit.game.kaiser.KaiserEngine
-
Resolves the year's demographic consequences after trading, feeding and planting.
G
- GameKaiserJavaApplication - Class in de.aikiit.game.kaiser
-
This is the main class to start the game.
- GameKaiserJavaApplication() - Constructor for class de.aikiit.game.kaiser.GameKaiserJavaApplication
- getDismissal() - Method in class de.aikiit.game.kaiser.KaiserEnginePrinter
- getLandPerPerson() - Method in class de.aikiit.game.kaiser.KaiserEngine
-
Calculates owned hectares per current inhabitant without rounding the result to a whole number.
- getRegency() - Method in class de.aikiit.game.kaiser.KaiserEngine
-
Classifies the reign using average annual starvation and current land per inhabitant, checking the worst applicable tier first.
- getResults() - Method in class de.aikiit.game.kaiser.KaiserEnginePrinter
-
After the game ends and the maximum number of years is reached an overall statistics is printed out.
- getStatus(int) - Method in class de.aikiit.game.kaiser.KaiserEnginePrinter
-
Show status information of the underlying game engine for the given round.
- getYearResult(int) - Method in class de.aikiit.game.kaiser.KaiserEnginePrinter
-
Show population result of the current round.
I
- intro() - Method in class de.aikiit.game.kaiser.KaiserGame
-
Shows information about the game flow and welcomes the player.
- isGameOver() - Method in class de.aikiit.game.kaiser.KaiserEngine
-
Indicates whether the reign completed, the ruler was dismissed or play was aborted.
K
- KaiserActions - Class in de.aikiit.game.kaiser
-
Handles the console dialogue for buying and selling land, feeding the population and planting crops.
- KaiserEngine - Class in de.aikiit.game.kaiser
-
Maintains the city's population, land, grain stocks and reign statistics, and applies the rules from KAISER.BAS (09.08.1992) without performing console I/O.
- KaiserEngine() - Constructor for class de.aikiit.game.kaiser.KaiserEngine
-
Creates a new reign with the BASIC starting resources and a secure random source for prices, harvests, rat losses, immigration and plague events.
- KaiserEngine(Random) - Constructor for class de.aikiit.game.kaiser.KaiserEngine
-
Creates a new reign using a caller-supplied source of random values.
- KaiserEngine.GameState - Enum Class in de.aikiit.game.kaiser
-
Describes whether further annual updates and player actions are permitted.
- KaiserEngine.Regency - Enum Class in de.aikiit.game.kaiser
-
Final rating based on average starvation and land owned per inhabitant.
- KaiserEnginePrinter - Class in de.aikiit.game.kaiser
-
This class contains static helper methods to print results or calculation or status information of the currently running game.
- KaiserEnginePrinter(KaiserEngine) - Constructor for class de.aikiit.game.kaiser.KaiserEnginePrinter
- KaiserGame - Class in de.aikiit.game.kaiser
-
This class encapsulates the actual game flow.
- KaiserGame() - Constructor for class de.aikiit.game.kaiser.KaiserGame
-
Initializes a game with default parameters.
- KaiserGame(KaiserEngine, Scanner) - Constructor for class de.aikiit.game.kaiser.KaiserGame
-
Allows setting an explicit engine for testing purposes.
M
- main(String[]) - Static method in class de.aikiit.game.kaiser.GameKaiserJavaApplication
-
Start the actual game directly.
- MAX_ROUNDS - Static variable in class de.aikiit.game.kaiser.KaiserGame
-
The player can play at most this number of rounds.
- MEDIOCRE - Enum constant in enum class de.aikiit.game.kaiser.KaiserEngine.Regency
-
Below the worse tiers, but starvation exceeds three percent or land per person is below ten.
O
- ORANGE - Static variable in class de.aikiit.game.kaiser.KaiserEnginePrinter
-
Colour ORANGE.
P
- prepareLandTrading() - Method in class de.aikiit.game.kaiser.KaiserEngine
-
Draws the grain price for one hectare of land, uniformly from 17 through 26 dt, and stores it for both buying and selling during the current year.
R
- reset() - Method in class de.aikiit.game.kaiser.KaiserEngine
-
Restores all resources, annual figures and accumulated statistics to their starting values, and makes the game runnable again.
- run() - Method in class de.aikiit.game.kaiser.KaiserGame
-
Shows the introduction and start confirmation without the original BASIC code gate, then runs the reign until completion, dismissal or an abort.
- RUNNING - Enum constant in enum class de.aikiit.game.kaiser.KaiserEngine.GameState
-
The reign is in progress and the caller may advance the game.
S
- sell(KaiserEngine, Scanner) - Static method in class de.aikiit.game.kaiser.KaiserActions
-
Asks how many hectares to sell in exchange for grain at the current land price.
- sellLand(long) - Method in class de.aikiit.game.kaiser.KaiserEngine
-
Sells a whole-number quantity of land using the same price, ownership checks and abort handling as
KaiserEngine.sellLand(BigDecimal). - sellLand(BigDecimal) - Method in class de.aikiit.game.kaiser.KaiserEngine
-
Reduces owned land by the offered hectares and credits grain stocks at the current land price.
- startNewRound() - Method in class de.aikiit.game.kaiser.KaiserEngine
-
Advances to the next report year, adds the previously calculated immigrants and applies the stored plague roll.
- status() - Method in class de.aikiit.game.kaiser.KaiserGame
-
Shows the underlying status of the current round the player is in.
T
- TYRANNICAL - Enum constant in enum class de.aikiit.game.kaiser.KaiserEngine.Regency
-
Below the disastrous tier, but starvation exceeds 10 percent or land per person is below nine.
V
- valueOf(String) - Static method in enum class de.aikiit.game.kaiser.KaiserEngine.GameState
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class de.aikiit.game.kaiser.KaiserEngine.Regency
-
Returns the enum constant of this class with the specified name.
- values() - Static method in enum class de.aikiit.game.kaiser.KaiserEngine.GameState
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class de.aikiit.game.kaiser.KaiserEngine.Regency
-
Returns an array containing the constants of this enum class, in the order they are declared.
All Classes and Interfaces|All Packages|Constant Field Values