|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface UI
An abstraction of the BasicBlackJack user interface.
Method Summary | |
---|---|
void |
dealerWinsRound()
Update UI to indicate that player wins the round |
void |
endRound()
Update UI to indicate that the hand has ended. |
void |
exitMsg()
Exit msg. |
Player.Action |
getUserActionChoice()
Get user to choose an action. |
java.lang.String |
getUserInput()
Gets the user's input. |
void |
introMsg()
Intro msg. |
void |
playerActionTaken(Player player,
Player.Action action)
Update UI to indicate the action that was taken. |
void |
playerStatus(Player currentPlayer)
Update status of players hand. |
void |
playerStatusWithCoveredCards(Player currentPlayer)
Update status of players hand. |
void |
playerWinsRound()
Update UI to indicate that player wins the round. |
void |
quitMessage()
Quit message. |
void |
roundIsPush()
Update UI to indicate that the round is a push. |
void |
takeBet(HumanPlayer currentPlayer)
Get user to place a bet. |
Method Detail |
---|
void takeBet(HumanPlayer currentPlayer) throws GameQuitException
currentPlayer
- the current player
GameQuitException
- the game quit exceptionjava.lang.String getUserInput()
void playerStatus(Player currentPlayer)
currentPlayer
- the current playervoid playerStatusWithCoveredCards(Player currentPlayer)
currentPlayer
- the current playerPlayer.Action getUserActionChoice()
void playerWinsRound()
void dealerWinsRound()
void roundIsPush()
void playerActionTaken(Player player, Player.Action action)
player
- the playeraction
- the actionvoid endRound()
void quitMessage()
void introMsg()
void exitMsg()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |