Package de.tum.cit.ase.maze.objects
Class CollectableManager.RespawnTask
java.lang.Object
com.badlogic.gdx.utils.Timer.Task
de.tum.cit.ase.maze.objects.CollectableManager.RespawnTask
- All Implemented Interfaces:
Runnable
- Enclosing class:
- CollectableManager
public class CollectableManager.RespawnTask
extends com.badlogic.gdx.utils.Timer.Task
Task that schedules a respawn by a
Timer
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfloat
Calculates when the next respawn is executed.void
run()
Runs the commands to initiate a respawnMethods inherited from class com.badlogic.gdx.utils.Timer.Task
cancel, getExecuteTimeMillis, isScheduled
-
Constructor Details
-
RespawnTask
public RespawnTask()
-
-
Method Details
-
run
public void run()Runs the commands to initiate a respawn -
getTimeToExecutionInSeconds
public float getTimeToExecutionInSeconds()Calculates when the next respawn is executed.- Returns:
- time in seconds
-