#include <pathfind.hpp>


Public Member Functions | |
| move_type_path_calculator (const unit_movement_type &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 |
Private Attributes | |
| const unit_movement_type & | movement_type_ |
| const int | movement_left_ |
| const int | total_movement_ |
| team const & | viewing_team_ |
| gamemap const & | map_ |
Definition at line 230 of file pathfind.hpp.
| pathfind::move_type_path_calculator::move_type_path_calculator | ( | const unit_movement_type & | mt, | |
| int | movement_left, | |||
| int | total_movement, | |||
| const team & | t, | |||
| const gamemap & | map | |||
| ) |
Definition at line 662 of file pathfind.cpp.
| double pathfind::move_type_path_calculator::cost | ( | const map_location & | loc, | |
| const double | so_far | |||
| ) | const [virtual] |
Implements pathfind::cost_calculator.
Definition at line 668 of file pathfind.cpp.
References pathfind::cost_calculator::getNoPathValue(), map_, unit_movement_type::movement_cost(), movement_left_, movement_type_, gamemap::on_board(), team::shrouded(), gui2::terrain, total_movement_, and viewing_team_.

gamemap const& pathfind::move_type_path_calculator::map_ [private] |
Definition at line 240 of file pathfind.hpp.
Referenced by cost().
const int pathfind::move_type_path_calculator::movement_left_ [private] |
Definition at line 237 of file pathfind.hpp.
Referenced by cost().
const unit_movement_type& pathfind::move_type_path_calculator::movement_type_ [private] |
Definition at line 236 of file pathfind.hpp.
Referenced by cost().
const int pathfind::move_type_path_calculator::total_movement_ [private] |
Definition at line 238 of file pathfind.hpp.
Referenced by cost().
team const& pathfind::move_type_path_calculator::viewing_team_ [private] |
Definition at line 239 of file pathfind.hpp.
Referenced by cost().
| Generated by doxygen 1.7.1 on Fri May 25 2012 01:24:42 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |