Package dev.prozilla.pine.core.state
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
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionTimedAction(Timer timer, Callback callback, float delay, boolean applyTimeScale) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidexecute()voidsetApplyTimeScale(boolean applyTimeScale) voidupdate(float deltaTime) Updates this object every frame.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface dev.prozilla.pine.common.lifecycle.Destructible
destroy
-
Field Details
-
timer
-
delay
protected float delay -
elapsed_time
protected float elapsed_time
-
-
Constructor Details
-
TimedAction
-
-
Method Details
-
update
public void update(float deltaTime) Description copied from interface:UpdatableUpdates this object every frame. -
setApplyTimeScale
public void setApplyTimeScale(boolean applyTimeScale) -
execute
protected void execute()
-