public class Card
extends java.lang.Object
| Constructor and Description |
|---|
Card(int value,
int suit)
Standard constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object other) |
java.lang.String |
getImageFileName()
Used for finding the image corresponding to this Card.
STUDENTS: There is no reason you would ever need this, it's here
for the GUI's use only.
|
int |
getSuit()
"Getter" for suit of Card.
|
int |
getValue()
"Getter" for value of Card.
|
java.lang.String |
toString()
Returns the name of the card as a String.
|
public Card(int value,
int suit)
value - 1 through 9; 1 represents Ace, 2 through 9 for numerical cardssuit - 0 through 4; represents Spades, Hearts, Clubs, Diamonds, or Starspublic int getValue()
public int getSuit()
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String getImageFileName()
public boolean equals(java.lang.Object other)
equals in class java.lang.Object