Class ThScript

java.lang.Object
java.lang.Thread
fr.formiko.formiko.ThScript
All Implemented Interfaces:
Runnable

public class ThScript extends Thread
To run a level.
It launch a script of cheat code.
Author:
Hydrolien
  • Field Details

    • scr

      private Script scr
    • needToStop

      private boolean needToStop
  • Constructor Details

    • ThScript

      public ThScript(String s)
      Main contructor.
  • Method Details

    • getScript

      public Script getScript()
    • run

      public void run()
      Main methode to launch script.
      It is call with Main.launchScript().
      Specified by:
      run in interface Runnable
      Overrides:
      run in class Thread
    • interrupt

      public void interrupt()
      To stop thread.
      Overrides:
      interrupt in class Thread
    • isInterrupted

      public boolean isInterrupted()
      Used by the script to know if it should stop himself.
      Overrides:
      isInterrupted in class Thread