Drag[en]gine Script Module DragonScript Script API  1.0
RepeatActionTimer Class Reference

Timer repeating an action. More...

Inheritance diagram for RepeatActionTimer:
Timer

Public Member Functions

void fire ()
 Timer elapsed. More...
 
ActionListener getAction ()
 Action to repeat. More...
 
int getModifiers ()
 Modifiers for sending event. More...
 
float getRepeatDelay ()
 Repeat delay in seconds. More...
 
Object getSource ()
 Source sending event. More...
 
RepeatActionTimer new (ActionListener action, Object source, int modifiers)
 Create repeat action timer with 0.5s initial delay and 0.05 repeat delay. More...
 
RepeatActionTimer new (ActionListener action, Object source, int modifiers, float initialDelay, float repeatDelay)
 Create repeat action timer. More...
 
void sendEvent ()
 Send event. More...
 
void setAction (ActionListener action)
 Set action to repeat. More...
 
void setModifiers (int modifiers)
 Set modifiers for sending event. More...
 
void setRepeatDelay (float delay)
 Set repeat delay in seconds. More...
 
void setSource (Object source)
 Set source sending event. More...
 
- Public Member Functions inherited from Timer
void advance (float elapsed)
 
void fire ()
 
float getElapsedTime ()
 
bool getIsPeriodic ()
 
float getRemainingTime ()
 
TimerManager getTimerManager ()
 
float getTriggerTime ()
 
void giveUp ()
 
Timer new (float triggerTime, bool periodic)
 
Timer new (TimerManager manager, float triggerTime, bool periodic)
 
void setElapsedTime (float elapsedTime)
 
void setIsPeriodic (bool periodic)
 
void setTriggerTime (float triggerTime)
 

Detailed Description

Timer repeating an action.

Member Function Documentation

§ fire()

void fire ( )

Timer elapsed.

§ getAction()

ActionListener getAction ( )

Action to repeat.

§ getModifiers()

int getModifiers ( )

Modifiers for sending event.

§ getRepeatDelay()

float getRepeatDelay ( )

Repeat delay in seconds.

§ getSource()

Object getSource ( )

Source sending event.

§ new() [1/2]

RepeatActionTimer new ( ActionListener  action,
Object  source,
int  modifiers 
)

Create repeat action timer with 0.5s initial delay and 0.05 repeat delay.

Parameters
actionAction to repeat.
sourceSource sending the action.
modifiersModifiers for sending event.

§ new() [2/2]

RepeatActionTimer new ( ActionListener  action,
Object  source,
int  modifiers,
float  initialDelay,
float  repeatDelay 
)

Create repeat action timer.

Parameters
actionAction to repeat.
sourceSource sending the action.
modifiersModifiers for sending event.
initialDelayDelay before repeating actions in seconds.
repeatDelayDelay between repeated actions in seconds.

§ sendEvent()

void sendEvent ( )

Send event.

§ setAction()

void setAction ( ActionListener  action)

Set action to repeat.

§ setModifiers()

void setModifiers ( int  modifiers)

Set modifiers for sending event.

§ setRepeatDelay()

void setRepeatDelay ( float  delay)

Set repeat delay in seconds.

§ setSource()

void setSource ( Object  source)

Set source sending event.


The documentation for this class was generated from the following file: