DustyEngine::VectorInterpolatedTask Class Reference

VectorInterpolatedTask builds off of InterpolatedTask to interpolate from one vector to another vector. More...

#include <dustyvectorinterpolatedtask.h>

Inheritance diagram for DustyEngine::VectorInterpolatedTask:

DustyEngine::InterpolatedTask DustyEngine::DummyTask DustyEngine::Task DustyEngine::MoveInterpolatedTask DustyEngine::RotateInterpolatedTask DustyEngine::ScaleInterpolatedTask DustyEngine::WaypointMoveInterpolatedTask DustyEngine::WaypointRotateInterpolatedTask DustyEngine::WaypointScaleInterpolatedTask List of all members.

Public Member Functions

 VectorInterpolatedTask ()
virtual ~VectorInterpolatedTask ()
void SetStartVector (irr::core::vector3df sv)
irr::core::vector3df GetStartVector ()
void SetEndVector (irr::core::vector3df ev)
irr::core::vector3df GetEndVector ()
irr::core::vector3df GetCurrentVector ()
void OnUpdate ()
 OnUpdate() is called by the TaskTree when the time has come to execute the task's code.

Protected Attributes

irr::core::vector3df currentVector
irr::core::vector3df startVector
irr::core::vector3df endVector

Detailed Description

VectorInterpolatedTask builds off of InterpolatedTask to interpolate from one vector to another vector.

Definition at line 11 of file dustyvectorinterpolatedtask.h.


Constructor & Destructor Documentation

DustyEngine::VectorInterpolatedTask::VectorInterpolatedTask  ) 
 

virtual DustyEngine::VectorInterpolatedTask::~VectorInterpolatedTask  )  [virtual]
 


Member Function Documentation

irr::core::vector3df DustyEngine::VectorInterpolatedTask::GetCurrentVector  )  [inline]
 

GetCurrentVector() allows you to check the current vector in the interpolation.

Returns:
Returns the current interpolation vector, which will be somewhere between start vector and end vector, depending upon how much time has passed.

Definition at line 48 of file dustyvectorinterpolatedtask.h.

irr::core::vector3df DustyEngine::VectorInterpolatedTask::GetEndVector  )  [inline]
 

GetEndVector() returns the vector which the task is using as the end point for interpolation.

Returns:
Returns the ending vector of interpolation.

Definition at line 41 of file dustyvectorinterpolatedtask.h.

irr::core::vector3df DustyEngine::VectorInterpolatedTask::GetStartVector  )  [inline]
 

GetStartVector returns the vector which is set to be the starting vector for interpolation.

Returns:
Returns the vector which the task uses as the beginning of interpolation.

Definition at line 27 of file dustyvectorinterpolatedtask.h.

void DustyEngine::VectorInterpolatedTask::OnUpdate  )  [virtual]
 

OnUpdate() is called by the TaskTree when the time has come to execute the task's code.

OnUpdate is typically the most important function. OnUpdate is only called when enough time has passed or every frame, depending upon what the priority of the task is. If you want code to execute on a time-based basis, put that code here and add the task to the tree.

Reimplemented from DustyEngine::InterpolatedTask.

Reimplemented in DustyEngine::MoveInterpolatedTask, DustyEngine::RotateInterpolatedTask, DustyEngine::ScaleInterpolatedTask, DustyEngine::WaypointMoveInterpolatedTask, DustyEngine::WaypointRotateInterpolatedTask, and DustyEngine::WaypointScaleInterpolatedTask.

void DustyEngine::VectorInterpolatedTask::SetEndVector irr::core::vector3df  ev  )  [inline]
 

SetEndVector sets the vector which should be used as the ending of interpolation.

Parameters:
ev,: The ending vector to use for interpolation.

Reimplemented in DustyEngine::WaypointMoveInterpolatedTask, DustyEngine::WaypointRotateInterpolatedTask, and DustyEngine::WaypointScaleInterpolatedTask.

Definition at line 34 of file dustyvectorinterpolatedtask.h.

void DustyEngine::VectorInterpolatedTask::SetStartVector irr::core::vector3df  sv  )  [inline]
 

SetStartVector will set the beginning vector for interpolation.

Parameters:
sv,: The beginning vector to use for interpolation.

Reimplemented in DustyEngine::WaypointMoveInterpolatedTask, DustyEngine::WaypointRotateInterpolatedTask, and DustyEngine::WaypointScaleInterpolatedTask.

Definition at line 20 of file dustyvectorinterpolatedtask.h.


Member Data Documentation

irr::core::vector3df DustyEngine::VectorInterpolatedTask::currentVector [protected]
 

Definition at line 56 of file dustyvectorinterpolatedtask.h.

irr::core::vector3df DustyEngine::VectorInterpolatedTask::endVector [protected]
 

Definition at line 59 of file dustyvectorinterpolatedtask.h.

irr::core::vector3df DustyEngine::VectorInterpolatedTask::startVector [protected]
 

Definition at line 58 of file dustyvectorinterpolatedtask.h.


The documentation for this class was generated from the following file:
Generated on Fri Jan 27 17:32:05 2006 for Dusty Engine by  doxygen 1.4.6-NO