|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface WordMoleServer
This interface represents the WordMoleServer of the Remote Interface for the WordMoleServer.
| Method Summary | |
|---|---|
void |
createGame(Game game)
Creates a game to be initialized. |
Invitation |
createInvite(Invite invite)
Creates an invite to be sent to all of the invitees. |
void |
postMessage(Client sender,
java.lang.String message)
Sends a message to all of the clients connected. |
void |
register(WordMoleClient client,
Client name,
boolean connected)
Registers a WordMoleClient with the WordMoleServer |
void |
reregister(Client name)
Reconnects a client from a game to the lobby. |
| Method Detail |
|---|
void register(WordMoleClient client,
Client name,
boolean connected)
throws java.rmi.RemoteException
client - - WordMoleClient to registername - - client of the WordMoleClientconnected - - boolean of whether the client is connected or disconnected.
java.rmi.RemoteException
void reregister(Client name)
throws java.rmi.RemoteException
name - - Client the client
java.rmi.RemoteException
Invitation createInvite(Invite invite)
throws java.rmi.RemoteException
invite - - Invite with all of the invitees.
java.rmi.RemoteException
void createGame(Game game)
throws java.rmi.RemoteException
game - - The game to be started.
java.rmi.RemoteException
void postMessage(Client sender,
java.lang.String message)
throws java.rmi.RemoteException
sender - - client of the sender.message - - Message to be posted.
java.rmi.RemoteException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||