|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object soc.message.SOCMessage soc.message.SOCMessageTemplateJoinGame
public abstract class SOCMessageTemplateJoinGame
This message means that someone is joining a game.
Once the client has successfully joined or created a game or channel, the password field can be left blank in later join/create requests. All server versions ignore the password field after a successful request.
v1.1.07: This template class is copied from SOCJoinGame
to
share functionality with the new SOCNewGameWithOptions
. - JDM
v2.0.00: Don't implement SOCMessageForGame, to avoid server looking for a GameHandler for our new game which doesn't exist yet.
Field Summary | |
---|---|
protected java.lang.String |
game
Name of game |
protected java.lang.String |
host
Server host name to which the client is connecting. |
protected java.lang.String |
nickname
Nickname of the joining member |
protected static java.lang.String |
NULLPASS
symbol to represent a null or empty password over the network, to avoid 2 adjacent field-delimiter characters |
protected java.lang.String |
password
Optional password, or "" if none |
private static long |
serialVersionUID
|
Constructor Summary | |
---|---|
SOCMessageTemplateJoinGame(java.lang.String nn,
java.lang.String pw,
java.lang.String hn,
java.lang.String ga)
Create a Join message. |
Method Summary | |
---|---|
java.lang.String |
getGame()
|
java.lang.String |
getHost()
|
java.lang.String |
getNickname()
|
java.lang.String |
getPassword()
|
java.lang.String |
toString(java.lang.String classname,
java.lang.String otherParams)
|
Methods inherited from class soc.message.SOCMessage |
---|
arrayIntoStringBuf, enumIntoStringBuf, getClassNameShort, getMaximumVersion, getMinimumVersion, getType, isSingleLineAndSafe, isSingleLineAndSafe, toCmd, toMsg, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private static final long serialVersionUID
protected static final java.lang.String NULLPASS
protected java.lang.String nickname
protected java.lang.String password
protected java.lang.String game
protected java.lang.String host
Constructor Detail |
---|
public SOCMessageTemplateJoinGame(java.lang.String nn, java.lang.String pw, java.lang.String hn, java.lang.String ga)
nn
- nicknamepw
- optional password, or ""hn
- server host namega
- name of the gameMethod Detail |
---|
public java.lang.String getNickname()
public java.lang.String getPassword()
public java.lang.String getHost()
public java.lang.String getGame()
public java.lang.String toString(java.lang.String classname, java.lang.String otherParams)
classname
- message name calling this class, appears in returned stringotherParams
- null, or other parameters to append in the returned string,
of the form "p1=x|p2=y"
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |