#include <th_pathfind.h>
|
| | basic_pathfinder (pathfinder *pf) |
| |
| int | guess_distance (path_node *pNode) override |
| | Guess distance to the destination for pNode.
|
| |
| bool | try_node (path_node *pNode, map_tile_flags flags, path_node *pNeighbour, travel_direction direction) override |
| | Try the pNeighbour node.
|
| |
| bool | find_path (const level_map *pMap, int iStartX, int iStartY, int iEndX, int iEndY) |
| |
| | abstract_pathfinder (pathfinder *pf) |
| |
| virtual | ~abstract_pathfinder ()=default |
| |
| path_node * | init (const level_map *pMap, int iStartX, int iStarty) |
| | Initialize the path finder.
|
| |
| bool | search_neighbours (path_node *pNode, map_tile_flags flags, int iWidth) |
| | Expand the pNode to its neighbours.
|
| |
| void | record_neighbour_if_passable (path_node *pNode, map_tile_flags neighbour_flags, bool passable, path_node *pNeighbour) |
| |
◆ basic_pathfinder()
| basic_pathfinder::basic_pathfinder |
( |
pathfinder * |
pf | ) |
|
|
inlineexplicit |
◆ find_path()
◆ guess_distance()
◆ try_node()
Try the pNeighbour node.
- Parameters
-
| pNode | Source node. |
| flags | Flags of the node. |
| pNeighbour | Neighbour of pNode to try. |
| direction | Direction of travel. |
- Returns
- Whether the search is done.
Implements abstract_pathfinder.
◆ destination_x
| int basic_pathfinder::destination_x |
X coordinate of the destination of the path.
◆ destination_y
| int basic_pathfinder::destination_y |
Y coordinate of the destination of the path.
The documentation for this class was generated from the following files: