dtAI::AStarCostFunc< _DataType, _CostType > Class Template Reference

AStarCostFunc is a function that generates a cost between two nodes derive this class and implement operator() with your custom data type. More...

#include <astarcostfunc.h>

Inheritance diagram for dtAI::AStarCostFunc< _DataType, _CostType >:

dtAI::WaypointCostFunc

List of all members.

Public Types

typedef _DataType data_type
typedef _CostType Real

Public Member Functions

 AStarCostFunc ()
virtual ~AStarCostFunc ()
virtual Real operator() (data_type pFrom, data_type pTo) const =0


Detailed Description

template<class _DataType, class _CostType>
class dtAI::AStarCostFunc< _DataType, _CostType >

AStarCostFunc is a function that generates a cost between two nodes derive this class and implement operator() with your custom data type.

The return must be a scalar value.


Member Typedef Documentation

template<class _DataType, class _CostType>
typedef _DataType dtAI::AStarCostFunc< _DataType, _CostType >::data_type

template<class _DataType, class _CostType>
typedef _CostType dtAI::AStarCostFunc< _DataType, _CostType >::Real


Constructor & Destructor Documentation

template<class _DataType, class _CostType>
dtAI::AStarCostFunc< _DataType, _CostType >::AStarCostFunc (  )  [inline]

template<class _DataType, class _CostType>
virtual dtAI::AStarCostFunc< _DataType, _CostType >::~AStarCostFunc (  )  [inline, virtual]


Member Function Documentation

template<class _DataType, class _CostType>
virtual Real dtAI::AStarCostFunc< _DataType, _CostType >::operator() ( data_type  pFrom,
data_type  pTo 
) const [pure virtual]


http://www.delta3d.org
2.0.0 generated 14 Feb 2008