ch.sahits.game.openpatrician.model
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
 Difficulty getDifficulty()
          Retrieve the difficultiy level of the game
 EGameSpeed getGameSpeed()
          Retrieve the current game speed
 IMap getMap()
          Retrieve the map
 Date getTime()
          Retrieve the game time
 boolean isObjectivReached()
          check if the objective of the game is reached.
 void setGameSpeed(EGameSpeed speed)
          Set a new game speed
 

Method Detail

getMap

IMap getMap()
Retrieve the map

Returns:

isObjectivReached

boolean isObjectivReached()
check if the objective of the game is reached. This method may not be called by the server part

Returns:

setGameSpeed

void setGameSpeed(EGameSpeed speed)
Set a new game speed

Parameters:
speed -

getGameSpeed

EGameSpeed getGameSpeed()
Retrieve the current game speed

Returns:

getDifficulty

Difficulty getDifficulty()
Retrieve the difficultiy level of the game

Returns:

getTime

Date getTime()
Retrieve the game time

Returns:


Copyright © 2011-2012 Sahits GmbH. All Rights Reserved.