rcssjava.comm
Class RCSSParser

java.lang.Object
  extended by rcssjava.comm.RCSSParser

public class RCSSParser
extends java.lang.Object

Parses incoming server messages and uses them to update the supplied world state. Contains private methods to handle each type of message.


Constructor Summary
RCSSParser(WorldState WS, ServerParams SP)
          Constructs a parser using the given world state and server params
 
Method Summary
 boolean analyzeMessage(java.lang.String msg)
          Parse a server message and update the world state
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RCSSParser

public RCSSParser(WorldState WS,
                  ServerParams SP)
Constructs a parser using the given world state and server params

Parameters:
WS - world state connected to this parser
SP - server parameters
Method Detail

analyzeMessage

public boolean analyzeMessage(java.lang.String msg)
Parse a server message and update the world state

Parameters:
msg - server message
Returns:
true if successful