|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjskat.data.Trick
public class Trick
Holds data for a single trick
| Constructor Summary | |
|---|---|
Trick(int foreHand)
Creates a new instance of Trick |
|
| Method Summary | |
|---|---|
Card |
getCard(int player)
Gets a card from the trick |
CardVector |
getCardVector()
Returns the cards of the trick as CardVector |
Card |
getFirstCard()
Getter for property firstCard. |
int |
getForeHand()
|
Card |
getSecondCard()
Getter for property secondCard. |
Card |
getThirdCard()
Getter for property thirdCard. |
int |
getTrickWinner()
Getter for property trickWinner. |
void |
setFirstCard(Card firstCard)
Setter for property firstCard. |
void |
setSecondCard(Card secondCard)
Setter for property secondCard. |
void |
setThirdCard(Card thirdCard)
Setter for property thirdCard. |
void |
setTrickWinner(int trickWinner)
Setter for property trickWinner. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Trick(int foreHand)
| Method Detail |
|---|
public int getForeHand()
public Card getFirstCard()
public void setFirstCard(Card firstCard)
firstCard - New value of property firstCard.public Card getSecondCard()
public void setSecondCard(Card secondCard)
secondCard - New value of property secondCard.public Card getThirdCard()
public Card getCard(int player)
player - The player
public void setThirdCard(Card thirdCard)
thirdCard - New value of property thirdCard.public int getTrickWinner()
public void setTrickWinner(int trickWinner)
trickWinner - New value of property trickWinner.public CardVector getCardVector()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||