|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectuk.co.triplesix.craps.Player
public class Player
This class contains all the information pertaining to the player of the Craps game
| Method Summary | |
|---|---|
void |
addFunds(double amount)
Add an amount on to the player's total cash |
double |
getFunds()
Get the player's current cash stores |
int |
getStake()
Find out how much the player bet |
boolean |
placeBet(int betAmount)
Place a bet for the specified amount |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public boolean placeBet(int betAmount)
betAmount - The amount to bet.
public double getFunds()
public void addFunds(double amount)
amount - The amount of money to addpublic int getStake()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||