|
Drag[en]gine Script Module DragonScript 1.35
|
Timer repeating an action. More...
Public Member Functions | |
| void | fire () |
| Timer elapsed. | |
| ActionListener | getAction () |
| Action to repeat. | |
| int | getModifiers () |
| Modifiers for sending event. | |
| float | getRepeatDelay () |
| Repeat delay in seconds. | |
| Object | getSource () |
| Source sending event. | |
| RepeatActionTimer | new (ActionListener action, Object source, int modifiers) |
| Create repeat action timer with 0.5s initial delay and 0.05 repeat delay. | |
| RepeatActionTimer | new (ActionListener action, Object source, int modifiers, float initialDelay, float repeatDelay) |
| Create repeat action timer. | |
| void | sendEvent () |
| Send event. | |
| void | setAction (ActionListener action) |
| Set action to repeat. | |
| void | setModifiers (int modifiers) |
| Set modifiers for sending event. | |
| void | setRepeatDelay (float delay) |
| Set repeat delay in seconds. | |
| void | setSource (Object source) |
| Set source sending event. | |
| Public Member Functions inherited from Dragengine.Utils.Timer | |
| void | advance (float elapsed) |
| Advance timer. | |
| float | getElapsedTime () |
| Elapsed seconds. | |
| bool | getIsPeriodic () |
| Timer is periodic. | |
| float | getRemainingTime () |
| Remaining seconds until timer elapses. | |
| TimerManager | getTimerManager () |
| Timer manager the timer is registered at. | |
| float | getTriggerTime () |
| Seconds until timer elapsed. | |
| void | giveUp () |
| Give up timer if registered with a timer manager. | |
| bool | hasElapsed () |
| Timer elapsed. | |
| Timer | new (float triggerTime, bool periodic) |
| Create timer registered at default timer manager. | |
| Timer | new (TimerManager manager, float triggerTime, bool periodic) |
| Create timer registered at timer manager. | |
| void | setElapsedTime (float elapsedTime) |
| Set elapsed seconds. | |
| void | setIsPeriodic (bool periodic) |
| Set if timer is periodic. | |
| void | setTriggerTime (float triggerTime) |
| Set seconds until timer elapses. | |
Additional Inherited Members | |
| Public Attributes inherited from Dragengine.Utils.Timer | |
| float | pElapsedTime |
| bool | pIsPeriodic |
| TimerManager | pTimerManager |
| float | pTriggerTime |
Timer repeating an action.
| void Dragengine.Gui.RepeatActionTimer.fire | ( | ) |
Timer elapsed.
Reimplemented from Dragengine.Utils.Timer.
References fire(), getModifiers(), getRepeatDelay(), new(), sendEvent(), setModifiers(), setRepeatDelay(), and Dragengine.Utils.Timer.setTriggerTime().
Referenced by fire().
| ActionListener Dragengine.Gui.RepeatActionTimer.getAction | ( | ) |
| int Dragengine.Gui.RepeatActionTimer.getModifiers | ( | ) |
| float Dragengine.Gui.RepeatActionTimer.getRepeatDelay | ( | ) |
| Object Dragengine.Gui.RepeatActionTimer.getSource | ( | ) |
Source sending event.
Referenced by setRepeatDelay().
| RepeatActionTimer Dragengine.Gui.RepeatActionTimer.new | ( | ActionListener | action, |
| Object | source, | ||
| int | modifiers ) |
Create repeat action timer with 0.5s initial delay and 0.05 repeat delay.
| action | Action to repeat. |
| source | Source sending the action. |
| modifiers | Modifiers for sending event. |
References new().
Referenced by fire(), getAction(), getRepeatDelay(), new(), and new().
| RepeatActionTimer Dragengine.Gui.RepeatActionTimer.new | ( | ActionListener | action, |
| Object | source, | ||
| int | modifiers, | ||
| float | initialDelay, | ||
| float | repeatDelay ) |
| void Dragengine.Gui.RepeatActionTimer.sendEvent | ( | ) |
| void Dragengine.Gui.RepeatActionTimer.setAction | ( | ActionListener | action | ) |
Set action to repeat.
Referenced by setModifiers().
| void Dragengine.Gui.RepeatActionTimer.setModifiers | ( | int | modifiers | ) |
| void Dragengine.Gui.RepeatActionTimer.setRepeatDelay | ( | float | delay | ) |
| void Dragengine.Gui.RepeatActionTimer.setSource | ( | Object | source | ) |
Set source sending event.
Referenced by sendEvent().