Interface IGame
-
- All Known Implementing Classes:
Game
public interface IGame
Model 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 void
fastForward()
Switch to fast forward until the first interuption.javafx.beans.property.ObjectProperty<EGameSpeed>
gameSpeedProperty()
Property for the game speed.Difficulty
getDifficulty()
Retrieve the difficultiy level of the gameEGameSpeed
getGameSpeed()
Retrieve the current game speedIMap
getMap()
Retrieve the mapboolean
isObjectivReached()
check if the objective of the game is reached.void
normalSpeed()
Return to normal speed.void
setGameSpeed(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.
-
-