rcssjava.gamelog
Class GameLog

java.lang.Object
  extended by rcssjava.gamelog.GameLog

public class GameLog
extends java.lang.Object

Parses a game log (rcg file) and uses it to update a world state


Constructor Summary
GameLog(java.lang.String filename)
          Open the given game log and construct a parser for it
 
Method Summary
 boolean readNext()
          Read next record from log file
 void setWorldState(WorldState WS)
          Set the world state.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GameLog

public GameLog(java.lang.String filename)
Open the given game log and construct a parser for it

Parameters:
filename - name of .rcg file to open
Method Detail

setWorldState

public void setWorldState(WorldState WS)
Set the world state. The world state must be set before you start reading a log file.

Parameters:
WS - world state

readNext

public boolean readNext()
Read next record from log file

Returns:
true if successful