|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectch.sahits.game.openpatrician.model.Game
class Game
Implementation of the game
| Field Summary | |
|---|---|
private Difficulty |
difficulty
|
private Date |
gameTime
|
private IMap |
map
|
private EObjective |
objective
|
private EGameSpeed |
speed
|
| Constructor Summary | |
|---|---|
Game(IMap map,
EObjective objective,
Difficulty difficulty,
EGameSpeed speed,
Date gameTime)
|
|
| Method Summary | |
|---|---|
void |
gameUpdate(Event e,
Object eventNotice)
|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private final IMap map
private final EObjective objective
private final Difficulty difficulty
private EGameSpeed speed
private Date gameTime
| Constructor Detail |
|---|
public Game(IMap map,
EObjective objective,
Difficulty difficulty,
EGameSpeed speed,
Date gameTime)
| Method Detail |
|---|
public IMap getMap()
IGame
getMap in interface IGamepublic boolean isObjectivReached()
IGame
isObjectivReached in interface IGamepublic void setGameSpeed(EGameSpeed speed)
IGame
setGameSpeed in interface IGamepublic EGameSpeed getGameSpeed()
IGame
getGameSpeed in interface IGamepublic Difficulty getDifficulty()
IGame
getDifficulty in interface IGamepublic Date getTime()
IGame
getTime in interface IGame
public void gameUpdate(Event e,
Object eventNotice)
gameUpdate in interface IEventListener
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||