Interface Casino::Player
IDL source Global index
interface Player
Callback interface for server(s) to "pull" from clients.
- Category: Baseline (fulfills requirement #8)
- Behavior: This interface provides the callback methods of a player.
The dealer leads the Blackjack game, and the players react to the
dealer's commands and requests. During the game client
and server roles are swapped.
- Inherits From:
- Clients: Dealer
- Author:
- team5
- Version:
- 0.1
- acceptCard
-
A dealer sends a card to a player
- Category: Baseline
- Behavior: This method passes a card to the player.
- Clients: Dealer
- acceptOthersCard
-
The dealer is giving a player another player's card to view.
- Category: Baseline
- Behavior: A player client uses this method to register for a session
at the casino server.
- Clients: Dealer
- gameOver
-
The dealer is telling the player that the game if over.
- Category: Baseline
- Behavior: Let the player know that the game is over, if he has won,
and his new chip balance.
- Clients: Dealer
- kickOut
-
The dealer is kicking the player off the game for misbehavior
- Category: Realtime
- Behavior: If a player does not place a bet or choose an option
within the allotted amout of time, the Dealer kicks
him out.
- Clients: Dealer
- placeBet
-
A dealer request for a player to bet on his/her cards.
- Category: Baseline
- Behavior: The player is prompted for his bet for the next game.
- Clients: Dealer
- playerOption
-
The dealer is asking the player to stay or hit.
- Category: Baseline
- Behavior: Ask the player what he/she wants to do next.
Either get a another card (HIT) or not (STAY).
- Clients: Dealer
- startGame
-
The dealer is telling the player that the game is starting
- Category: Baseline
- Behavior: Start a new game at the current table.
- Clients: Dealer
void acceptCard(in octet cardID);
-
A dealer sends a card to a player
- Category: Baseline
- Behavior: This method passes a card to the player.
- Clients: Dealer
- Returns:
- void
- Parameters:
- s cardID The ID of the new card.
void acceptOthersCard(in long playerID,
in octet cardID);
-
The dealer is giving a player another player's card to view.
- Category: Baseline
- Behavior: A player client uses this method to register for a session
at the casino server.
- Clients: Dealer
- Returns:
- void
- Parameters:
- playerID The number (1..4) of the other player at the
table who gets this card.
- cardID The ID of the new card.
void gameOver(in boolean won,
in long newBalance);
-
The dealer is telling the player that the game if over.
- Category: Baseline
- Behavior: Let the player know that the game is over, if he has won,
and his new chip balance.
- Clients: Dealer
- Returns:
- void
- Parameters:
- won True iff the player has won.
- newBalance The new chip balance of the player.
void kickOut();
-
The dealer is kicking the player off the game for misbehavior
- Category: Realtime
- Behavior: If a player does not place a bet or choose an option
within the allotted amout of time, the Dealer kicks
him out.
- Clients: Dealer
- Returns:
- void
long placeBet()
raises(InsufficientChips);
-
A dealer request for a player to bet on his/her cards.
- Category: Baseline
- Behavior: The player is prompted for his bet for the next game.
- Clients: Dealer
- Returns:
- The client's bet in chips.
- Parameters:
- none
- Raises:
- InsufficientChips If the player has no chips to bet
long playerOption();
-
The dealer is asking the player to stay or hit.
- Category: Baseline
- Behavior: Ask the player what he/she wants to do next.
Either get a another card (HIT) or not (STAY).
- Clients: Dealer
- Returns:
- void
- Parameters:
- choice The player choice to stay or hit
void startGame(in octet numberOfPlayers);
-
The dealer is telling the player that the game is starting
- Category: Baseline
- Behavior: Start a new game at the current table.
- Clients: Dealer
- Returns:
- void
- Parameters:
- numberOfPlayers The number of players at the table.
Generated by Sandia idldoc 1.0.