soc.message
Class SOCResetBoardVoteRequest
java.lang.Object
soc.message.SOCMessage
soc.message.SOCMessageTemplate1i
soc.message.SOCResetBoardVoteRequest
- All Implemented Interfaces:
- java.lang.Cloneable, java.io.Serializable
- public class SOCResetBoardVoteRequest
- extends SOCMessageTemplate1i
This message from server informs the client that in a game they're playing,
another player requests a "board reset" (new game with same name and players, new layout),
and they should vote yes or no.
This won't be sent to robots: robots are assumed to vote yes and go along.
- Author:
- Jeremy D. Monin
- See Also:
SOCResetBoardRequest,
Serialized Form
| Fields inherited from class soc.message.SOCMessage |
ACCEPTOFFER, ADMINPING, ADMINRESET, BANKTRADE, BCASTTEXTMSG, BOARDLAYOUT, BUILDREQUEST, BUYCARDREQUEST, CANCELBUILDREQUEST, CHANGEFACE, CHANNELS, CHOOSEPLAYER, CHOOSEPLAYERREQUEST, CLEAROFFER, CLEARTRADEMSG, CREATEACCOUNT, DELETECHANNEL, DELETEGAME, DEVCARD, DEVCARDCOUNT, DICERESULT, DISCARD, DISCARDREQUEST, DISCOVERYPICK, ENDTURN, FIRSTPLAYER, GAMEMEMBERS, GAMES, GAMESTATE, GAMESTATS, GAMETEXTMSG, IMAROBOT, JOIN, JOINAUTH, JOINGAME, JOINGAMEAUTH, JOINGAMEREQUEST, LARGESTARMY, LASTSETTLEMENT, LEAVE, LEAVEALL, LEAVEGAME, LONGESTROAD, MAKEOFFER, MEMBERS, messageType, MONOPOLYPICK, MOVEROBBER, NEWCHANNEL, NEWGAME, NULLMESSAGE, PLAYDEVCARDREQUEST, PLAYERELEMENT, POTENTIALSETTLEMENTS, PUTPIECE, REJECTCONNECTION, REJECTOFFER, RESETBOARDAUTH, RESETBOARDREJECT, RESETBOARDREQUEST, RESETBOARDVOTE, RESETBOARDVOTEREQUEST, RESOURCECOUNT, ROBOTDISMISS, ROLLDICE, ROLLDICEPROMPT, ROLLDICEREQUEST, sep, sep_char, sep2, sep2_char, SERVERPING, SETPLAYEDDEVCARD, SETSEATLOCK, SETTURN, SETUPDONE, SITDOWN, STARTGAME, STATUSMESSAGE, TEXTMSG, TURN, UPDATEROBOTPARAMS, VERSION |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
SOCResetBoardVoteRequest
public SOCResetBoardVoteRequest(java.lang.String ga,
int reqpn)
- Create a SOCResetBoardVoteRequest message.
- Parameters:
ga - the name of the gamereqpn - player number who requested the reset
getRequestingPlayer
public int getRequestingPlayer()
- Returns:
- the player number of the player who requested the board reset
toCmd
public static java.lang.String toCmd(java.lang.String ga,
int reqpn)
- RESETBOARDVOTEREQUEST sep game sep2 playernumber
- Parameters:
ga - the name of the gamereqpn - player number who requested the reset
- Returns:
- the command string
parseDataStr
public static SOCResetBoardVoteRequest parseDataStr(java.lang.String s)
- Parse the command String into a SOCResetBoardVoteRequest message
- Parameters:
s - the String to parse
- Returns:
- a SOCResetBoardVoteRequest message, or null if the data is garbled
getMinimumVersion
public int getMinimumVersion()
- Minimum version where this message type is used.
RESETBOARDVOTEREQUEST introduced in 1.1.00 for reset-board feature.
- Overrides:
getMinimumVersion in class SOCMessage
- Returns:
- Version number, 1100 for JSettlers 1.1.00.