|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CardGameHandler
Method Summary | |
---|---|
void |
alert_badplay(java.lang.String err_msg)
|
void |
alert_bid(int bidder,
Bid bid)
|
void |
alert_hand_size(int max_hand_size)
|
void |
alert_newgame(CardSetType cardset_type)
|
void |
alert_newhand()
|
void |
alert_num_players(int numplayers,
int old_numplayers)
|
void |
alert_play(int player,
Card card)
|
void |
alert_player(int i,
SeatType old_type,
java.lang.String old_name)
|
void |
alert_players_status()
Called when the status of one or more players has changed. |
void |
alert_scores(int hand_num)
Called when each team's score is received from the server. |
void |
alert_server(java.net.Socket fd)
|
void |
alert_state(Client.GameState oldState,
Client.GameState newState)
|
void |
alert_table()
A table message tells you all the cards on the table. |
void |
alert_trick(int winner)
A trick message tells you about the end of a trick (and who won). |
void |
alert_tricks_count()
Called when the number of tricks that a player has won is received from the server. |
void |
alert_trump()
Called when the trump suit is known for the current hand. |
void |
display_hand(int player)
|
void |
get_bid(Bid[] bid_choices,
java.lang.String[] bid_texts,
java.lang.String[] bid_descs)
|
void |
get_newgame()
Server has requested the client to OK a new game. |
boolean |
get_options(java.lang.String[] types,
java.lang.String[] descs,
int[] defaults,
java.lang.String[][] option_choices)
An options request asks you to pick a set of options. |
void |
get_play(int play_hand,
Card[] valid_cards)
|
void |
handle_disconnect()
Called when the socket disconnects. |
void |
handle_game_message(GGZCardInputStream in,
java.lang.String gametype)
Called when game-specific data is received by the client. |
void |
handle_gameover(Player[] winners)
|
void |
set_cardlist_message(java.lang.String mark,
Card[][] cardlist)
Called when either "Last Trick" or "Previous Hand" message is received from the server. |
void |
set_player_message(int player,
java.lang.String message)
|
void |
set_text_message(java.lang.String mark,
java.lang.String message)
|
Method Detail |
---|
void alert_server(java.net.Socket fd)
void set_text_message(java.lang.String mark, java.lang.String message)
void set_cardlist_message(java.lang.String mark, Card[][] cardlist)
mark
- One of either "Last Trick" or "Previous Hand".cardlist
- Cards in the last trick or hand. The first index is the player
index, the second the card.void set_player_message(int player, java.lang.String message)
void handle_game_message(GGZCardInputStream in, java.lang.String gametype) throws java.io.IOException
in
- gametype
-
java.io.IOException
void alert_newgame(CardSetType cardset_type)
void handle_gameover(Player[] winners)
void alert_player(int i, SeatType old_type, java.lang.String old_name)
void alert_num_players(int numplayers, int old_numplayers)
void alert_hand_size(int max_hand_size)
void display_hand(int player)
void get_bid(Bid[] bid_choices, java.lang.String[] bid_texts, java.lang.String[] bid_descs)
void alert_bid(int bidder, Bid bid)
void get_play(int play_hand, Card[] valid_cards)
void alert_badplay(java.lang.String err_msg)
void alert_play(int player, Card card)
void alert_table()
void alert_trick(int winner)
boolean get_options(java.lang.String[] types, java.lang.String[] descs, int[] defaults, java.lang.String[][] option_choices) throws java.io.IOException
java.io.IOException
void get_newgame()
void alert_newhand()
void alert_trump()
void alert_scores(int hand_num)
void alert_tricks_count()
void handle_disconnect()
void alert_state(Client.GameState oldState, Client.GameState newState)
void alert_players_status()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |