Class Difficulty
- java.lang.Object
-
- ch.sahits.game.openpatrician.model.Difficulty
-
public final class Difficulty extends java.lang.ObjectDefining the difficulty in the game- Author:
- Andi Hotz, (c) Sahits GmbH, 2011 Created on Jun 12, 2011
-
-
Field Summary
Fields Modifier and Type Field Description static DifficultyCHANDLERstatic DifficultyCOUNSILMANstatic DifficultyMERCHANTstatic DifficultyPATRICIANstatic DifficultyTRADESMAN
-
Constructor Summary
Constructors Constructor Description Difficulty(EDifficultyLevel trade, EDifficultyLevel approval, EDifficultyLevel need, EDifficultyLevel navalBattle, EDifficultyLevel pirateActivity, EDifficultyLevel sovereignActivity, int startingCapital, int numberOfShips, java.lang.String name)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DifficultyfromIndex(int selectedIndex)Create the difficulty from an index, where 0 is equivalent to Chandler.
-
-
-
Field Detail
-
CHANDLER
public static final Difficulty CHANDLER
-
MERCHANT
public static final Difficulty MERCHANT
-
TRADESMAN
public static final Difficulty TRADESMAN
-
COUNSILMAN
public static final Difficulty COUNSILMAN
-
PATRICIAN
public static final Difficulty PATRICIAN
-
-
Constructor Detail
-
Difficulty
public Difficulty(EDifficultyLevel trade, EDifficultyLevel approval, EDifficultyLevel need, EDifficultyLevel navalBattle, EDifficultyLevel pirateActivity, EDifficultyLevel sovereignActivity, int startingCapital, int numberOfShips, java.lang.String name)
-
-
Method Detail
-
fromIndex
public static Difficulty fromIndex(int selectedIndex)
Create the difficulty from an index, where 0 is equivalent to Chandler.- Parameters:
selectedIndex- index of the selection- Returns:
- Difficulty matching the selection
-
-