|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jogre.common.comm.CommGameMessage org.jogre.common.comm.CommError
Communications class which is used to send an error from the server to a client or vice-versa.
Field Summary | |
static int |
GAME_NOT_SUPPORTED
Server doesn't support game. |
static int |
GENERAL_ERROR
General error. |
static int |
SERVER_FULL
Server full. |
static int |
USER_ALREADY_CONNECTED
Status code for a user is already connected. |
static int |
USER_LOGON_INCORRECT
Status code for a user login is incorrect (username / password). |
static int |
USER_NOT_CONNECTED
Status code for a user who is not connected but is trying to send a message. |
Fields inherited from class org.jogre.common.comm.CommGameMessage |
status, username, usernameTo, XML_ATT_STATUS, XML_ATT_USERNAME, XML_ATT_USERNAME_TO |
Constructor Summary | |
CommError(int errorCode)
Constructor to an error message. |
|
CommError(XMLElement message)
Constructor which creates a CommError object from the flatten () method of another CommError object. |
Method Summary | |
XMLElement |
flatten()
This method flattens an ITransmittable object into a XMLElement which can be transmitted. |
Methods inherited from class org.jogre.common.comm.CommGameMessage |
flatten, getStatus, getUsername, getUsernameTo, isUsernameSet, isUsernameToSet, setUsername, setUsernameTo, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int GENERAL_ERROR
public static final int SERVER_FULL
public static final int GAME_NOT_SUPPORTED
public static final int USER_ALREADY_CONNECTED
public static final int USER_NOT_CONNECTED
public static final int USER_LOGON_INCORRECT
Constructor Detail |
public CommError(int errorCode)
errorCode
- public CommError(XMLElement message)
message
- Communication message as XML.Method Detail |
public XMLElement flatten()
ITransmittable
ITransmittable.flatten()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |