|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ParlorService
Provides an interface to the various parlor invocation services. Presently these services are
limited to the various matchmaking mechanisms. It is unlikely that client code will want to make
direct use of this class, instead they would make use of the programmatic interface provided by
the ParlorDirector.
| Nested Class Summary | |
|---|---|
static interface |
ParlorService.InviteListener
Used to communicate responses to invite(com.threerings.util.Name, com.threerings.parlor.game.data.GameConfig, com.threerings.parlor.client.ParlorService.InviteListener) requests. |
| Nested classes/interfaces inherited from interface com.threerings.presents.client.InvocationService |
|---|
com.threerings.presents.client.InvocationService.ConfirmListener, com.threerings.presents.client.InvocationService.InvocationListener, com.threerings.presents.client.InvocationService.ResultListener |
| Method Summary | |
|---|---|
void |
cancel(int inviteId,
com.threerings.presents.client.InvocationService.InvocationListener listener)
You probably don't want to call this directly, but want to call Invitation.cancel(). |
void |
invite(com.threerings.util.Name invitee,
GameConfig config,
ParlorService.InviteListener listener)
You probably don't want to call this directly, but want to generate your invitation request via ParlorDirector.invite(com.threerings.util.Name, com.threerings.parlor.game.data.GameConfig, com.threerings.parlor.client.InvitationResponseObserver). |
void |
respond(int inviteId,
int code,
Object arg,
com.threerings.presents.client.InvocationService.InvocationListener listener)
You probably don't want to call this directly, but want to call one of Invitation.accept(), Invitation.refuse(java.lang.String), or Invitation.counter(com.threerings.parlor.game.data.GameConfig, com.threerings.parlor.client.InvitationResponseObserver). |
void |
startSolitaire(GameConfig config,
com.threerings.presents.client.InvocationService.ConfirmListener listener)
Requests to start a single player game with the specified game configuration. |
| Method Detail |
|---|
void invite(com.threerings.util.Name invitee,
GameConfig config,
ParlorService.InviteListener listener)
ParlorDirector.invite(com.threerings.util.Name, com.threerings.parlor.game.data.GameConfig, com.threerings.parlor.client.InvitationResponseObserver). Requests that an invitation be delivered to the named
user, requesting that they join the inviting user in a game, the details of which are
specified in the supplied game config object.
invitee - the username of the user to be invited.config - a game config object detailing the type and configuration of the game to be
created.listener - will receive and process the response.
void respond(int inviteId,
int code,
Object arg,
com.threerings.presents.client.InvocationService.InvocationListener listener)
Invitation.accept(), Invitation.refuse(java.lang.String), or Invitation.counter(com.threerings.parlor.game.data.GameConfig, com.threerings.parlor.client.InvitationResponseObserver). Requests that
an invitation response be delivered with the specified parameters.
inviteId - the unique id previously assigned by the server to this invitation.code - the response code to use in responding to the invitation.arg - the argument associated with the response (a string message from the player
explaining why the response was refused in the case of an invitation refusal or an updated
game configuration object in the case of a counter-invitation, or null in the case of an
accepted invitation).listener - will receive and process the response.
void cancel(int inviteId,
com.threerings.presents.client.InvocationService.InvocationListener listener)
Invitation.cancel(). Requests that an outstanding invitation be cancelled.
inviteId - the unique id previously assigned by the server to this invitation.listener - will receive and process the response.
void startSolitaire(GameConfig config,
com.threerings.presents.client.InvocationService.ConfirmListener listener)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||