| Modifier and Type | Field and Description |
|---|---|
private com.google.common.eventbus.AsyncEventBus |
clientEventBus |
private com.google.common.eventbus.AsyncEventBus |
clientServerEventBus |
private static boolean |
constructed |
private Difficulty |
difficulty |
private boolean |
fastforward |
private EGameSpeed |
gameSpeed |
private IMap |
map |
private EObjective |
objective |
private boolean |
singleplayer |
private Date |
time |
| Constructor and Description |
|---|
Game(EObjective objective,
Difficulty difficulty,
EGameSpeed speed,
boolean singleplayer) |
| 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.
|
boolean |
isSinglePlayer() |
void |
normalSpeed()
Return to normal speed.
|
void |
setGameSpeed(EGameSpeed speed)
Set a new game speed
|
private void |
setupGamespeed() |
private void |
unregister() |
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
private boolean singleplayer
@Autowired @Qualifier(value="clientEventBus") private com.google.common.eventbus.AsyncEventBus clientEventBus
@Autowired @Qualifier(value="serverClientEventBus") private com.google.common.eventbus.AsyncEventBus clientServerEventBus
private static boolean constructed
public Game(EObjective objective, Difficulty difficulty, EGameSpeed speed, boolean singleplayer)
@PostConstruct private void init()
private void setupGamespeed()
@PreDestroy private void unregister()
public void setGameSpeed(EGameSpeed speed)
IGamesetGameSpeed in interface IGamepublic void handleMessage(DisplayMessage message)
public void normalSpeed()
IGamenormalSpeed in interface IGamepublic void fastForward()
IGamefastForward in interface IGamepublic boolean isObjectivReached()
IGameisObjectivReached in interface IGamepublic boolean isSinglePlayer()
isSinglePlayer in interface IGameTypeCopyright © 2011-2016 Sahits GmbH. All Rights Reserved.