|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjskat.player.AIPlayerMJL.TrickInfo
public class TrickInfo
| Constructor Summary | |
|---|---|
TrickInfo()
Constructor |
|
| Method Summary | |
|---|---|
Card |
getCard(int index)
Get a certain card of the trick |
int |
getDemandSuit()
Convenience method for getting the suit color of the initial card |
int |
getForehandPlayer()
get the forehand player for the current trick |
GameInfo |
getGameInfo()
get the current gameInfo |
int |
getGameType()
Convenience method for getting the current game type |
int |
getSinglePlayerPos()
get the position of the single player within the trick |
CardVector |
getTrick()
get the current trick |
int |
getTrickValue()
Calculates the value of all the cards in the trick |
int |
getTrump()
Concenience method for getting the current trump color |
void |
setForehandPlayer(int id)
set the forehand player for the current trick |
void |
setGameInfo(GameInfo info)
set the current gameInfo |
void |
setSinglePlayerPos(int pos)
set the position of the single player within the trick |
void |
setTrick(CardVector trick)
set the current trick |
int |
size()
Convenience method for getting the size of the trick |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TrickInfo()
| Method Detail |
|---|
public GameInfo getGameInfo()
public CardVector getTrick()
public void setGameInfo(GameInfo info)
info - current game info to be setpublic void setTrick(CardVector trick)
trick - current trick to be setpublic int getForehandPlayer()
public void setForehandPlayer(int id)
id - forehand player in the current trickpublic int getSinglePlayerPos()
public void setSinglePlayerPos(int pos)
pos - position of the single playerpublic Card getCard(int index)
index -
public int size()
public int getDemandSuit()
public int getTrickValue()
public int getGameType()
public int getTrump()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||