public interface ParlorService
extends com.threerings.presents.client.InvocationService
ParlorDirector.| Modifier and Type | Interface and Description |
|---|---|
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. |
| Modifier and Type | Method and Description |
|---|---|
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.
|
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)
Copyright © 2015. All rights reserved.