All Packages Class Hierarchy This Package Previous Next Index
Class com.lotspiech.poker.HandWithDiscard
java.lang.Object
|
+----com.lotspiech.poker.BunchOfCards
|
+----com.lotspiech.poker.Hand
|
+----com.lotspiech.poker.HandWithDiscard
- public class HandWithDiscard
- extends Hand
- implements Cloneable
This type of Hand has an ordered list of cards, of which some may be
discarded.
Copyright 2001, 2002 by Jeffrey B. Lotspiech. This program is open source;
it is licensed under the Common Public License Version 0.5.
- Author:
- Jeffrey B. Lotspiech
-
cards
-
-
COPYRIGHT
-
-
HandWithDiscard(Card[])
- Discard constructor comment.
-
HandWithDiscard(String)
- Discard constructor comment.
-
cardIsDiscarded(int)
- This method was created in VisualAge.
-
clone()
- This method was created in VisualAge.
-
discardCard(int)
- This method was created in VisualAge.
-
equals(HandWithDiscard)
- This method was created in VisualAge.
-
getCards()
- This method was created in VisualAge.
-
toString()
- This method was created in VisualAge.
COPYRIGHT
private static final String COPYRIGHT
cards
private Card cards[]
HandWithDiscard
public HandWithDiscard(Card cards[])
- Discard constructor comment.
- Parameters:
- machine - com.lotspiech.poker.Machine
- cardNames - java.lang.String
- Throws: Exception
- The exception description.
HandWithDiscard
public HandWithDiscard(String cardNames) throws Exception
- Discard constructor comment.
- Parameters:
- machine - com.lotspiech.poker.Machine
- cardNames - java.lang.String
- Throws: Exception
- The exception description.
cardIsDiscarded
public boolean cardIsDiscarded(int index)
- This method was created in VisualAge.
- Parameters:
- index - int
- Returns:
- boolean
clone
public Object clone()
- This method was created in VisualAge.
- Overrides:
- clone in class Object
discardCard
public void discardCard(int index) throws Exception
- This method was created in VisualAge.
- Parameters:
- index - int
equals
public boolean equals(HandWithDiscard hand)
- This method was created in VisualAge.
- Parameters:
- hand - com.lotspiech.poker.HandWithDiscard
- Returns:
- boolean
getCards
public Card[] getCards()
- This method was created in VisualAge.
- Returns:
- com.lotspiech.poker.Card[]
toString
public String toString()
- This method was created in VisualAge.
- Returns:
- java.lang.String
- Overrides:
- toString in class BunchOfCards
All Packages Class Hierarchy This Package Previous Next Index