|
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.SOCBoardLayout
This message contains the board layout information. That is, the hex layout, the number layout, and where the robber is. This does not contain information about where the player's pieces are on the board.
Field Summary |
Constructor Summary | |
SOCBoardLayout(java.lang.String ga,
int[] hl,
int[] nl,
int rh)
Create a SOCBoardLayout message |
Method Summary | |
java.lang.String |
getGame()
|
int[] |
getHexLayout()
|
int[] |
getNumberLayout()
|
int |
getRobberHex()
|
static SOCBoardLayout |
parseDataStr(java.lang.String s)
Parse the command String into a BoardLayout message |
java.lang.String |
toCmd()
BOARDLAYOUT sep game sep2 hexLayout[0] sep2 ... sep2 hexLayout[36] sep2 numberLayout[0] sep2 ... sep2 numberLayout[36] sep2 robberHex |
static java.lang.String |
toCmd(java.lang.String ga,
int[] hl,
int[] nl,
int rh)
BOARDLAYOUT sep game sep2 hexLayout[0] sep2 ... sep2 hexLayout[36] sep2 numberLayout[0] sep2 ... sep2 numberLayout[36] sep2 robberHex |
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 |
Constructor Detail |
public SOCBoardLayout(java.lang.String ga, int[] hl, int[] nl, int rh)
ga
- the name of the gamehl
- the hex layoutnl
- the number layoutrh
- the robber hexMethod Detail |
public java.lang.String getGame()
public int[] getHexLayout()
public int[] getNumberLayout()
public int getRobberHex()
public java.lang.String toCmd()
toCmd
in class SOCMessage
public static java.lang.String toCmd(java.lang.String ga, int[] hl, int[] nl, int rh)
public static SOCBoardLayout 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 |