|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--edu.cmu.mse17654.Casino.PlayerClient
The "client" part of the Blackjack player client.
Constructor Summary | |
PlayerClient(java.lang.String[] args,
java.util.Properties props,
edu.cmu.mse17654.Casino.PlayerSignals playerSignals)
This constructor method is to create a player. |
Method Summary | |
boolean |
buyChips()
This method is to allow player to buy the chips from the bank. |
int |
GetNumberOfChips()
This method returnsa the number of purchased chipcs . |
boolean |
joinTable(edu.cmu.mse17654.Casino.Player playerRef)
This method is to allow player to join the table. |
boolean |
leaveTable()
This method is called when the player wants to leave the table. |
boolean |
registerPlayer()
This method is to register the player with the floor. |
boolean |
sellChips()
This method is to allow a player to sell the chips to the bank. |
boolean |
unregisterPlayer()
This method is to unregister the player from the floor. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public PlayerClient(java.lang.String[] args, java.util.Properties props, edu.cmu.mse17654.Casino.PlayerSignals playerSignals)
Method Detail |
public boolean registerPlayer()
PlayerName length is checked (1 - 100)
public boolean unregisterPlayer()
public boolean buyChips()
number of chips to buy is checked (10 - 50000)
public boolean sellChips()
public boolean joinTable(edu.cmu.mse17654.Casino.Player playerRef)
public boolean leaveTable()
public int GetNumberOfChips()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |