| Constructor | Description |
|---|---|
Game(EObjective objective,
Difficulty difficulty,
EGameSpeed speed,
boolean singleplayer) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
fastForward() |
Switch to fast forward until the first interuption.
|
javafx.beans.property.ObjectProperty<EGameSpeed> |
gameSpeedProperty() |
Property for the game speed.
|
EGameSpeed |
getGameSpeed() |
Retrieve the current game speed
|
void |
handleMessage(DisplayMessage message) |
|
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
|
getDifficulty, getMappublic Game(EObjective objective, Difficulty difficulty, EGameSpeed speed, boolean singleplayer)
public void setGameSpeed(EGameSpeed speed)
IGamesetGameSpeed in interface IGamespeed - new game speed.public 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 ch.sahits.game.openpatrician.utilities.model.IGameTypepublic EGameSpeed getGameSpeed()
IGamegetGameSpeed in interface IGamepublic javafx.beans.property.ObjectProperty<EGameSpeed> gameSpeedProperty()
IGamegameSpeedProperty in interface IGameCopyright © 2011-2018 Sahits GmbH. All Rights Reserved.