#include <unit_types.hpp>

Definition at line 124 of file unit_types.hpp.
| unit_movement_type::unit_movement_type | ( | const config & | cfg, | |
| const unit_movement_type * | parent = NULL | |||
| ) |
Definition at line 281 of file unit_types.cpp.
References config::add_child(), cfg_, config::child(), t_string::empty(), and name().

| unit_movement_type::unit_movement_type | ( | ) |
Definition at line 317 of file unit_types.cpp.
| int unit_movement_type::damage_against | ( | const attack_type & | attack | ) | const [inline] |
Definition at line 146 of file unit_types.hpp.
References resistance_against().

| utils::string_map unit_movement_type::damage_table | ( | ) | const |
Definition at line 348 of file unit_types.cpp.
References cfg_, config::child(), damage_table(), and parent_.
Referenced by damage_table(), and help::unit_topic_generator::operator()().


| int unit_movement_type::defense_modifier | ( | const gamemap & | map, | |
| t_translation::t_terrain | terrain | |||
| ) | const [inline] |
Definition at line 142 of file unit_types.hpp.
References cfg_, defense_modifier_internal(), defenseMods_, and parent_.
Referenced by ai::testing_ai_default::average_resistance_against(), ai::testing_ai_default::recruitment_phase::average_resistance_against(), ai::ai_default_recruitment_stage::average_resistance_against(), and help::unit_topic_generator::operator()().


| const defense_range& unit_movement_type::defense_range_modifier | ( | const gamemap & | map, | |
| t_translation::t_terrain | terrain | |||
| ) | const [inline] |
Definition at line 144 of file unit_types.hpp.
References cfg_, defense_range_modifier_internal(), defenseMods_, and parent_.
Referenced by defense_range_modifier_internal().


| const config& unit_movement_type::get_cfg | ( | ) | const [inline] |
Definition at line 155 of file unit_types.hpp.
References cfg_.
Referenced by unit::advance_to().

| const unit_movement_type* unit_movement_type::get_parent | ( | ) | const [inline] |
Definition at line 156 of file unit_types.hpp.
References parent_.
Referenced by unit::advance_to().

| bool unit_movement_type::is_flying | ( | ) | const |
Definition at line 364 of file unit_types.cpp.
References cfg_, config::has_attribute(), is_flying(), and parent_.
Referenced by unit::advance_to(), and is_flying().


| int unit_movement_type::movement_cost | ( | const gamemap & | map, | |
| t_translation::t_terrain | terrain | |||
| ) | const [inline] |
Definition at line 138 of file unit_types.hpp.
References cfg_, config::child(), moveCosts_, movement_cost_internal(), and parent_.
Referenced by ai::testing_ai_default::average_resistance_against(), ai::testing_ai_default::recruitment_phase::average_resistance_against(), ai::ai_default_recruitment_stage::average_resistance_against(), pathfind::move_type_path_calculator::cost(), movement_cost_internal(), and help::unit_topic_generator::operator()().


| std::string unit_movement_type::name | ( | ) | const |
Definition at line 320 of file unit_types.cpp.
References cfg_, config::has_attribute(), name(), and parent_.
Referenced by name(), unit_type_data::set_config(), and unit_movement_type().


| int unit_movement_type::resistance_against | ( | const attack_type & | attack | ) | const |
Definition at line 328 of file unit_types.cpp.
References cfg_, config::child(), parent_, resistance_against(), and attack_type::type().
Referenced by ai::testing_ai_default::average_resistance_against(), ai::testing_ai_default::recruitment_phase::average_resistance_against(), ai::ai_default_recruitment_stage::average_resistance_against(), damage_against(), and resistance_against().


| void unit_movement_type::set_parent | ( | const unit_movement_type * | parent | ) | [inline] |
Definition at line 151 of file unit_types.hpp.
References parent_.
Referenced by unit_type::build_full().

| int unit_movement_type::vision_cost | ( | const gamemap & | map, | |
| t_translation::t_terrain | terrain | |||
| ) | const [inline] |
Definition at line 140 of file unit_types.hpp.
References cfg_, config::child(), movement_cost_internal(), parent_, and visionCosts_.

config unit_movement_type::cfg_ [private] |
Definition at line 166 of file unit_types.hpp.
Referenced by damage_table(), defense_modifier(), defense_range_modifier(), get_cfg(), is_flying(), movement_cost(), name(), resistance_against(), unit_movement_type(), and vision_cost().
defense_cache unit_movement_type::defenseMods_ [mutable, private] |
Definition at line 162 of file unit_types.hpp.
Referenced by defense_modifier(), and defense_range_modifier().
std::map<t_translation::t_terrain, int> unit_movement_type::jammingCosts_ [mutable, private] |
Definition at line 160 of file unit_types.hpp.
std::map<t_translation::t_terrain, int> unit_movement_type::moveCosts_ [mutable, private] |
Definition at line 158 of file unit_types.hpp.
Referenced by movement_cost().
const unit_movement_type* unit_movement_type::parent_ [private] |
Definition at line 164 of file unit_types.hpp.
Referenced by damage_table(), defense_modifier(), defense_range_modifier(), get_parent(), is_flying(), movement_cost(), name(), resistance_against(), set_parent(), and vision_cost().
const int unit_movement_type::UNREACHABLE = 99 [static] |
Definition at line 130 of file unit_types.hpp.
Referenced by ai::testing_ai_default::average_resistance_against(), ai::testing_ai_default::recruitment_phase::average_resistance_against(), ai::ai_default_recruitment_stage::average_resistance_against(), pathfind::find_vacant_tile(), unit::jamming_cost(), unit::movement_cost(), movement_cost_internal(), REPORT_GENERATOR(), and unit::vision_cost().
std::map<t_translation::t_terrain, int> unit_movement_type::visionCosts_ [mutable, private] |
Definition at line 159 of file unit_types.hpp.
Referenced by vision_cost().
| Generated by doxygen 1.7.1 on Thu May 24 2012 01:17:39 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |