5 #ifndef VART_BASEACTION_H
6 #define VART_BASEACTION_H
79 virtual void Move() = 0;
void SetCyclic(bool value)
float timeToLive
Time (in seconds) to auto deactivate.
virtual void Deactivate()
Deactivate now.
Header file for V-ART class "Time".
float lastPositionIndex
Position index of last update.
Animations. Transformations acting through time. Abstract class.
float speedModifier
Speed modifier.
static std::list< Initializer * > initializers
List of action initializers.
virtual void Initialize()=0
float positionIndex
Current position index.
virtual void Move()=0
Make the action update its targets.
CallBack * callbackPtr
Termination callback.
BaseAction()
Creates an action with sane defaults.
float duration
Duration in seconds.
Time lastUpdateTime
Time of last update.
void SetDuration(float seconds)
bool active
Whether the action is currently active (changing its target).
static unsigned int MoveAllActive()
Moves all active actions.
static std::list< BaseAction * > activeInstances
List of active actions.
An object that is activated in a callback-like scheme.
bool cyclic
Whether the action restarts upon termination.
void SetSpeed(float newSpeed)
virtual void Activate()
Activates the action.
virtual void ComputePositionIndex(bool *cycled)
Computes current position index.
Elapsed time representation.