|
|||||||||||
| 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 | |
private java.lang.String |
game
Name of game |
private int[] |
hexLayout
The hex layout |
private int[] |
numberLayout
The number layout |
private int |
robberHex
Where the robber is |
| 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 ... |
static java.lang.String |
toCmd(java.lang.String ga,
int[] hl,
int[] nl,
int rh)
BOARDLAYOUT sep game sep2 hexLayout[0] sep2 ... |
java.lang.String |
toString()
Simple human-readable representation, used for debug purposes. |
| Methods inherited from class soc.message.SOCMessage |
getMaximumVersion, getMinimumVersion, getType, toMsg, toSingleElemArray |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
private java.lang.String game
private int[] hexLayout
private int[] numberLayout
private int robberHex
| 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 hex| Method 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()
SOCMessage
toString in class SOCMessage
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||