public final class Difficulty extends Object
| Modifier and Type | Field and Description |
|---|---|
private EDifficultyLevel |
approval
Difficulty approval: at higher settings for every action that increases
the approval rating a malus is taken into account.
|
static Difficulty |
CHANDLER |
static Difficulty |
COUNSILMAN |
private String |
level
Name of the difficulty level.
|
static Difficulty |
MERCHANT |
private EDifficultyLevel |
navalBattle
Naval battle strength: at higher levels the opponents navigate more intelligent.
|
private EDifficultyLevel |
need
Need of civilians: at higher levels the citicens are more easily unhappy when certain
wares are missing.
|
private int |
numberOfShips
Number of starting ships
|
static Difficulty |
PATRICIAN |
private EDifficultyLevel |
pirateActivity
Pirate activity: at higher levels there are more pirates that are more havily armed.
|
private EDifficultyLevel |
sovereignActivity
Activity of the sovereign: at higher levels the sovereign uses larger armies and sieges do
happen more often.
|
private int |
startingCapital
starting capital
|
private EDifficultyLevel |
trade
Difficulty trade: at higher settings the buying prices are
higher and the selling prices, thus reducing the margin of profit
|
static Difficulty |
TRADESMAN |
| Constructor and Description |
|---|
Difficulty(EDifficultyLevel trade,
EDifficultyLevel approval,
EDifficultyLevel need,
EDifficultyLevel navalBattle,
EDifficultyLevel pirateActivity,
EDifficultyLevel sovereignActivity,
int startingCapital,
int numberOfShips,
String name) |
| Modifier and Type | Method and Description |
|---|---|
static Difficulty |
fromIndex(int selectedIndex)
Create the difficulty from an index, where 0 is equivalent to Chandler.
|
public static final Difficulty CHANDLER
public static final Difficulty MERCHANT
public static final Difficulty TRADESMAN
public static final Difficulty COUNSILMAN
public static final Difficulty PATRICIAN
private final EDifficultyLevel trade
private final EDifficultyLevel approval
private final EDifficultyLevel need
private final EDifficultyLevel navalBattle
private final EDifficultyLevel pirateActivity
private final EDifficultyLevel sovereignActivity
private final int startingCapital
private final int numberOfShips
private final String level
public Difficulty(EDifficultyLevel trade, EDifficultyLevel approval, EDifficultyLevel need, EDifficultyLevel navalBattle, EDifficultyLevel pirateActivity, EDifficultyLevel sovereignActivity, int startingCapital, int numberOfShips, String name)
public static Difficulty fromIndex(int selectedIndex)
selectedIndex - Copyright © 2011-2016 Sahits GmbH. All Rights Reserved.