DelayedExecutor Class Reference

Effect processed after a certain time has elapsed. More...

Inheritance diagram for DelayedExecutor:
Effect

List of all members.

Public Member Functions

 DelayedExecutor ()
 Constructor.
 DelayedExecutor (float time, Action action)
 Constructor.

Static Public Member Functions

static DelayedExecutor CreateAndStart (float time, Action action)
 Creates an instance and starts the effect.

Protected Member Functions

override void OnStart ()
 Start processing.
override EffectUpdateResponse OnUpdate (float elapsedTime)
 Update processing.
override void OnStop ()
 Stop processing.

Properties

float Time [get, set]
 Obtains and sets the delay time.
Action Action [get, set]
 Obtains and sets the delegate of the running process.

Detailed Description

Effect processed after a certain time has elapsed.


Constructor & Destructor Documentation

DelayedExecutor ( float  time,
Action  action 
)

Constructor.

Parameters:
timeDelay time (ms)
actionRunning process

Member Function Documentation

static DelayedExecutor CreateAndStart ( float  time,
Action  action 
) [static]

Creates an instance and starts the effect.

Parameters:
timeDelay time (ms)
actionRunning process
Returns:
Effect instance
override EffectUpdateResponse OnUpdate ( float  elapsedTime) [protected, virtual]

Update processing.

Parameters:
elapsedTimeElapsed time from previous update (ms)
Returns:
Response of effect update

Implements Effect.


Property Documentation

float Time [get, set]

Obtains and sets the delay time.

(ms) The process is executed at the first frame after the set time has elapsed. When 0, it is executed at the next frame.