Class DumpTransitionsEx

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

public class DumpTransitionsEx extends ScriptImpl
Dumps the transition table of an NPC for "dot" http://www.graphviz.org/ to display a nice graph.
Author:
hendrik
  • Constructor Details

    • DumpTransitionsEx

      public DumpTransitionsEx()
  • 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