Package fr.formiko.formiko
Class ThScript
java.lang.Object
java.lang.Thread
fr.formiko.formiko.ThScript
- All Implemented Interfaces:
Runnable
To run a level.
It launch a script of cheat code.
It launch a script of cheat code.
- Author:
- Hydrolien
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
-
Field Summary
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
To stop thread.boolean
Used by the script to know if it should stop himself.void
run()
Main methode to launch script.Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupted, isAlive, isDaemon, join, join, join, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, suspend, toString, yield
-
Field Details
-
scr
-
needToStop
private boolean needToStop
-
-
Constructor Details
-
ThScript
Main contructor.
-
-
Method Details
-
getScript
-
run
public void run()Main methode to launch script.
It is call with Main.launchScript(). -
interrupt
public void interrupt()To stop thread. -
isInterrupted
public boolean isInterrupted()Used by the script to know if it should stop himself.- Overrides:
isInterrupted
in classThread
-