|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--inonit.domain.game.card.hearts.Hearts
Root class containing some methods specific to the game of Hearts.
Method Summary | |
static Hearts |
get()
Returns an instance of the Hearts class. |
int |
getMaximumNumberOfPlayers()
Returns the maximum number of players permitted for a game of Hearts. |
int |
getMinimumNumberOfPlayers()
Returns the minimum number of players necessary for a game of Hearts. |
Rank.Order |
getRankOrder()
Returns the Rank.Order which defines which Card s are higher or lower than others in the game of Hearts. |
Rank[] |
getRanks()
Returns an array containing the Rank objects typically included in a Hearts deck. |
Suit[] |
getSuits()
Returns an array containing the Suit objects representing the suits normally used in Hearts. |
java.lang.String |
getVersionNumber()
Returns the installed version of Hearts. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static Hearts get()
Hearts
class.Hearts
class.public int getMinimumNumberOfPlayers()
3
.public int getMaximumNumberOfPlayers()
7
.public Rank.Order getRankOrder()
Rank.Order
which defines which Card
s are higher or lower than others in the game of Hearts.
Equivalent to Rank.Order.ACE_HIGH
.Rank.Order
object specifying the high-to-low order of Card
s in Hearts.public Suit[] getSuits()
Suit
objects representing the suits normally used in Hearts.Suit.HEARTS
, Suit.SPADES
, Suit.DIAMONDS
, and Suit.CLUBS
.public Rank[] getRanks()
Rank
objects typically included in a Hearts deck.Rank.TWO
through Rank.ACE
.public java.lang.String getVersionNumber()
String
describing the version of Hearts; e.g., "1.0 alpha 1"
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |