Interface Casino::Player

IDL source    Global index
interface Player

Callback interface for server(s) to "pull" from clients.

Author:
team5
Version:
0.1


Operation index.

  • 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
  • Operations.

  • acceptCard

      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.

  • acceptOthersCard

      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.

  • gameOver

      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.

  • kickOut

      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

  • placeBet

      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

  • playerOption

      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

  • startGame

      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.