Interface Casino::Bank
IDL source Global index
interface Bank
The interface used to simulate monetary transactions
- Category: Baseline (fulfills baseline requirements #1 & #5)
- Behavior: This interface supports methods to simulate the
buying and selling of gambling chips.
- Clients: Player
- Author:
- team5
- Version:
- 0.1
- buyChips
-
The player is purchasing chips from the bank.
- Category: Baseline.
- Behavior: The player asks for quantity of chips.
- Clients: Player
- getChipBalance
-
The player requests the number of chips he/she owns
- Category: Baseline.
- Behavior: The player requests the balance of chips from the bank.
- Clients: Player
- sellAllChips
-
The player is selling chips back to the bank.
- Category: Baseline.
- Behavior: The player sells all or some of his chips back to the
Bank.
- Clients: Player
- sellChips
-
The player is selling chips back to the bank.
- Category: Baseline.
- Behavior: The player sells all or some of his chips back to the
Bank.
- Clients: Player
void buyChips(in long playerID,
in long quantity)
raises(InvalidPlayerID);
-
The player is purchasing chips from the bank.
- Category: Baseline.
- Behavior: The player asks for quantity of chips.
- Clients: Player
- Returns:
- void
- Parameters:
- playerID The playerID.
- quantity The number of chips requested.
- Raises:
- InvalidPlayerID
long getChipBalance(in long playerID)
raises(InvalidPlayerID, InsufficientChips, InvalidSessionID);
-
The player requests the number of chips he/she owns
- Category: Baseline.
- Behavior: The player requests the balance of chips from the bank.
- Clients: Player
- Returns:
- void
- Parameters:
- playerID The player's id.
- Raises:
- InvalidPlayerID
- InsufficientChips
void sellAllChips(in long playerID)
raises(InvalidPlayerID);
-
The player is selling chips back to the bank.
- Category: Baseline.
- Behavior: The player sells all or some of his chips back to the
Bank.
- Clients: Player
- Returns:
- void
- Parameters:
- playerID The player's id.
- Raises:
- InvalidPlayerID
void sellChips(in long playerID,
in long quantity)
raises(InvalidPlayerID);
-
The player is selling chips back to the bank.
- Category: Baseline.
- Behavior: The player sells all or some of his chips back to the
Bank.
- Clients: Player
- Returns:
- void
- Parameters:
- playerID The player's id.
- quantity The number of chips requested.
- Raises:
- InvalidPlayerID
Generated by Sandia idldoc 1.0.