game.protocol
Class OnSideReply

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

public class OnSideReply
extends Reply

Informs team which side it is playing on.

Invariant: mType == ONSIDE


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
OnSideReply(Side t)
           
OnSideReply(java.lang.String msg)
           
 
Method Summary
 Side getSide()
          Which side is assigned to this team
 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

OnSideReply

public OnSideReply(java.lang.String msg)
            throws ParseException
Parameters:
msg - text of the message
Throws:
ParseException - message format is incorrect.

OnSideReply

public OnSideReply(Side t)
Parameters:
t - side for this team
Method Detail

toString

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

getSide

public Side getSide()
Which side is assigned to this team

Returns:
EAST or WEST