PathFinderCell Class Reference
[AI]
Public Member Functions | |
| virtual float | CalculateCost (const PathFinderAgent *agent, const PathFinderCell *to) const =0 |
| virtual float | EstimateCost (const PathFinderAgent *agent, const PathFinderCell *to) const =0 |
| virtual int | GetNeighbourCount (const PathFinderAgent *agent) const =0 |
| virtual const PathFinderCell * | GetNeighbour (const PathFinderAgent *agent, int index) const =0 |
Detailed Description
Definition at line 20 of file PathFinderCell.h.
Member Function Documentation
| virtual float PathFinderCell::CalculateCost | ( | const PathFinderAgent * | agent, | |
| const PathFinderCell * | to | |||
| ) | const [pure virtual] |
This function returns the cost of moving the specified agent from this cell to the specified cell, and requires the start and end cells to be adjacent
| virtual float PathFinderCell::EstimateCost | ( | const PathFinderAgent * | agent, | |
| const PathFinderCell * | to | |||
| ) | const [pure virtual] |
This function returns an estimate of how much it would cost to move the specified agent from this cell to the specified cell, and does not requires the start and end cells to be adjacent
| virtual int PathFinderCell::GetNeighbourCount | ( | const PathFinderAgent * | agent | ) | const [pure virtual] |
This function returns the number of cells adjacent to this cell. For a normal tilebased game, it's usually 4, for a hex game it'd be 6.
| virtual const PathFinderCell* PathFinderCell::GetNeighbour | ( | const PathFinderAgent * | agent, | |
| int | index | |||
| ) | const [pure virtual] |
This function returns one of the neighbours of this cell (which one depends on the index)
Reproduction/republishing of any material on this site without permission is strictly prohibited.
