|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Method Summary | |
void |
addGameListener(GameListener g)
|
void |
addPlayerListener(PlayerListener p)
|
void |
announceDisqualification(PlayerToken disqualified)
Should broadcast that a player has forcably left the game. |
void |
announcePlayerLeft(PlayerToken gone)
Should broadcast that a player has left the game. |
void |
announcePlayerStatus()
Should broadcast all Player Status information to both the networked players and the User Interface |
void |
buildHumanClient(java.lang.String name)
Constructs an HuClient, a Human Client that sends its commands through the games user interface. |
PlayerProxy |
buildPlayerProxy(java.net.Socket connection)
Ensures that a game will construct a compatible Player Proxy. |
void |
endGame()
Initiates the end of game broadcast. |
void |
endTurn()
Initiates the broadcast to send the end of turn signal. |
java.lang.String |
getGreeting()
Note the Initial Keyword will be sent by the Player Proxy This menthod just returns the extra information. |
HuClient[] |
getHumanClients()
The interface needs a handle to the human clients. |
java.lang.String |
getIncrementalState()
Returns the current incremental state |
int |
getMinimumPlayers()
|
java.lang.String |
getName()
|
java.lang.String |
getState()
Returns the current state of the game. |
SystemAnalyzer |
getSystemAnalyzer()
The SystemAnalyzer has the role of judging the entire game state. |
void |
playerAdded(PlayerToken token)
Called when a player has been added |
void |
reorderPlayers(PlayerToken[] tokens)
Reorder the players in a such a manner so that the next round's order follows the same order as this set of tokens |
void |
setReferee(Referee ref)
Allows the game to know what referee is operating. |
void |
startNextTurn()
Initiates the start of turn broadcast. |
boolean |
undoLastMove()
Should supply at least one level of undo. |
Method Detail |
public java.lang.String getName()
public int getMinimumPlayers()
public java.lang.String getGreeting()
public SystemAnalyzer getSystemAnalyzer()
public PlayerProxy buildPlayerProxy(java.net.Socket connection)
connection
- live network connection
public void buildHumanClient(java.lang.String name)
name
- of the Human playingpublic HuClient[] getHumanClients()
public java.lang.String getState()
public java.lang.String getIncrementalState()
public void endTurn()
public void endGame()
public void playerAdded(PlayerToken token)
token
- distinct to each playerpublic void startNextTurn()
public boolean undoLastMove()
public void announceDisqualification(PlayerToken disqualified)
disqualified
- token representing the disqualified playerpublic void announcePlayerLeft(PlayerToken gone)
gone
- public void announcePlayerStatus()
public void reorderPlayers(PlayerToken[] tokens)
tokens
- Established new order for the next roundpublic void setReferee(Referee ref)
ref
- the one who is talking directly to the playerspublic void addGameListener(GameListener g)
public void addPlayerListener(PlayerListener p)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |