|
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.SOCPlayerElement
This message means that someone is joining a game
Field Summary | |
static int |
CITIES
|
static int |
CLAY
player element types |
static int |
GAIN
|
static int |
LOSE
|
static int |
NUMKNIGHTS
|
static int |
ORE
|
static int |
ROADS
|
static int |
SET
player element actions |
static int |
SETTLEMENTS
|
static int |
SHEEP
|
static int |
UNKNOWN
|
static int |
WHEAT
|
static int |
WOOD
|
Constructor Summary | |
SOCPlayerElement(java.lang.String ga,
int pn,
int ac,
int et,
int va)
Create a PlayerElement message. |
Method Summary | |
int |
getAction()
|
int |
getElementType()
|
java.lang.String |
getGame()
|
int |
getPlayerNumber()
|
int |
getValue()
|
static SOCPlayerElement |
parseDataStr(java.lang.String s)
Parse the command String into a PlayerElement message |
java.lang.String |
toCmd()
PLAYERELEMENT sep game sep2 playerNumber sep2 actionType sep2 elementType sep2 value |
static java.lang.String |
toCmd(java.lang.String ga,
int pn,
int ac,
int et,
int va)
PLAYERELEMENT sep game sep2 playerNumber sep2 actionType sep2 elementType sep2 value |
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 CLAY
public static final int ORE
public static final int SHEEP
public static final int WHEAT
public static final int WOOD
public static final int UNKNOWN
public static final int ROADS
public static final int SETTLEMENTS
public static final int CITIES
public static final int NUMKNIGHTS
public static final int SET
public static final int GAIN
public static final int LOSE
Constructor Detail |
public SOCPlayerElement(java.lang.String ga, int pn, int ac, int et, int va)
ga
- name of the gamepn
- the player numberac
- the type of actionet
- the type of elementva
- the value of the elementMethod Detail |
public java.lang.String getGame()
public int getPlayerNumber()
public int getAction()
public int getElementType()
public int getValue()
public java.lang.String toCmd()
toCmd
in class SOCMessage
public static java.lang.String toCmd(java.lang.String ga, int pn, int ac, int et, int va)
ga
- the game namepn
- the player numberac
- the type of actionet
- the type of elementva
- the value of the element
public static SOCPlayerElement 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 |