public class ParlorManager extends Object implements ParlorCodes, ParlorProvider
ALREADY_AT_TABLE, BANNED_FROM_TABLE, GAME_ALREADY_STARTED, INVALID_TABLE_POSITION, INVITATION_ACCEPTED, INVITATION_COUNTERED, INVITATION_REFUSED, INVITEE_NOT_ONLINE, MUST_BE_CREATOR, NO_SELF_BOOT, NO_SUCH_TABLE, NOT_AT_TABLE, PARLOR_GROUP, TABLE_POSITION_OCCUPIED| Constructor and Description |
|---|
ParlorManager(com.threerings.presents.server.InvocationManager invmgr) |
| Modifier and Type | Method and Description |
|---|---|
void |
cancel(com.threerings.presents.data.ClientObject caller,
int inviteId,
com.threerings.presents.client.InvocationService.InvocationListener listener)
|
void |
cancelInvite(com.threerings.crowd.data.BodyObject source,
int inviteId)
Requests that an outstanding invitation be cancelled.
|
int |
invite(com.threerings.crowd.data.BodyObject inviter,
com.threerings.crowd.data.BodyObject invitee,
GameConfig config)
Issues an invitation from the
inviter to the invitee for a game as
described by the supplied config object. |
void |
invite(com.threerings.presents.data.ClientObject caller,
com.threerings.util.Name invitee,
GameConfig config,
ParlorService.InviteListener listener)
|
void |
respond(com.threerings.presents.data.ClientObject caller,
int inviteId,
int code,
Object arg,
com.threerings.presents.client.InvocationService.InvocationListener listener)
|
void |
respondToInvite(com.threerings.crowd.data.BodyObject source,
int inviteId,
int code,
Object arg)
Effects a response to an invitation (accept, refuse or counter), made by the specified
source user with the specified arguments.
|
void |
startSolitaire(com.threerings.presents.data.ClientObject caller,
GameConfig config,
com.threerings.presents.client.InvocationService.ConfirmListener listener)
|
@Inject public ParlorManager(com.threerings.presents.server.InvocationManager invmgr)
public void invite(com.threerings.presents.data.ClientObject caller,
com.threerings.util.Name invitee,
GameConfig config,
ParlorService.InviteListener listener)
throws com.threerings.presents.server.InvocationException
ParlorProviderParlorService.invite(com.threerings.util.Name, com.threerings.parlor.game.data.GameConfig, com.threerings.parlor.client.ParlorService.InviteListener) request.invite in interface ParlorProvidercom.threerings.presents.server.InvocationExceptionpublic void respond(com.threerings.presents.data.ClientObject caller,
int inviteId,
int code,
Object arg,
com.threerings.presents.client.InvocationService.InvocationListener listener)
ParlorProviderParlorService.respond(int, int, java.lang.Object, com.threerings.presents.client.InvocationService.InvocationListener) request.respond in interface ParlorProviderpublic void cancel(com.threerings.presents.data.ClientObject caller,
int inviteId,
com.threerings.presents.client.InvocationService.InvocationListener listener)
ParlorProviderParlorService.cancel(int, com.threerings.presents.client.InvocationService.InvocationListener) request.cancel in interface ParlorProviderpublic void startSolitaire(com.threerings.presents.data.ClientObject caller,
GameConfig config,
com.threerings.presents.client.InvocationService.ConfirmListener listener)
throws com.threerings.presents.server.InvocationException
ParlorProviderParlorService.startSolitaire(com.threerings.parlor.game.data.GameConfig, com.threerings.presents.client.InvocationService.ConfirmListener) request.startSolitaire in interface ParlorProvidercom.threerings.presents.server.InvocationExceptionpublic int invite(com.threerings.crowd.data.BodyObject inviter,
com.threerings.crowd.data.BodyObject invitee,
GameConfig config)
throws com.threerings.presents.server.InvocationException
inviter to the invitee for a game as
described by the supplied config object.inviter - the player initiating the invitation.invitee - the player being invited.config - the configuration of the game being proposed.com.threerings.presents.server.InvocationException - thrown if the invitation was not able to be processed for
some reason (like the invited player has requested not to be disturbed). The explanation
will be provided in the message data of the exception.public void respondToInvite(com.threerings.crowd.data.BodyObject source,
int inviteId,
int code,
Object arg)
source - the body object of the user that is issuing this response.inviteId - the identifier of the invitation to which we are responding.code - the response code (either ParlorCodes.INVITATION_ACCEPTED, ParlorCodes.INVITATION_REFUSED or ParlorCodes.INVITATION_COUNTERED).arg - the argument that goes along with the response: an explanatory message in the
case of a refusal (the empty string, not null, if no message was provided) or the new game
configuration in the case of a counter-invitation.public void cancelInvite(com.threerings.crowd.data.BodyObject source,
int inviteId)
source - the body object of the user that is making the request.inviteId - the unique id of the invitation to be cancelled.Copyright © 2015. All rights reserved.