|
||||||||||
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.Pass
An object representing a single pass of cards to or from a single player.
Method Summary | |
Card |
getCard(int index)
Returns the card at a particular index position in this pass. |
CardArray |
getCards()
Returns the set of cards included in this pass. |
int |
getPlayer(int index)
Returns the player who passed/received the card at a particular index in this pass. |
int |
getSize()
Returns the number of cards in this pass. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public CardArray getCards()
CardArray
containing all the cards included in this Pass
.public int getSize()
public Card getCard(int index)
index
- A position between 0
and getSize()-1
, inclusive.index
in this pass. Indices are zero-based.public int getPlayer(int index)
index
- A position between 0
and getSize()-1
, inclusive.index
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |