|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.threerings.presents.data.InvocationMarshaller
com.threerings.parlor.data.ParlorMarshaller
@Generated(value="com.threerings.presents.tools.GenServiceTask",
comments="Derived from ParlorService.java.")
public class ParlorMarshaller
Provides the implementation of the ParlorService interface
that marshalls the arguments and delivers the request to the provider
on the server. Also provides an implementation of the response listener
interfaces that marshall the response arguments and deliver them back
to the requesting client.
| Nested Class Summary | |
|---|---|
static class |
ParlorMarshaller.InviteMarshaller
Marshalls results to implementations of ParlorService.InviteListener. |
| Nested classes/interfaces inherited from class com.threerings.presents.data.InvocationMarshaller |
|---|
InvocationMarshaller.ConfirmMarshaller, InvocationMarshaller.ListenerMarshaller, InvocationMarshaller.ResultMarshaller |
| Nested classes/interfaces inherited from interface com.threerings.parlor.client.ParlorService |
|---|
ParlorService.InviteListener |
| Nested classes/interfaces inherited from interface com.threerings.presents.client.InvocationService |
|---|
InvocationService.ConfirmListener, InvocationService.InvocationListener, InvocationService.ResultListener |
| Nested classes/interfaces inherited from interface com.threerings.io.Streamable |
|---|
Streamable.Closure |
| Field Summary | |
|---|---|
static int |
CANCEL
The method id used to dispatch cancel(int, com.threerings.presents.client.InvocationService.InvocationListener) requests. |
static int |
INVITE
The method id used to dispatch invite(com.threerings.util.Name, com.threerings.parlor.game.data.GameConfig, com.threerings.parlor.client.ParlorService.InviteListener) requests. |
static int |
RESPOND
The method id used to dispatch respond(int, int, java.lang.Object, com.threerings.presents.client.InvocationService.InvocationListener) requests. |
static int |
START_SOLITAIRE
The method id used to dispatch startSolitaire(com.threerings.parlor.game.data.GameConfig, com.threerings.presents.client.InvocationService.ConfirmListener) requests. |
| Fields inherited from class com.threerings.presents.data.InvocationMarshaller |
|---|
_invCode, _invdir, _invOid |
| Constructor Summary | |
|---|---|
ParlorMarshaller()
|
|
| Method Summary | |
|---|---|
void |
cancel(int arg1,
InvocationService.InvocationListener arg2)
You probably don't want to call this directly, but want to call Invitation.cancel(). |
void |
invite(Name arg1,
GameConfig arg2,
ParlorService.InviteListener arg3)
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 arg1,
int arg2,
Object arg3,
InvocationService.InvocationListener arg4)
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 arg1,
InvocationService.ConfirmListener arg2)
Requests to start a single player game with the specified game configuration. |
| Methods inherited from class com.threerings.presents.data.InvocationMarshaller |
|---|
getInvocationCode, init, readField__invCode, readField__invOid, readObject, sendRequest, sendRequest, sendRequest, sendRequest, setInvocationOid, setNoResponse, toString, writeField__invCode, writeField__invOid |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int CANCEL
cancel(int, com.threerings.presents.client.InvocationService.InvocationListener) requests.
public static final int INVITE
invite(com.threerings.util.Name, com.threerings.parlor.game.data.GameConfig, com.threerings.parlor.client.ParlorService.InviteListener) requests.
public static final int RESPOND
respond(int, int, java.lang.Object, com.threerings.presents.client.InvocationService.InvocationListener) requests.
public static final int START_SOLITAIRE
startSolitaire(com.threerings.parlor.game.data.GameConfig, com.threerings.presents.client.InvocationService.ConfirmListener) requests.
| Constructor Detail |
|---|
public ParlorMarshaller()
| Method Detail |
|---|
public void cancel(int arg1,
InvocationService.InvocationListener arg2)
ParlorServiceInvitation.cancel(). Requests that an outstanding invitation be cancelled.
cancel in interface ParlorServicearg1 - the unique id previously assigned by the server to this invitation.arg2 - will receive and process the response.
public void invite(Name arg1,
GameConfig arg2,
ParlorService.InviteListener arg3)
ParlorServiceParlorDirector.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.
invite in interface ParlorServicearg1 - the username of the user to be invited.arg2 - a game config object detailing the type and configuration of the game to be
created.arg3 - will receive and process the response.
public void respond(int arg1,
int arg2,
Object arg3,
InvocationService.InvocationListener arg4)
ParlorServiceInvitation.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.
respond in interface ParlorServicearg1 - the unique id previously assigned by the server to this invitation.arg2 - the response code to use in responding to the invitation.arg3 - 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).arg4 - will receive and process the response.
public void startSolitaire(GameConfig arg1,
InvocationService.ConfirmListener arg2)
ParlorService
startSolitaire in interface ParlorService
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||