Class Timer.TimedAction

java.lang.Object
dev.prozilla.pine.core.state.Timer.TimedAction
All Implemented Interfaces:
Destructible, Updatable
Direct Known Subclasses:
Timer.Interval, Timer.Timeout
Enclosing class:
Timer

protected abstract static class Timer.TimedAction extends Object implements Updatable, Destructible
  • Field Details

    • timer

      protected final Timer timer
    • delay

      protected float delay
    • elapsed_time

      protected float elapsed_time
  • Constructor Details

    • TimedAction

      public TimedAction(Timer timer, Callback callback, float delay, boolean applyTimeScale)
  • Method Details

    • update

      public void update(float deltaTime)
      Description copied from interface: Updatable
      Updates this object every frame.
      Specified by:
      update in interface Updatable
      Parameters:
      deltaTime - Delta time in seconds
    • setApplyTimeScale

      public void setApplyTimeScale(boolean applyTimeScale)
    • execute

      protected void execute()