|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jogre.common.comm.CommBaseMessage org.jogre.common.comm.CommGameMessage org.jogre.common.comm.CommTableMessage org.jogre.common.comm.CommGameOver
Communication object to show that a game is over.
Field Summary | |
static int |
DRAW
Player draws with another player. |
static int |
RESIGN
Player losses a game. |
static int |
WIN
Player wins a game. |
Fields inherited from class org.jogre.common.comm.CommTableMessage |
NO_TABLE, omitSender, tableNum, XML_ATT_TABLE_NUM |
Fields inherited from class org.jogre.common.comm.CommGameMessage |
gameID, LAYER, usernameTo, XML_ATT_GAME_ID |
Fields inherited from class org.jogre.common.comm.CommBaseMessage |
layer, status, username, XML_ATT_LAYER |
Constructor Summary | |
CommGameOver(int status,
int scoreIncrement)
Constructor for a game over communication object. |
|
CommGameOver(XMLElement message)
Constructor which reads the game over object from a String. |
Method Summary | |
XMLElement |
flatten()
Flatten communciation object. |
int |
getScoreIncrement()
Return the score. |
Methods inherited from class org.jogre.common.comm.CommTableMessage |
flatten, getTableNum, isOmittingSender, setTableNum |
Methods inherited from class org.jogre.common.comm.CommGameMessage |
getGameID, getUsernameTo, isUsernameToSet, setGameID |
Methods inherited from class org.jogre.common.comm.CommBaseMessage |
getStatus, getUsername, setUsername |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int WIN
public static final int RESIGN
public static final int DRAW
Constructor Detail |
public CommGameOver(int status, int scoreIncrement)
status
- Type of win e.g. WIN, DRAW or LOSS.scoreIncrement
- Increment to score if a rated game (this is
negative if the player loses).public CommGameOver(XMLElement message) throws TransmissionException
message
- XML element version of object.
TransmissionException
- Thrown if problem in transmissionMethod Detail |
public int getScoreIncrement()
public XMLElement flatten()
ITransmittable.flatten()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |