game.protocol
Class ControlReply

java.lang.Object
  extended by game.protocol.Reply
      extended by game.protocol.ControlReply

public class ControlReply
extends Reply

Normal response from a control request.

Invariant: mType == CONTROL


Nested Class Summary
 
Nested classes/interfaces inherited from class game.protocol.Reply
Reply.ReplyType
 
Field Summary
 
Fields inherited from class game.protocol.Reply
log, mServerLog, mType
 
Constructor Summary
ControlReply(int t)
           
ControlReply(java.lang.String msg)
           
 
Method Summary
 int getTime()
           
 java.lang.String toString()
           
 
Methods inherited from class game.protocol.Reply
factory, getType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ControlReply

public ControlReply(int t)
Parameters:
t - time in milliseconds

ControlReply

public ControlReply(java.lang.String msg)
             throws ParseException
Parameters:
msg - The message text
Throws:
ParseException - illformatted message.
Method Detail

getTime

public int getTime()
Returns:
time in milliseconds from message

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object