Function which only uses terrain, ignoring shroud, enemies, etc. More...
#include <pathfind.hpp>


Public Member Functions | |
| emergency_path_calculator (const unit &u, const gamemap &map) | |
| virtual double | cost (const map_location &loc, const double so_far) const |
Private Attributes | |
| unit const & | unit_ |
| gamemap const & | map_ |
Function which only uses terrain, ignoring shroud, enemies, etc.
Required by move_unit_fake if the normal path fails.
Definition at line 247 of file pathfind.hpp.
| pathfind::emergency_path_calculator::emergency_path_calculator | ( | const unit & | u, | |
| const gamemap & | map | |||
| ) |
Definition at line 696 of file pathfind.cpp.
| double pathfind::emergency_path_calculator::cost | ( | const map_location & | loc, | |
| const double | so_far | |||
| ) | const [virtual] |
Implements pathfind::cost_calculator.
Definition at line 700 of file pathfind.cpp.
References map_, unit::movement_cost(), gamemap::on_board(), and unit_.

gamemap const& pathfind::emergency_path_calculator::map_ [private] |
Definition at line 254 of file pathfind.hpp.
Referenced by cost().
unit const& pathfind::emergency_path_calculator::unit_ [private] |
Definition at line 253 of file pathfind.hpp.
Referenced by cost().
| Generated by doxygen 1.7.1 on Fri May 25 2012 01:24:42 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |