#include <pathfind.hpp>
Public Member Functions | |
shortest_path_calculator (const unit &u, const team &t, const std::vector< team > &teams, const gamemap &map, bool ignore_unit=false, bool ignore_defense_=false, bool see_all=false) | |
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 team & | viewing_team_ |
const std::vector< team > & | teams_ |
const gamemap & | map_ |
const int | movement_left_ |
const int | total_movement_ |
bool const | ignore_unit_ |
bool const | ignore_defense_ |
bool | see_all_ |
Additional Inherited Members | |
Static Public Member Functions inherited from pathfind::cost_calculator | |
static double | getNoPathValue () |
Definition at line 204 of file pathfind.hpp.
pathfind::shortest_path_calculator::shortest_path_calculator | ( | const unit & | u, |
const team & | t, | ||
const std::vector< team > & | teams, | ||
const gamemap & | map, | ||
bool | ignore_unit = false , |
||
bool | ignore_defense_ = false , |
||
bool | see_all = false |
||
) |
Definition at line 732 of file pathfind.cpp.
|
virtual |
Implements pathfind::cost_calculator.
Definition at line 742 of file pathfind.cpp.
References _(), unit::defense_modifier(), pathfind::enemy_zoc(), resources::gameboard, unit::get_ability_bool(), game_board::get_visible_unit(), pathfind::cost_calculator::getNoPathValue(), ignore_defense_, ignore_unit_, loc, map_, unit::movement_cost(), movement_left_, gamemap_base::on_board(), see_all_, team::shrouded(), unit::side(), teams_, total_movement_, unit_, movetype::UNREACHABLE, VALIDATE, and viewing_team_.
|
private |
Definition at line 220 of file pathfind.hpp.
Referenced by cost().
|
private |
Definition at line 219 of file pathfind.hpp.
Referenced by cost().
|
private |
Definition at line 216 of file pathfind.hpp.
Referenced by cost().
|
private |
Definition at line 217 of file pathfind.hpp.
Referenced by cost().
|
private |
Definition at line 221 of file pathfind.hpp.
Referenced by cost().
|
private |
Definition at line 215 of file pathfind.hpp.
Referenced by cost().
|
private |
Definition at line 218 of file pathfind.hpp.
Referenced by cost().
|
private |
Definition at line 213 of file pathfind.hpp.
Referenced by cost().
|
private |
Definition at line 214 of file pathfind.hpp.
Referenced by cost().