|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.umk.mat.merdacz.JGFramework.GameReplies
At the moment all "outer" server protocol part of xml message are attached here TODO place it in parseRequest in ServerThread
Constructor Summary | |
GameReplies()
|
Method Summary | |
static java.lang.String |
gameBroadcast(java.lang.String type,
java.lang.String content)
Sends messgae to all but not "name" player in actual game |
static java.lang.String |
reply(java.lang.String type,
java.lang.String content)
Generates reply with given content |
static java.lang.String |
replyFailed(java.lang.String type,
java.lang.String reason)
Generates Failed reply for given gameRequest type, with given explaination |
static java.lang.String |
replyOK(java.lang.String type)
Generates OK reply for given gameRequest type |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public GameReplies()
Method Detail |
public static java.lang.String replyOK(java.lang.String type)
type
- Type of request for which reply will be generated
public static java.lang.String replyFailed(java.lang.String type, java.lang.String reason)
type
- Type of request for which reply will be generatedreason
- Reason why failure occured
public static java.lang.String reply(java.lang.String type, java.lang.String content)
type
- content
-
public static java.lang.String gameBroadcast(java.lang.String type, java.lang.String content)
type
- Which type of request caused this broadcastcontent
- What should be wrapped in broadcast reply
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |