|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectheurgame.Referee
heurgame.DefaultReferee
| Constructor Summary | |
DefaultReferee()
|
|
| Method Summary | |
void |
addPlayer(PlayerProxy p)
Adds a new player, should trigger the game to send a player event. |
void |
gameEnded(GameEvent e)
In the case of a decisive victory informs the players if they have won. |
void |
gameSetup(GameEvent e)
Allows access to the game before the game starts |
void |
gameStarted(GameEvent e)
Sends all Players the intial information. |
void |
rejectAllPlayers()
The quick way to force a game reset. |
void |
reportIncrementalStatus()
Reports the latest change in the game to all players |
void |
reportStatus(PlayerToken doNotInform)
Reports the state of the game to all players execpt a particular one |
void |
turnChanged(TurnEvent e)
Where we look at the moves |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DefaultReferee()
| Method Detail |
public void addPlayer(PlayerProxy p)
Referee
addPlayer in class Refereep - the new player attached to the game.Referee.addPlayer(heurgame.PlayerProxy)public void gameSetup(GameEvent e)
e - May have some specific setup informationGameListener.gameSetup(heurgame.event.GameEvent)public void gameStarted(GameEvent e)
e - additional informationGameListener.gameStarted(heurgame.event.GameEvent)public void gameEnded(GameEvent e)
e - additional informationGameListener.gameEnded(heurgame.event.GameEvent)public void reportStatus(PlayerToken doNotInform)
Referee
reportStatus in class RefereedoNotInform - not told statuspublic void reportIncrementalStatus()
Referee
reportIncrementalStatus in class Refereepublic void turnChanged(TurnEvent e)
TurnListener.turnChanged(heurgame.event.TurnEvent)public void rejectAllPlayers()
Referee
rejectAllPlayers in class RefereeReferee.rejectAllPlayers()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||