org.jtgl.gaming
Class TimeTrigger
java.lang.Object
org.jtgl.gaming.TimeTrigger
public class TimeTrigger
- extends java.lang.Object
Provides a thread-less time trigger suitable for animations, etc..
- Author:
- Manuel Polo (manuel_polo at yahoo dot es)
Constructor Summary |
TimeTrigger()
Creates a new instance of TimeTrigger |
TimeTrigger(long delay)
Creates a new instance of TimeTrigger |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
isTime
public boolean isTime
TimeTrigger
public TimeTrigger()
- Creates a new instance of TimeTrigger
TimeTrigger
public TimeTrigger(long delay)
- Creates a new instance of TimeTrigger
setDelay
public void setDelay(long delay)
getDelay
public long getDelay()
setEnabled
public void setEnabled(boolean enabled)
isEnabled
public boolean isEnabled()
setTriggerable
public void setTriggerable(Triggerable client)
getTriggerable
public Triggerable getTriggerable()
checkTime
public boolean checkTime()
reset
public void reset()
checkTime
public boolean checkTime(long currentTime)