#include <pathfind.hpp>
Public Member Functions | |
emergency_path_calculator (const unit &u, const gamemap &map) | |
virtual double | cost (const gamemap::location &src, const gamemap::location &loc, const double so_far) const |
Private Attributes | |
unit const & | unit_ |
gamemap const & | map_ |
Required by move_unit_fake if the normal path fails.
Definition at line 160 of file pathfind.hpp.
Definition at line 368 of file pathfind.cpp.
double emergency_path_calculator::cost | ( | const gamemap::location & | src, | |
const gamemap::location & | loc, | |||
const double | so_far | |||
) | const [virtual] |
Implements cost_calculator.
Definition at line 373 of file pathfind.cpp.
References map_, unit::movement_cost(), gamemap::on_board(), and unit_.
unit const& emergency_path_calculator::unit_ [private] |
gamemap const& emergency_path_calculator::map_ [private] |
Generated by doxygen 1.5.5 on 23 May 2008 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |