#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 | |
unit const & | unit_ |
team const & | viewing_team_ |
std::vector< team > const & | teams_ |
gamemap const & | map_ |
int const | movement_left_ |
int const | 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 694 of file pathfind.cpp.
|
virtual |
Implements pathfind::cost_calculator.
Definition at line 704 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_, map_, unit::movement_cost(), movement_left_, gamemap::on_board(), see_all_, team::shrouded(), unit::side(), teams_, gui2::terrain, total_movement_, unit_, 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().