|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectau.edu.mq.itec802.cardGame.blackjack.BlackjackPack
public class BlackjackPack
The Class BlackjackPack -- models a pack of cards for Blackjack.
Constructor Summary | |
---|---|
BlackjackPack()
Instantiates a new blackjack pack. |
Method Summary | |
---|---|
Card |
getCard()
Get the top-most card from the pack |
void |
shuffle(int alot)
Shuffles the pack |
java.lang.String |
toString()
Serializes the pack into string |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public BlackjackPack()
Method Detail |
---|
public void shuffle(int alot)
shuffle
in interface Pack
alot
- -- determines how thouroughly the pack should be shuffledPack.shuffle(int)
public Card getCard()
getCard
in interface Pack
Pack.getCard()
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |