class MoveTransition: public Transition
Implements a transition that moves the specified data element by the given distances along the X and Y axes.
Inherits from Transition.
MoveTransition | Implements a transition that moves the specified data element by the given distances along the X and Y axes. |
Functions | |
MoveTransition | Initializes the object. |
~MoveTransition | Releases all allocated resources. |
Update | Updates the transition by executing one moving step. |
Complete | Checks if the transition is completed. |
MoveTransition( AlterableObject * pAlterableObject, float fDeltaLeft, float fDeltaTop, float fDeltaBottom, bool bSlowInSlowOut, int iMoveSteps = MOVE_STEPS )
Initializes the object.
pAlterableObject | Pointer to the alterable object to be altered. |
fDeltaLeft | Total horizontal distance. |
fDeltaTop | Total vertical distance according to the upper vertices. |
fDeltaBottom | Total vertical distance according to the lower vertices. Usually the same as fDeltaTop. |
bSlowInSlowOut | Indicates if the movement shall be performed as slow-in-slow-out or with constant speed. |
iTotalSteps | Duration of the transition in steps. Default value is MOVE_STEPS. |
void Update()
Updates the transition by executing one moving step. Inherited from Transition.
bool Complete()
Checks if the transition is completed. Inherited from Transition.
A boolean value indicating if the transition is completed.
Implements a transition that moves the specified data element by the given distances along the X and Y axes.
class MoveTransition: public Transition
Initializes the object.
MoveTransition( AlterableObject * pAlterableObject, float fDeltaLeft, float fDeltaTop, float fDeltaBottom, bool bSlowInSlowOut, int iMoveSteps = MOVE_STEPS )
Releases all allocated resources.
~MoveTransition()
Updates the transition by executing one moving step.
void Update()
Checks if the transition is completed.
bool Complete()
Abstract class that implements the skeleton of a transition.
class Transition