|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object game.protocol.Reply
public abstract class Reply
Abstraction of all replies that might come from the simulator. There is almost nothing in common among the reply types, but any one of them might result from a message to the simulator, so they are all extensions of this type.
Nested Class Summary | |
---|---|
static class |
Reply.ReplyType
|
Field Summary | |
---|---|
protected static java.util.logging.Logger |
log
Most log messages go here |
protected static java.util.logging.Logger |
mServerLog
Log in mServerLog when the Reply is being constructed on the simulator side. |
protected Reply.ReplyType |
mType
The reply type. |
Constructor Summary | |
---|---|
Reply()
|
Method Summary | |
---|---|
static Reply |
factory(java.lang.String msg)
Factory for all replies. |
Reply.ReplyType |
getType()
Get the type of this reply. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Reply.ReplyType mType
protected static java.util.logging.Logger log
protected static java.util.logging.Logger mServerLog
Constructor Detail |
---|
public Reply()
Method Detail |
---|
public static Reply factory(java.lang.String msg) throws ParseException
msg
- message text
ParseException
- message is incorrectly formatted.public Reply.ReplyType getType()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |