#include <pathfinder.h>
Public Member Functions | |
| virtual const COSTTYPE | operator() (const NODETYPE &start, const NODETYPE &end)=0 |
| Computes movement cost from start to end. | |
| 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 |
| 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.
| start | The initial state | |
| end | The final state |
1.5.7.1