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