|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
public interface IClient
Interface exposing remote methods available on a Boggle client. TODO notes about rmic and how this works.
| Method Summary | |
|---|---|
boolean |
isActive(GameId gameId)
Determines if this Client is actively connected to the specified game. |
void |
results(Round round,
Rubber rubber)
Notifies the client of the results of a game which are then processed by this method. |
void |
setRubber(Rubber rubber)
Sends the current rubber details to the client. |
void |
startGame(char[][] letters,
int timeInSecs,
GameId gameId)
Notifies the client to initialise the board and start the timer. |
| Method Detail |
|---|
void startGame(char[][] letters,
int timeInSecs,
GameId gameId)
throws RemoteException
letters - Letters to initialise the board with.timeInSecs - Time of game in seconds.gameId - Universally unique identifier for this game.
RemoteException - If anything goes wrong with the RMI.
void results(Round round,
Rubber rubber)
throws RemoteException
round - Results of a round of Boggle.rubber - Details of the rubber.
RemoteException - If anything goes wrong with the RMI.
boolean isActive(GameId gameId)
throws RemoteException
gameId - GameID of game to check for
participation in.
true if playing the game
represented by gameId.
RemoteException - If anything goes wrong with the RMI.
void setRubber(Rubber rubber)
throws RemoteException
rubber - Rubber details of the current
rubber.
RemoteException - If anything goes wrong with the RMI.
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||