Class DumpTransitions

java.lang.Object
games.stendhal.server.core.scripting.ScriptImpl
games.stendhal.server.script.DumpTransitions
All Implemented Interfaces:
Script

public class DumpTransitions extends ScriptImpl
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
  • Constructor Details

    • DumpTransitions

      public DumpTransitions()
  • Method Details

    • execute

      public void execute(Player admin, List<String> args)
      Description copied from interface: Script
      Executes this script.
      Specified by:
      execute in interface Script
      Overrides:
      execute in class ScriptImpl
      Parameters:
      admin - the admin who load it or null on server start.
      args - the arguments the admin specified or null on server start.
    • getDump

      public String getDump(SpeakerNPC npc)
      Returns the transition diagram as string.
      Parameters:
      npc - SpeakerNPC
      Returns:
      transition diagram