|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--inonit.domain.game.card.hearts.ai.Kitty
A set of Card
s left over after dealing in a Game
where the Card
s in the
deck are not evenly divisible by the number of players.
During a Hand
, the first Intelligence
to take a Trick
including a point card
(as defined by Rules.getValue
!= 0
)
receives the Card
s in the Kitty
, and they count in the
Intelligence
's score for that
Hand
.
In some games, the Kitty
is "blind" -- i.e., the Intelligence
taking the Kitty
may not examine it; in others, it is not blind. Whether or not the
Kitty
for a Game
is blind is
determined by the Rules.isKittyBlind
method.
Method Summary | |
CardArray |
getCards()
Returns a copy of the CardArray containing the Card s in this Kitty ,
or null if this
AbstractIntelligence is not allowed to see them. |
int |
getSize()
Returns the number of Card s in this Kitty . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public int getSize()
Card
s in this Kitty
.Card
s in this Kitty
.public CardArray getCards()
CardArray
containing the Card
s in this Kitty
,
or null
if this
AbstractIntelligence
is not allowed to see them. The AbstractIntelligence
cannot see them if
Kitty
is blind, according to
Rules.isKittyBlind
, or
AbstractIntelligence
did not take this Kitty
.
CardArray
containing the Card
s in the Kitty
, or null
if this AbstractIntelligence
cannot look at them. This CardArray
can be safely
manipulated without altering the original.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |