

Public Member Functions | |
| move_cost_calculator (const unit &u, const gamemap &map, const unit_map &units, const move_map &enemy_dstsrc) | |
| double | cost (const map_location &loc, const double) const |
Private Attributes | |
| const unit & | unit_ |
| const gamemap & | map_ |
| const unit_map & | units_ |
| const move_map & | enemy_dstsrc_ |
| const int | max_moves_ |
| const bool | avoid_enemies_ |
Definition at line 47 of file ca_testing_move_to_targets.cpp.
| ai::testing_ai_default::move_cost_calculator::move_cost_calculator | ( | const unit & | u, | |
| const gamemap & | map, | |||
| const unit_map & | units, | |||
| const move_map & | enemy_dstsrc | |||
| ) | [inline] |
Definition at line 49 of file ca_testing_move_to_targets.cpp.
| double ai::testing_ai_default::move_cost_calculator::cost | ( | const map_location & | loc, | |
| const | double | |||
| ) | const [inline, virtual] |
Implements pathfind::cost_calculator.
Definition at line 57 of file ca_testing_move_to_targets.cpp.
References avoid_enemies_, unit_map::count(), enemy_dstsrc_, pathfind::cost_calculator::getNoPathValue(), map_, max_moves_, unit::movement_cost(), gui2::terrain, unit_, and units_.

const bool ai::testing_ai_default::move_cost_calculator::avoid_enemies_ [private] |
Definition at line 85 of file ca_testing_move_to_targets.cpp.
Referenced by cost().
const move_map& ai::testing_ai_default::move_cost_calculator::enemy_dstsrc_ [private] |
Definition at line 83 of file ca_testing_move_to_targets.cpp.
Referenced by cost().
const gamemap& ai::testing_ai_default::move_cost_calculator::map_ [private] |
Definition at line 81 of file ca_testing_move_to_targets.cpp.
Referenced by cost().
const int ai::testing_ai_default::move_cost_calculator::max_moves_ [private] |
Definition at line 84 of file ca_testing_move_to_targets.cpp.
Referenced by cost().
const unit& ai::testing_ai_default::move_cost_calculator::unit_ [private] |
Definition at line 80 of file ca_testing_move_to_targets.cpp.
Referenced by cost().
const unit_map& ai::testing_ai_default::move_cost_calculator::units_ [private] |
Definition at line 82 of file ca_testing_move_to_targets.cpp.
Referenced by cost().
| Generated by doxygen 1.7.1 on Fri May 25 2012 01:17:51 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |