Class ScriptRecorder

java.lang.Object
games.stendhal.client.scripting.ScriptRecorder

public class ScriptRecorder extends Object
Record chat/commands.
Author:
hendrik
  • Constructor Details

    • ScriptRecorder

      public ScriptRecorder(String classname) throws IOException
      Creates a new ScriptRecorder.
      Parameters:
      classname - Name of Class to record
      Throws:
      IOException - in case of an input/output error
  • Method Details

    • start

      public void start()
      Starts the recording by writing the header.
    • recordChatLine

      public void recordChatLine(String text)
      Records a chat/command.
      Parameters:
      text - command to record
    • end

      public void end()
      finishes the recording by writing the footer and closing the stream.