public class PlayMode
extends java.lang.Object
PlayMode class is used to control the different game external parameters.| Constructor and Description |
|---|
PlayMode(int fps,
int availableVeinSelectMilliseconds,
int availableTurnMilliseconds,
UserInterfaceMode userInterfaceMode,
boolean ignoringExceptions)
Constructs a PlayMode with the given parameters.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getAvailableTurnMilliseconds()
Returns the maximum milliseconds per a turn.
|
int |
getAvailableVeinSelectMilliseconds()
Returns the maximum milliseconds per a vein selection.
|
int |
getFps()
Returns the number of FPS of the game.
|
UserInterfaceMode |
getUserInterfaceMode()
Returns the mode of the user interface.
|
boolean |
isIgnoringExceptions()
Returns the ignoring exception status.
|
public PlayMode(int fps,
int availableVeinSelectMilliseconds,
int availableTurnMilliseconds,
UserInterfaceMode userInterfaceMode,
boolean ignoringExceptions)
fps - the fps which is speed for advancing the gameavailableVeinSelectMilliseconds - the maximum milliseconds per a vein selectionavailableTurnMilliseconds - the maximum milliseconds per a turn.userInterfaceMode - the user interface modeignoringExceptions - the ignoring exception status (true to ignore)public int getFps()
public int getAvailableTurnMilliseconds()
public int getAvailableVeinSelectMilliseconds()
public UserInterfaceMode getUserInterfaceMode()
public boolean isIgnoringExceptions()