|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface CardGameReceiver
Defines, for the card game services, a set of notifications delivered asynchronously by the server to the client.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.threerings.presents.client.InvocationReceiver |
|---|
InvocationReceiver.Registration |
| Method Summary | |
|---|---|
void |
cardsTransferredBetweenPlayers(int fromidx,
int toidx,
int cards)
Dispatched to the client when a set of cards is transferred between two other players in the game. |
void |
receivedCardsFromPlayer(int plidx,
Card[] cards)
Dispatched to the client when it has received a set of cards from another player. |
void |
receivedHand(int oid,
Hand hand)
Dispatched to the client when it has received a hand of cards. |
void |
sentCardsToPlayer(int plidx,
Card[] cards)
Dispatched to the client when the server has forced it to send a set of cards to another player. |
| Method Detail |
|---|
void receivedHand(int oid,
Hand hand)
oid - the oid of the game for which this hand applieshand - the received hand
void receivedCardsFromPlayer(int plidx,
Card[] cards)
plidx - the index of the player providing the cardscards - the cards received
void sentCardsToPlayer(int plidx,
Card[] cards)
plidx - the index of the player to which the cards were sentcards - the cards sent
void cardsTransferredBetweenPlayers(int fromidx,
int toidx,
int cards)
fromidx - the index of the player sending the cardstoidx - the index of the player receiving the cardscards - the number of cards transferred
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||