public class CardGameDecoder
extends com.threerings.presents.client.InvocationDecoder
CardGameReceiver instance.| Modifier and Type | Field and Description |
|---|---|
static int |
CARDS_TRANSFERRED_BETWEEN_PLAYERS
The method id used to dispatch
CardGameReceiver.cardsTransferredBetweenPlayers(int, int, int)
notifications. |
static int |
RECEIVED_CARDS_FROM_PLAYER
The method id used to dispatch
CardGameReceiver.receivedCardsFromPlayer(int, com.threerings.parlor.card.data.Card[])
notifications. |
static int |
RECEIVED_HAND
The method id used to dispatch
CardGameReceiver.receivedHand(int, com.threerings.parlor.card.data.Hand)
notifications. |
static String |
RECEIVER_CODE
The generated hash code used to identify this receiver class.
|
static int |
SENT_CARDS_TO_PLAYER
The method id used to dispatch
CardGameReceiver.sentCardsToPlayer(int, com.threerings.parlor.card.data.Card[])
notifications. |
| Constructor and Description |
|---|
CardGameDecoder(CardGameReceiver receiver)
Creates a decoder that may be registered to dispatch invocation
service notifications to the specified receiver.
|
| Modifier and Type | Method and Description |
|---|---|
void |
dispatchNotification(int methodId,
Object[] args) |
String |
getReceiverCode() |
public static final String RECEIVER_CODE
public static final int CARDS_TRANSFERRED_BETWEEN_PLAYERS
CardGameReceiver.cardsTransferredBetweenPlayers(int, int, int)
notifications.public static final int RECEIVED_CARDS_FROM_PLAYER
CardGameReceiver.receivedCardsFromPlayer(int, com.threerings.parlor.card.data.Card[])
notifications.public static final int RECEIVED_HAND
CardGameReceiver.receivedHand(int, com.threerings.parlor.card.data.Hand)
notifications.public static final int SENT_CARDS_TO_PLAYER
CardGameReceiver.sentCardsToPlayer(int, com.threerings.parlor.card.data.Card[])
notifications.public CardGameDecoder(CardGameReceiver receiver)
public String getReceiverCode()
getReceiverCode in class com.threerings.presents.client.InvocationDecoderpublic void dispatchNotification(int methodId,
Object[] args)
dispatchNotification in class com.threerings.presents.client.InvocationDecoderCopyright © 2015. All rights reserved.