-
Nested Class Summary
Nested Classes
static enum
Represents the thirteen possible ranks in a standard playing card deck.
static enum
Represents the four possible suits in a standard playing card deck.
-
Constructor Summary
Constructors
Constructs a new
Card object as a copy of another
Card
object.
-
Method Summary
Returns a file representation of a
Card in the form
"ace_of_spades.png"
int
-
Constructor Details
-
-
Card
Constructs a new
Card object as a copy of another
Card
object.
- Parameters:
card - card to be added
-
Method Details
-
getValue
public int getValue()
- Returns:
- the value of the
Card
-
-
-
getFilename
Returns a file representation of a
Card in the form
"ace_of_spades.png"
- Returns:
- file representation of a
Card
-
toString
- Overrides:
toString in class Object
- Returns:
- a
String representation of the Card object