public class ScheduledEvent
extends Event
-
-
Constructor Summary
Constructors
Create a new scheduled event
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
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()