JumpFlipEffect Class Reference

Effect that jumps forward, flips, and then changes. More...

Inheritance diagram for JumpFlipEffect:
Effect

List of all members.

Public Member Functions

 JumpFlipEffect ()
 Constructor.
 JumpFlipEffect (Widget currentWidget, Widget nextWidget)
 Constructor.

Static Public Member Functions

static JumpFlipEffect CreateAndStart (Widget currentWidget, Widget nextWidget)
 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

Widget NextWidget [get, set]
 Obtains and sets the next widget to be displayed.
int Revolution [get, set]
 Obtains and sets the number of rotations.
float JumpHeight [get, set]
 Obtains and sets the height of the jump.
float Time [get, set]
 Obtains and sets the effect time.
float JumpDelay [get, set]
 Obtains and sets the time until rotation starts.
float ToDegreeDelay [get, set]
 Obtains and sets the angle when rotation starts.
JumpFlipEffectAxis RotationAxis [get, set]
 Obtains and sets the rotation axis.

Detailed Description

Effect that jumps forward, flips, and then changes.

The front is the old widget and the back is the new widget. Each has the same size. It can also fall to a new position while jumping and flipping.


Constructor & Destructor Documentation

JumpFlipEffect ( Widget  currentWidget,
Widget  nextWidget 
)

Constructor.

Parameters:
currentWidgetWidget being displayed
nextWidgetNext widget to be displayed

Member Function Documentation

static JumpFlipEffect CreateAndStart ( Widget  currentWidget,
Widget  nextWidget 
) [static]

Creates an instance and starts the effect.

Parameters:
currentWidgetWidget being displayed
nextWidgetNext widget to be displayed
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

int Revolution [get, set]

Obtains and sets the number of rotations.

(Half rotation = 1)