|
|||||||||
| 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 |
|---|
InvocationService.ConfirmListener, InvocationService.InvocationListener, InvocationService.ResultListener |
| Method Detail |
|---|
void invite(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,
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,
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,
InvocationService.ConfirmListener listener)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||