|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Invitation
This interface represents the Invitation of the Remote Interface for the
WordMoleServer.
| Method Summary | |
|---|---|
Invite |
getInvite()
Returns the current invite. |
void |
initializeGame(boolean initialize)
Initializes the game to be created out of the invite and sends it to the server to be processed. |
void |
makeDecision(Client client,
boolean decision)
Notifies the host of the decision that an invited client has made to either accept of decline. |
boolean |
ready()
Returns true if the Invitation is ready and all have accepted, else returns false. |
| Method Detail |
|---|
void makeDecision(Client client,
boolean decision)
throws java.rmi.RemoteException
client - Client - Invitee client.decision - boolean - Invitee decision for the invite.
-> true => Accepts Invite
-> false => Declines Invite
java.rmi.RemoteException
void initializeGame(boolean initialize)
throws java.rmi.RemoteException
initialize - - boolean - Determines whether or not to start the game or cancel the invite.
java.rmi.RemoteException
boolean ready()
throws java.rmi.RemoteException
java.rmi.RemoteException
Invite getInvite()
throws java.rmi.RemoteException
java.rmi.RemoteException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||