Package games.stendhal.client.scripting
Class ScriptRecorder
java.lang.Object
games.stendhal.client.scripting.ScriptRecorder
Record chat/commands.
- Author:
- hendrik
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidend()finishes the recording by writing the footer and closing the stream.voidrecordChatLine(String text) Records a chat/command.voidstart()Starts the recording by writing the header.
-
Constructor Details
-
ScriptRecorder
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
Records a chat/command.- Parameters:
text- command to record
-
end
public void end()finishes the recording by writing the footer and closing the stream.
-