paths Struct Reference

Object which contains all the possible locations a unit can move to, with associated best routes to those locations. More...

#include <pathfind.hpp>

List of all members.

Public Types

typedef std::map
< gamemap::location, route
routes_map

Public Member Functions

 paths ()
 paths (gamemap const &map, unit_map const &units, gamemap::location const &loc, std::vector< team > const &teams, bool force_ignore_zocs, bool allow_teleport, const team &viewing_team, int additional_turns=0, bool see_all=false, bool ignore_units=false)

Public Attributes

routes_map routes

Classes

struct  route
 Structure which holds a single route between one location and another. More...


Detailed Description

Object which contains all the possible locations a unit can move to, with associated best routes to those locations.

Definition at line 84 of file pathfind.hpp.


Member Typedef Documentation

Definition at line 123 of file pathfind.hpp.


Constructor & Destructor Documentation

paths::paths (  )  [inline]

Definition at line 86 of file pathfind.hpp.

paths::paths ( gamemap const &  map,
unit_map const &  units,
gamemap::location const &  loc,
std::vector< team > const &  teams,
bool  force_ignore_zocs,
bool  allow_teleport,
const team viewing_team,
int  additional_turns = 0,
bool  see_all = false,
bool  ignore_units = false 
)

Definition at line 203 of file pathfind.cpp.

References unit_map::end(), unit_map::find(), find_routes(), and routes.


Member Data Documentation


The documentation for this struct was generated from the following files:

Generated by doxygen 1.5.5 on 23 May 2008 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs