Package games.stendhal.server.script
Class DumpTransitions
java.lang.Object
games.stendhal.server.core.scripting.ScriptImpl
games.stendhal.server.script.DumpTransitions
- All Implemented Interfaces:
Script
Dumps the transition table of an NPC for "dot" http://www.graphviz.org/ to
generate a nice graph and prints the graph text to the client console.
- Author:
- hendrik
-
Field Summary
Fields inherited from class games.stendhal.server.core.scripting.ScriptImpl
sandbox -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class games.stendhal.server.core.scripting.ScriptImpl
load, unload
-
Constructor Details
-
DumpTransitions
public DumpTransitions()
-
-
Method Details
-
execute
Description copied from interface:ScriptExecutes this script.- Specified by:
executein interfaceScript- Overrides:
executein classScriptImpl- Parameters:
admin- the admin who load it ornullon server start.args- the arguments the admin specified ornullon server start.
-
getDump
Returns the transition diagram as string.- Parameters:
npc- SpeakerNPC- Returns:
- transition diagram
-