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 |
Public Member Functions inherited from pathfind::cost_calculator | |
cost_calculator () | |
virtual | ~cost_calculator () |
Private Attributes | |
const unit & | unit_ |
const gamemap & | map_ |
Additional Inherited Members | |
Static Public Member Functions inherited from pathfind::cost_calculator | |
static double | getNoPathValue () |
Function which only uses terrain, ignoring shroud, enemies, etc.
Required by move_unit_fake if the normal path fails.
Definition at line 241 of file pathfind.hpp.
pathfind::emergency_path_calculator::emergency_path_calculator | ( | const unit & | u, |
const gamemap & | map | ||
) |
Definition at line 857 of file pathfind.cpp.
|
virtual |
Implements pathfind::cost_calculator.
Definition at line 861 of file pathfind.cpp.
References loc, map_, unit::movement_cost(), gamemap_base::on_board(), and unit_.
|
private |
Definition at line 248 of file pathfind.hpp.
Referenced by cost().
|
private |
Definition at line 247 of file pathfind.hpp.
Referenced by cost().