|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.rmi.server.RemoteObject
java.rmi.server.RemoteServer
java.rmi.server.UnicastRemoteObject
game.multiplayer.invitation.InvitationImpl
public class InvitationImpl
This class represents the Invitation Implementation of the Remote Interface for the WordMoleServer.
| Constructor Summary | |
|---|---|
InvitationImpl(Invite invite,
WordMoleServer server,
AsyncCallback callback)
Constructor |
|
| Method Summary | |
|---|---|
void |
gameTime(boolean init)
|
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. |
void |
setupInvitation()
Sets up the Invitation. |
| Methods inherited from class java.rmi.server.UnicastRemoteObject |
|---|
clone, exportObject, exportObject, exportObject, unexportObject |
| Methods inherited from class java.rmi.server.RemoteServer |
|---|
getClientHost, getLog, setLog |
| Methods inherited from class java.rmi.server.RemoteObject |
|---|
equals, getRef, hashCode, toString, toStub |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public InvitationImpl(Invite invite,
WordMoleServer server,
AsyncCallback callback)
throws java.rmi.RemoteException
invite - - Invite that this server is based on.server - - WordMoleServer main servercallback - - AsyncCallback
java.rmi.RemoteException| Method Detail |
|---|
public void setupInvitation()
public void initializeGame(boolean initialize)
throws java.rmi.RemoteException
Invitation
initializeGame in interface Invitationinitialize - - boolean - Determines whether or not to start the game or cancel the invite.
java.rmi.RemoteExceptionpublic void gameTime(boolean init)
public void makeDecision(Client client,
boolean decision)
throws java.rmi.RemoteException
Invitation
makeDecision in interface Invitationclient - Client - Invitee client.decision - boolean - Invitee decision for the invite.
-> true => Accepts Invite
-> false => Declines Invite
java.rmi.RemoteException
public Invite getInvite()
throws java.rmi.RemoteException
Invitation
getInvite in interface Invitationjava.rmi.RemoteException
public boolean ready()
throws java.rmi.RemoteException
Invitation
ready in interface Invitationjava.rmi.RemoteException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||