Public Member Functions | Private Attributes

pathfind::shortest_path_calculator Struct Reference

#include <pathfind.hpp>

Inheritance diagram for pathfind::shortest_path_calculator:
Inheritance graph
[legend]
Collaboration diagram for pathfind::shortest_path_calculator:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 shortest_path_calculator (const unit &u, const team &t, const unit_map &units, const std::vector< team > &teams, const gamemap &map, bool ignore_unit=false, bool ignore_defense_=false, bool see_all=false)
virtual double cost (const map_location &loc, const double so_far) const

Private Attributes

unit const & unit_
team const & viewing_team_
unit_map const & units_
std::vector< team > const & teams_
gamemap const & map_
int const movement_left_
int const total_movement_
bool const ignore_unit_
bool const ignore_defense_
bool see_all_

Detailed Description

Definition at line 209 of file pathfind.hpp.


Constructor & Destructor Documentation

pathfind::shortest_path_calculator::shortest_path_calculator ( const unit u,
const team t,
const unit_map units,
const std::vector< team > &  teams,
const gamemap map,
bool  ignore_unit = false,
bool  ignore_defense_ = false,
bool  see_all = false 
)

Definition at line 572 of file pathfind.cpp.


Member Function Documentation

double pathfind::shortest_path_calculator::cost ( const map_location loc,
const double  so_far 
) const [virtual]

Member Data Documentation

Definition at line 226 of file pathfind.hpp.

Referenced by cost().

Definition at line 225 of file pathfind.hpp.

Referenced by cost().

Definition at line 222 of file pathfind.hpp.

Referenced by cost().

Definition at line 223 of file pathfind.hpp.

Referenced by cost().

Definition at line 227 of file pathfind.hpp.

Referenced by cost().

std::vector<team> const& pathfind::shortest_path_calculator::teams_ [private]

Definition at line 221 of file pathfind.hpp.

Referenced by cost().

Definition at line 224 of file pathfind.hpp.

Referenced by cost().

Definition at line 218 of file pathfind.hpp.

Referenced by cost().

Definition at line 220 of file pathfind.hpp.

Definition at line 219 of file pathfind.hpp.

Referenced by cost().


The documentation for this struct was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated by doxygen 1.7.1 on Fri May 25 2012 01:24:42 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs