#include <pathfind.hpp>
Public Member Functions | |
move_type_path_calculator (const movetype &mt, int movement_left, int total_movement, const team &t, 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 movetype & | movement_type_ |
const int | movement_left_ |
const int | total_movement_ |
const team & | viewing_team_ |
const gamemap & | map_ |
Additional Inherited Members | |
Static Public Member Functions inherited from pathfind::cost_calculator | |
static double | getNoPathValue () |
Definition at line 224 of file pathfind.hpp.
pathfind::move_type_path_calculator::move_type_path_calculator | ( | const movetype & | mt, |
int | movement_left, | ||
int | total_movement, | ||
const team & | t, | ||
const gamemap & | map | ||
) |
Definition at line 823 of file pathfind.cpp.
|
virtual |
Implements pathfind::cost_calculator.
Definition at line 829 of file pathfind.cpp.
References pathfind::cost_calculator::getNoPathValue(), loc, map_, movetype::movement_cost(), movement_left_, movement_type_, gamemap_base::on_board(), team::shrouded(), total_movement_, and viewing_team_.
|
private |
Definition at line 234 of file pathfind.hpp.
Referenced by cost().
|
private |
Definition at line 231 of file pathfind.hpp.
Referenced by cost().
|
private |
Definition at line 230 of file pathfind.hpp.
Referenced by cost().
|
private |
Definition at line 232 of file pathfind.hpp.
Referenced by cost().
|
private |
Definition at line 233 of file pathfind.hpp.
Referenced by cost().