Package org.rspeer.game.script
Class TaskManager
- java.lang.Object
-
- org.rspeer.game.script.TaskManager
-
public class TaskManager extends Object
-
-
Constructor Summary
Constructors Constructor Description TaskManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
checkShutdown(TaskDescriptor descriptor)
String
getLastTaskExecutionSequence()
String
getLastTaskName()
boolean
isPaused()
int
loop()
void
onStart(TaskScript script)
void
onStop()
void
registerTask(com.google.inject.Injector injector, Class<? super Task> cls)
void
registerTasks(com.google.inject.Injector injector, Class<?>[] tasks)
void
setHardPaused(boolean hardPaused)
void
setPaused(boolean paused)
void
tick(TickEvent tick)
void
unregisterTask(Task task, boolean unregisterChildren)
-
-
-
Method Detail
-
registerTasks
public void registerTasks(com.google.inject.Injector injector, Class<?>[] tasks)
-
registerTask
public void registerTask(com.google.inject.Injector injector, Class<? super Task> cls)
-
unregisterTask
public void unregisterTask(Task task, boolean unregisterChildren)
-
getLastTaskName
public String getLastTaskName()
-
getLastTaskExecutionSequence
public String getLastTaskExecutionSequence()
-
onStart
public void onStart(TaskScript script)
-
tick
public void tick(TickEvent tick)
-
checkShutdown
public boolean checkShutdown(TaskDescriptor descriptor)
-
loop
public int loop()
-
onStop
public void onStop()
-
setHardPaused
public void setHardPaused(boolean hardPaused)
-
isPaused
public boolean isPaused()
-
setPaused
public void setPaused(boolean paused)
-
-