Class RepeatingEvent

java.lang.Object
buildengine.time.Event
buildengine.time.RepeatingEvent

public class RepeatingEvent extends Event
  • Constructor Details

    • RepeatingEvent

      public RepeatingEvent(Runnable action, long interval)
      Create a new scheduled event
      Parameters:
      interval - in milliseconds
      action - to execute after the timer ran out
  • Method Details

    • restart

      public void restart()
    • restart

      public void restart(long interval)
    • update

      public void update()
      Specified by:
      update in class Event
    • resetProgress

      public void resetProgress()
    • getProgress

      public long getProgress()
    • isPaused

      public boolean isPaused()
    • setPaused

      public void setPaused(boolean paused)
    • getInterval

      public long getInterval()