Interface IGame
-
- All Known Implementing Classes:
Game
public interface IGameModel of the game.- Author:
- Andi Hotz, (c) Sahits GmbH, 2011 Created on Sep 9, 2011
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidfastForward()Switch to fast forward until the first interuption.javafx.beans.property.ObjectProperty<EGameSpeed>gameSpeedProperty()Property for the game speed.DifficultygetDifficulty()Retrieve the difficultiy level of the gameEGameSpeedgetGameSpeed()Retrieve the current game speedIMapgetMap()Retrieve the mapbooleanisObjectivReached()check if the objective of the game is reached.voidnormalSpeed()Return to normal speed.voidsetGameSpeed(EGameSpeed speed)Set a new game speed
-
-
-
Method Detail
-
getMap
IMap getMap()
Retrieve the map- Returns:
- reference to the game map
-
isObjectivReached
boolean isObjectivReached()
check if the objective of the game is reached. This method may not be called by the server part- Returns:
- flag indicating of the game objective has been reached
-
setGameSpeed
void setGameSpeed(EGameSpeed speed)
Set a new game speed- Parameters:
speed- new game speed.
-
getGameSpeed
EGameSpeed getGameSpeed()
Retrieve the current game speed- Returns:
- current game speed
-
gameSpeedProperty
javafx.beans.property.ObjectProperty<EGameSpeed> gameSpeedProperty()
Property for the game speed.- Returns:
- property of the current game speed.
-
getDifficulty
Difficulty getDifficulty()
Retrieve the difficultiy level of the game- Returns:
- difficulty level
-
fastForward
void fastForward()
Switch to fast forward until the first interuption.
-
normalSpeed
void normalSpeed()
Return to normal speed.
-
-