| Modifier and Type | Field and Description |
|---|---|
protected com.google.common.eventbus.AsyncEventBus |
clientEventBus |
private static boolean |
constructed |
private Difficulty |
difficulty |
private boolean |
fastforward |
private EGameSpeed |
gameSpeed |
private IMap |
map |
private EObjective |
objective |
private Date |
time |
| Constructor and Description |
|---|
Game(EObjective objective,
Difficulty difficulty,
EGameSpeed speed) |
| Modifier and Type | Method and Description |
|---|---|
void |
fastForward()
Switch to fast forward until the first interuption.
|
void |
handleMessage(DisplayMessage message) |
private void |
init() |
boolean |
isObjectivReached()
check if the objective of the game is reached.
|
private void |
normalSpeed() |
void |
setGameSpeed(EGameSpeed speed)
Set a new game speed
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDifficulty, getGameSpeed, getMap, getTime@Autowired private IMap map
private final EObjective objective
private final Difficulty difficulty
private EGameSpeed gameSpeed
private boolean fastforward
@Autowired private Date time
@Autowired @Qualifier(value="clientEventBus") protected com.google.common.eventbus.AsyncEventBus clientEventBus
private static boolean constructed
public Game(EObjective objective, Difficulty difficulty, EGameSpeed speed)
@PostConstruct private void init()
public void setGameSpeed(EGameSpeed speed)
IGamesetGameSpeed in interface IGamepublic void handleMessage(DisplayMessage message)
private void normalSpeed()
public void fastForward()
IGamefastForward in interface IGamepublic boolean isObjectivReached()
IGameisObjectivReached in interface IGameCopyright © 2011-2015 Sahits GmbH. All Rights Reserved.