Class ScheduledEvent

java.lang.Object
buildengine.time.Event
buildengine.time.ScheduledEvent

public class ScheduledEvent extends Event
  • Constructor Details

    • ScheduledEvent

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

    • update

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

      public long getProgress()