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 Details

    • RespawnTask

      public RespawnTask()
  • Method Details

    • run

      public void run()
      Runs the commands to initiate a respawn
      Specified by:
      run in interface Runnable
      Specified by:
      run in class com.badlogic.gdx.utils.Timer.Task
    • getTimeToExecutionInSeconds

      public float getTimeToExecutionInSeconds()
      Calculates when the next respawn is executed.
      Returns:
      time in seconds