Package org.rspeer.game.script.scheduler
Class ScriptScheduleManager
- java.lang.Object
-
- org.rspeer.game.script.scheduler.ScriptScheduleManager
-
public class ScriptScheduleManager extends Object
-
-
Constructor Summary
Constructors Constructor Description ScriptScheduleManager(org.rspeer.game.script.process.ScriptController controller, org.rspeer.game.script.loader.ScriptLoaderProvider provider, EventDispatcher dispatcher)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidonTick(TickEvent event)voidonTransitionScriptStop()voidreset()booleanstart(String savedScheduleName, GameAccount account)This method must only be called when a script is not running.booleanstart(ScriptSchedule schedule, GameAccount account)This method must only be called when a script is not running.
-
-
-
Constructor Detail
-
ScriptScheduleManager
@Inject public ScriptScheduleManager(org.rspeer.game.script.process.ScriptController controller, org.rspeer.game.script.loader.ScriptLoaderProvider provider, EventDispatcher dispatcher)
-
-
Method Detail
-
onTick
public void onTick(TickEvent event)
-
start
public boolean start(String savedScheduleName, GameAccount account)
This method must only be called when a script is not running. If you intend to call it in a script, stop that script and schedule this function call.
-
start
public boolean start(ScriptSchedule schedule, GameAccount account)
This method must only be called when a script is not running. If you intend to call it in a script, stop that script and schedule this function call.
-
onTransitionScriptStop
public void onTransitionScriptStop()
-
reset
public void reset()
-
-