Drag[en]gine Script Module DragonScript
1.23
|
Public Member Functions | |
void | fire () |
Timer time elapsed. More... | |
void | giveUp () |
Give up timer if registered with a timer manager. More... | |
TimerBlock | new (float triggerTime, bool periodic, Block blockFire) |
Create timer registered at default timer manager. More... | |
TimerBlock | new (TimerManager manager, float triggerTime, bool periodic, Block blockFire) |
Create timer registered at timer manager. More... | |
Public Member Functions inherited from Dragengine.Utils.Timer | |
void | advance (float elapsed) |
Advance timer. More... | |
float | getElapsedTime () |
Elapsed seconds. More... | |
bool | getIsPeriodic () |
Timer is periodic. More... | |
float | getRemainingTime () |
Remaining seconds until timer elapses. More... | |
TimerManager | getTimerManager () |
Timer manager the timer is registered at. More... | |
float | getTriggerTime () |
Seconds until timer elapsed. More... | |
bool | hasElapsed () |
Timer elapsed. More... | |
Timer | new (float triggerTime, bool periodic) |
Create timer registered at default timer manager. More... | |
Timer | new (TimerManager manager, float triggerTime, bool periodic) |
Create timer registered at timer manager. More... | |
void | setElapsedTime (float elapsedTime) |
Set elapsed seconds. More... | |
void | setIsPeriodic (bool periodic) |
Set if timer is periodic. More... | |
void | setTriggerTime (float triggerTime) |
Set seconds until timer elapses. More... | |
Additional Inherited Members | |
Public Attributes inherited from Dragengine.Utils.Timer | |
float | pElapsedTime |
bool | pIsPeriodic |
TimerManager | pTimerManager |
float | pTriggerTime |
Timer running block.
void Dragengine.Utils.TimerBlock.fire | ( | ) |
Timer time elapsed.
Reimplemented from Dragengine.Utils.Timer.
void Dragengine.Utils.TimerBlock.giveUp | ( | ) |
Give up timer if registered with a timer manager.
Call to give up pending timer. Dropping the reference alone does not give up the timer.
Reimplemented from Dragengine.Utils.Timer.
TimerBlock Dragengine.Utils.TimerBlock.new | ( | float | triggerTime, |
bool | periodic, | ||
Block | blockFire | ||
) |
Create timer registered at default timer manager.
triggerTime | Seconds to wait before triggering |
periodic | Reschedule trigger once finished. |
blockFire | Block to run. Block has no parameters. |
TimerBlock Dragengine.Utils.TimerBlock.new | ( | TimerManager | manager, |
float | triggerTime, | ||
bool | periodic, | ||
Block | blockFire | ||
) |
Create timer registered at timer manager.
manager | Timer Manager to register timer at |
triggerTime | Seconds to wait before triggering |
periodic | True if this timer is periodic |
blockFire | Block to run. Block has no parameters. |