Drag[en]gine Script Module DragonScript Script API  1.0
TimerBlock Class Reference
Inheritance diagram for TimerBlock:
Timer

Public Member Functions

void fire ()
 
TimerBlock new (float triggerTime, bool periodic, Block blockFire)
 
TimerBlock new (TimerManager manager, float triggerTime, bool periodic, Block blockFire)
 
- 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

A timer running a block.

Member Function Documentation

§ fire()

void fire ( )

The trigger time has been elapsed. This is called after a non periodic timer has been removed from the timer manager.

§ new() [1/2]

TimerBlock new ( float  triggerTime,
bool  periodic,
Block  blockFire 
)

Creates a new timer registering at the default timer manager beeing a static one.

§ new() [2/2]

TimerBlock new ( TimerManager  manager,
float  triggerTime,
bool  periodic,
Block  blockFire 
)

Creates a new timer registering at the given timer manager.


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