com.threerings.parlor.card.trick.data
Class TrickCardGameMarshaller
java.lang.Object
com.threerings.presents.data.InvocationMarshaller
com.threerings.parlor.card.trick.data.TrickCardGameMarshaller
- All Implemented Interfaces:
- Streamable, TrickCardGameService, InvocationService
@Generated(value="com.threerings.presents.tools.GenServiceTask",
comments="Derived from TrickCardGameService.java.")
public class TrickCardGameMarshaller- extends InvocationMarshaller
- implements TrickCardGameService
Provides the implementation of the 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.
| 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 |
PLAY_CARD
public static final int PLAY_CARD
- The method id used to dispatch
playCard(com.threerings.parlor.card.data.Card, int) requests.
- See Also:
- Constant Field Values
REQUEST_REMATCH
public static final int REQUEST_REMATCH
- The method id used to dispatch
requestRematch() requests.
- See Also:
- Constant Field Values
SEND_CARDS_TO_PLAYER
public static final int SEND_CARDS_TO_PLAYER
- The method id used to dispatch
sendCardsToPlayer(int, com.threerings.parlor.card.data.Card[]) requests.
- See Also:
- Constant Field Values
TrickCardGameMarshaller
public TrickCardGameMarshaller()
playCard
public void playCard(Card arg1,
int arg2)
- Description copied from interface:
TrickCardGameService
- Plays a card in the trick.
- Specified by:
playCard in interface TrickCardGameService
- Parameters:
arg1 - the card to playarg2 - the size of the player's hand, which is used to verify
that the request is for the current trick
requestRematch
public void requestRematch()
- Description copied from interface:
TrickCardGameService
- A request for a rematch.
- Specified by:
requestRematch in interface TrickCardGameService
sendCardsToPlayer
public void sendCardsToPlayer(int arg1,
Card[] arg2)
- Description copied from interface:
TrickCardGameService
- Sends a group of cards to the player at the specified index.
- Specified by:
sendCardsToPlayer in interface TrickCardGameService
- Parameters:
arg1 - the index of the player to send the cards toarg2 - the cards to send