| Type | Property and Description |
|---|---|
javafx.beans.property.ObjectProperty<EGameSpeed> |
gameSpeed
Property for the game speed.
|
| 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 javafx.beans.property.ObjectProperty<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.
|
javafx.beans.property.ObjectProperty<EGameSpeed> |
gameSpeedProperty()
Property for the game speed.
|
EGameSpeed |
getGameSpeed()
Gets the value of the property gameSpeed.
|
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)
Sets the value of the property gameSpeed.
|
private void |
setupGamespeed() |
private void |
unregister() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDifficulty, getMap, getTimepublic javafx.beans.property.ObjectProperty<EGameSpeed> gameSpeedProperty
gameSpeedProperty in interface IGamegetGameSpeed(),
setGameSpeed(EGameSpeed)@Autowired private IMap map
private final EObjective objective
private final Difficulty difficulty
private javafx.beans.property.ObjectProperty<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)
setGameSpeed 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 IGameTypepublic EGameSpeed getGameSpeed()
getGameSpeed in interface IGamepublic javafx.beans.property.ObjectProperty<EGameSpeed> gameSpeedProperty()
IGamegameSpeedProperty in interface IGamegetGameSpeed(),
setGameSpeed(EGameSpeed)Copyright © 2011-2018 Sahits GmbH. All Rights Reserved.