#include <th_pathfind.h>
|
| | object_visitor (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 | visit_objects (const level_map *pMap, int iStartX, int iStartY, object_type eTHOB, int iMaxDistance, lua_State *L, int iVisitFunction, bool anyObjectType) |
| |
| | 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) |
| |
◆ object_visitor()
◆ 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.
◆ visit_objects()
◆ max_distance
| int object_visitor::max_distance |
◆ target
◆ target_any_object_type
| bool object_visitor::target_any_object_type |
◆ visit_function_index
| int object_visitor::visit_function_index |
The documentation for this class was generated from the following files: