|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectau.edu.mq.itec802.cardGame.blackjack.BlackjackAbstractPlayer
public abstract class BlackjackAbstractPlayer
The Class BlackjackAbstractPlayer.
Constructor Summary | |
---|---|
BlackjackAbstractPlayer()
|
Method Summary | |
---|---|
void |
emptyHand()
Empty hand -- empties player's hand. |
abstract int |
getAmount()
Gets the amount. |
int |
getBet()
Gets the bet. |
abstract int |
getInitAmount()
Gets the init amount. |
abstract int |
getNumber()
Gets the player's number. |
int |
getScore()
Gets the score. |
boolean |
isHouse()
Checks if is house. |
void |
loses()
Player loses. |
abstract void |
play(BlackjackPack pack)
Simulates a playing player. |
void |
setBet(int bet)
Sets the bet. |
void |
wins(int bet)
Player wins -- his amount is raised. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface au.edu.mq.itec802.cardGame.Player |
---|
play |
Constructor Detail |
---|
public BlackjackAbstractPlayer()
Method Detail |
---|
public abstract void play(BlackjackPack pack)
pack
- of cards to play withpublic final int getScore()
public boolean isHouse()
public void wins(int bet)
bet
- the bet this player has won on another playerpublic void loses()
public abstract int getAmount()
public abstract int getInitAmount()
public final int getBet()
public final void setBet(int bet)
bet
- the new betpublic abstract int getNumber()
public final void emptyHand()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |