Pathfinder::IDestinationCost< NODETYPE, COSTTYPE > Class Template Reference

Functor interface to compute estimated movement cost from one state to the goal state. More...

#include <pathfinder.h>

List of all members.

Public Member Functions

virtual const COSTTYPE operator() (const NODETYPE &node, const NODETYPE &goal)=0
 Computes estimated movement cost from node to goal.


Detailed Description

template<class NODETYPE, class COSTTYPE = double>
class Pathfinder::IDestinationCost< NODETYPE, COSTTYPE >

Functor interface to compute estimated movement cost from one state to the goal state.

Template Parameters:
NODETYPE Defines a state of the pathfinder, typically an x,y coordinate for tile based games
COSTTYPE The cost type of moving from state to state, typically a float or double

Member Function Documentation

template<class NODETYPE , class COSTTYPE = double>
virtual const COSTTYPE Pathfinder::IDestinationCost< NODETYPE, COSTTYPE >::operator() ( const NODETYPE &  node,
const NODETYPE &  goal 
) [pure virtual]

Computes estimated movement cost from node to goal.

This method computes an estimated movement cost from one state to another.

Parameters:
node The starting state
goal The final state
Returns:
The estimated cost of changing the state from node to goal


The documentation for this class was generated from the following file:

Generated on Mon Dec 29 19:08:10 2008 by  doxygen 1.5.7.1