|
JSettlers v1.0.6 API Built ${date} |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsoc.message.SOCMessage
soc.message.SOCDevCard
This message means that a player is drawing or playing a development card
Field Summary | |
static int |
ADDNEW
|
static int |
ADDOLD
|
static int |
DRAW
dev card actions |
static int |
PLAY
|
Constructor Summary | |
SOCDevCard(java.lang.String ga,
int pn,
int ac,
int ct)
Create a DevCard message. |
Method Summary | |
int |
getAction()
|
int |
getCardType()
|
java.lang.String |
getGame()
|
int |
getPlayerNumber()
|
static SOCDevCard |
parseDataStr(java.lang.String s)
Parse the command String into a DevCard message |
java.lang.String |
toCmd()
DEVCARD sep game sep2 playerNumber sep2 actionType sep2 cardType |
static java.lang.String |
toCmd(java.lang.String ga,
int pn,
int ac,
int ct)
DEVCARD sep game sep2 playerNumber sep2 actionType sep2 cardType |
java.lang.String |
toString()
|
Methods inherited from class soc.message.SOCMessage |
getType, toMsg |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int DRAW
public static final int PLAY
public static final int ADDNEW
public static final int ADDOLD
Constructor Detail |
public SOCDevCard(java.lang.String ga, int pn, int ac, int ct)
ga
- name of the gamepn
- the player numberac
- the type of actionct
- the type of cardMethod Detail |
public java.lang.String getGame()
public int getPlayerNumber()
public int getAction()
public int getCardType()
public java.lang.String toCmd()
toCmd
in class SOCMessage
public static java.lang.String toCmd(java.lang.String ga, int pn, int ac, int ct)
ga
- the game namepn
- the player numberac
- the type of actionct
- the type of card
public static SOCDevCard parseDataStr(java.lang.String s)
s
- the String to parse
public java.lang.String toString()
|
JSettlers v1.0.6 API Built ${date} |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |