|
||||||||||
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.Hand
Information about a particular hand within a Game
, in the sense of a complete deal and play of all the
cards, not in the sense of the cards that a player is holding.
Method Summary | |
Trick |
getCurrentTrick()
Returns the current Trick in this Hand . |
CardArray |
getHandDealt()
Returns a copy of the CardArray that was dealt to this AbstractIntelligence during this
Hand . |
CardArray |
getPassReceived()
Returns a copy of the pass received from another player during the pass stage of this Hand . |
CardArray |
getPassSent()
Returns a copy of the pass sent to another player during the pass stage of this Hand . |
Trick[] |
getPreviousTricks()
Returns the previous Trick s which have taken place during this Hand . |
int[] |
getScores()
Returns a copy of the scores for this Hand . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public CardArray getHandDealt()
CardArray
that was dealt to this AbstractIntelligence
during this
Hand
.CardArray
containing the Card
s that were dealt to this
AbstractIntelligence
at the beginning of this Hand
. This CardArray
is
a copy of the original and can be safely manipulated without damaging the original.public CardArray getPassSent()
Hand
.CardArray
containing the Card
s that were sent away during the pass stage of this
Hand
, or null
if cards have not been passed yet. In the event that this is a
"hold" hand, the result of this method is undefined.public CardArray getPassReceived()
Hand
.CardArray
containing the Card
s that were received during the pass stage of this
Hand
, or null
if cards have not been passed yet. In the event that this is a
"hold" hand, the result of this method is undefined.public Trick[] getPreviousTricks()
Trick
s which have taken place during this Hand
.Trick
s which have taken place in this Hand
. If
no Trick
s have been completed, this array will be zero-length.public Trick getCurrentTrick()
Trick
in this Hand
.Trick
, or null
if there is no current Trick
.
There is no current Trick
if the first Trick
has not started, or if the
last Trick
is over.public int[] getScores()
Hand
.Hand
, or null
if the Hand
has not yet been
scored. This array can safely be manipulated without affecting the original.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |