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

Functor interface to compute exact movement cost from one state to another. More...

#include <pathfinder.h>

List of all members.

Public Member Functions

virtual const COSTTYPE operator() (const NODETYPE &start, const NODETYPE &end)=0
 Computes movement cost from start to end.


Detailed Description

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

Functor interface to compute exact movement cost from one state to another.

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::IMoveCost< NODETYPE, COSTTYPE >::operator() ( const NODETYPE &  start,
const NODETYPE &  end 
) [pure virtual]

Computes movement cost from start to end.

This method computes the exact movement cost from one state to another.

Parameters:
start The initial state
end The final state
Returns:
The exact cost of changing the state from start to end


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