@Generated(value="com.threerings.presents.tools.GenServiceTask",
comments="Derived from TrickCardGameService.java.")
public class TrickCardGameMarshaller
extends com.threerings.presents.data.InvocationMarshaller
implements TrickCardGameService
TrickCardGameService 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.com.threerings.presents.data.InvocationMarshaller.ConfirmMarshaller, com.threerings.presents.data.InvocationMarshaller.ListenerMarshaller, com.threerings.presents.data.InvocationMarshaller.ResultMarshaller| Modifier and Type | Field and Description |
|---|---|
static int |
PLAY_CARD
The method id used to dispatch
playCard(com.threerings.parlor.card.data.Card, int) requests. |
static int |
REQUEST_REMATCH
The method id used to dispatch
requestRematch() requests. |
static int |
SEND_CARDS_TO_PLAYER
The method id used to dispatch
sendCardsToPlayer(int, com.threerings.parlor.card.data.Card[]) requests. |
| Constructor and Description |
|---|
TrickCardGameMarshaller() |
| Modifier and Type | Method and Description |
|---|---|
void |
playCard(Card arg1,
int arg2)
Plays a card in the trick.
|
void |
requestRematch()
A request for a rematch.
|
void |
sendCardsToPlayer(int arg1,
Card[] arg2)
Sends a group of cards to the player at the specified index.
|
public static final int PLAY_CARD
playCard(com.threerings.parlor.card.data.Card, int) requests.public static final int REQUEST_REMATCH
requestRematch() requests.public static final int SEND_CARDS_TO_PLAYER
sendCardsToPlayer(int, com.threerings.parlor.card.data.Card[]) requests.public void playCard(Card arg1, int arg2)
TrickCardGameServiceplayCard in interface TrickCardGameServicearg1 - the card to playarg2 - the size of the player's hand, which is used to verify
that the request is for the current trickpublic void requestRematch()
TrickCardGameServicerequestRematch in interface TrickCardGameServicepublic void sendCardsToPlayer(int arg1,
Card[] arg2)
TrickCardGameServicesendCardsToPlayer in interface TrickCardGameServicearg1 - the index of the player to send the cards toarg2 - the cards to sendCopyright © 2015. All rights reserved.