TiltDropEffect Class Reference

Effect that falls in a downward direction. More...

Inheritance diagram for TiltDropEffect:
Effect

List of all members.

Public Member Functions

 TiltDropEffect ()
 Constructor.
 TiltDropEffect (Widget widget)
 Constructor.

Static Public Member Functions

static TiltDropEffect CreateAndStart (Widget widget)
 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 DropDirection [get, set]
 Obtains and sets the falling direction (radian).
float Speed [get, set]
 Obtains and sets the effect speed.

Detailed Description

Effect that falls in a downward direction.


Constructor & Destructor Documentation

TiltDropEffect ( Widget  widget)

Constructor.

Parameters:
widgetEffect-target widget

Member Function Documentation

static TiltDropEffect CreateAndStart ( Widget  widget) [static]

Creates an instance and starts the effect.

Parameters:
widgetEffect-target widget
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 DropDirection [get, set]

Obtains and sets the falling direction (radian).

Downward direction is 0.

float Speed [get, set]

Obtains and sets the effect speed.

1.0 is the standard speed.