shortest_path_calculator Struct Reference

#include <pathfind.hpp>

Inheritance diagram for shortest_path_calculator:

Inheritance graph
[legend]
Collaboration diagram for 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)
virtual double cost (const gamemap::location &src, const gamemap::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_


Detailed Description

Definition at line 139 of file pathfind.hpp.


Constructor & Destructor Documentation

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 
)

Definition at line 283 of file pathfind.cpp.


Member Function Documentation

double shortest_path_calculator::cost ( const gamemap::location src,
const gamemap::location loc,
const double  so_far 
) const [virtual]


Member Data Documentation

Definition at line 147 of file pathfind.hpp.

Referenced by cost().

Definition at line 148 of file pathfind.hpp.

Referenced by cost().

Definition at line 149 of file pathfind.hpp.

Referenced by cost().

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

Definition at line 150 of file pathfind.hpp.

Referenced by cost().

Definition at line 151 of file pathfind.hpp.

Referenced by cost().

Definition at line 152 of file pathfind.hpp.

Referenced by cost().

Definition at line 153 of file pathfind.hpp.

Referenced by cost().

Definition at line 154 of file pathfind.hpp.

Referenced by cost().

Definition at line 155 of file pathfind.hpp.

Referenced by cost().


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