This module contains various pathfinding functions and utilities. More...
#include "map_location.hpp"#include <map>#include <list>#include <functional>

Go to the source code of this file.
Classes | |
| struct | pathfind::cost_calculator |
| struct | pathfind::paths |
| Object which contains all the possible locations a unit can move to, with associated best routes to those locations. More... | |
| struct | pathfind::paths::step |
| struct | pathfind::paths::dest_vect |
| Ordered vector of possible destinations. More... | |
| struct | pathfind::vision_path |
| A refinement of paths for use when calculating vision. More... | |
| struct | pathfind::jamming_path |
| A refinement of paths for use when calculating jamming. More... | |
| struct | pathfind::plain_route |
| Structure which holds a single route between one location and another. More... | |
| struct | pathfind::marked_route |
| Structure which holds a single route and marks for special events. More... | |
| struct | pathfind::marked_route::mark |
| struct | pathfind::shortest_path_calculator |
| struct | pathfind::move_type_path_calculator |
| struct | pathfind::emergency_path_calculator |
| Function which only uses terrain, ignoring shroud, enemies, etc. More... | |
| struct | pathfind::dummy_path_calculator |
| Function which doesn't take anything into account. More... | |
Namespaces | |
| namespace | pathfind |
Enumerations | |
| enum | pathfind::VACANT_TILE_TYPE { pathfind::VACANT_CASTLE, pathfind::VACANT_ANY } |
| enum | pathfind::PATH_TYPE { pathfind::MOVE, pathfind::VISION, pathfind::JAMMING } |
Functions | |
| map_location | pathfind::find_vacant_tile (const gamemap &map, const unit_map &un, const map_location &loc, VACANT_TILE_TYPE vacancy=VACANT_ANY, const unit *pass_check=NULL) |
| Function which will find a location on the board that is as near to loc as possible, but which is unoccupied by any units. | |
| bool | pathfind::enemy_zoc (team const ¤t_team, map_location const &loc, team const &viewing_team, bool see_all=false) |
| Determines if a given location is in an enemy zone of control. | |
| plain_route | pathfind::a_star_search (map_location const &src, map_location const &dst, double stop_at, const cost_calculator *costCalculator, const size_t parWidth, const size_t parHeight, const teleport_map *teleports=NULL) |
| marked_route | pathfind::mark_route (const plain_route &rt) |
| Add marks on a route rt assuming that the unit located at the first hex of rt travels along it. | |
This module contains various pathfinding functions and utilities.
Definition in file pathfind.hpp.
| Generated by doxygen 1.7.1 on Fri May 25 2012 01:08:37 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |