#include <pathfind.hpp>
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_ |
Definition at line 139 of file pathfind.hpp.
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.
double shortest_path_calculator::cost | ( | const gamemap::location & | src, | |
const gamemap::location & | loc, | |||
const double | so_far | |||
) | const [virtual] |
Implements cost_calculator.
Definition at line 293 of file pathfind.cpp.
References _, unit::defense_modifier(), unit_map::end(), enemy_zoc(), find_visible_unit(), unit::get_ability_bool(), cost_calculator::getNoPathValue(), ignore_defense_, ignore_unit_, map_, unit::movement_cost(), movement_left_, gamemap::on_board(), team::shrouded(), unit::side(), teams_, total_movement_, unit_, units_, VALIDATE, and viewing_team_.
unit const& shortest_path_calculator::unit_ [private] |
team const& shortest_path_calculator::viewing_team_ [private] |
unit_map const& shortest_path_calculator::units_ [private] |
std::vector<team> const& shortest_path_calculator::teams_ [private] |
gamemap const& shortest_path_calculator::map_ [private] |
int const shortest_path_calculator::movement_left_ [private] |
int const shortest_path_calculator::total_movement_ [private] |
bool const shortest_path_calculator::ignore_unit_ [private] |
bool const shortest_path_calculator::ignore_defense_ [private] |
Generated by doxygen 1.5.5 on 23 May 2008 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |