#include "unit_animation.hpp"#include "portrait.hpp"#include "race.hpp"

Go to the source code of this file.
-file theme.hpp
-file unit.hpp
Definition in file unit_types.hpp.
| typedef std::map<t_translation::t_terrain, defense_range> defense_cache |
Definition at line 108 of file unit_types.hpp.
| typedef std::map<std::string,unit_movement_type> movement_type_map |
Definition at line 169 of file unit_types.hpp.
| void adjust_profile | ( | std::string & | small, | |
| std::string & | big, | |||
| std::string const & | def | |||
| ) |
Definition at line 1433 of file unit_types.cpp.
References file_exists().
Referenced by unit::add_modification(), unit_type::build_help_index(), and unit::unit().


| int defense_modifier_internal | ( | defense_cache & | defense_mods, | |
| const config & | cfg, | |||
| const unit_movement_type * | parent, | |||
| const gamemap & | map, | |||
| t_translation::t_terrain | terrain, | |||
| int | recurse_count = 0 | |||
| ) |
Definition at line 541 of file unit_types.cpp.
References defense_range_modifier_internal(), defense_range::max_, and defense_range::min_.
Referenced by unit_movement_type::defense_modifier(), and unit::defense_modifier().


| const defense_range& defense_range_modifier_internal | ( | defense_cache & | defense_mods, | |
| const config & | cfg, | |||
| const unit_movement_type * | parent, | |||
| const gamemap & | map, | |||
| t_translation::t_terrain | terrain, | |||
| int | recurse_count = 0 | |||
| ) |
Definition at line 454 of file unit_types.cpp.
References check(), config::child(), unit_movement_type::defense_range_modifier(), defense_range_modifier_internal(), ERR_CF, gamemap::get_terrain_info(), defense_range::max_, defense_range::min_, t_translation::MINUS, t_translation::PLUS, gamemap::underlying_def_terrain(), t_translation::write_terrain_code(), and WRN_CF.
Referenced by defense_modifier_internal(), unit_movement_type::defense_range_modifier(), and defense_range_modifier_internal().


| int movement_cost_internal | ( | std::map< t_translation::t_terrain, int > & | move_costs, | |
| const config & | cfg, | |||
| const unit_movement_type * | parent, | |||
| const gamemap & | map, | |||
| t_translation::t_terrain | terrain, | |||
| int | recurse_count = 0 | |||
| ) |
Definition at line 372 of file unit_types.cpp.
References ERR_CF, config::get(), gamemap::get_terrain_info(), t_translation::MINUS, unit_movement_type::movement_cost(), movement_cost_internal(), t_translation::PLUS, gamemap::underlying_mvt_terrain(), unit_movement_type::UNREACHABLE, t_translation::write_terrain_code(), and WRN_CF.
Referenced by unit::jamming_cost(), unit_movement_type::movement_cost(), unit::movement_cost(), movement_cost_internal(), unit_movement_type::vision_cost(), and unit::vision_cost().


Definition at line 1431 of file unit_types.cpp.
Referenced by unit::add_modification(), advancement_tree_internal(), unit_type::advances_from(), unit::advances_to_translated(), ai::testing_ai_default::recruitment_phase::analyze_potential_recruit_combat(), ai::ai_default_recruitment_stage::analyze_potential_recruit_combat(), ai::ai_default_recruitment_stage::analyze_potential_recruit_movements(), wb::recruit::create_corresponding_unit(), events::menu_handler::create_unit(), events::menu_handler::create_unit_2(), events::console_handler::do_create(), events::console_handler::do_discover(), ai::ai_default_recruitment_stage::do_play_stage(), events::menu_handler::do_recruit(), do_replay_handle(), mp::wait::leader_preview_pane::draw_contents(), ai::testing_ai_default::recruitment_phase::execute(), test_utils::game_config_manager::game_config_manager(), help::generate_ability_topics(), mp::wait::generate_menu(), help::generate_races_sections(), unit::generate_traits(), help::generate_unit_topics(), help::generate_weapon_special_topics(), get_advanced_unit(), ai::ai_default_recruitment_stage::get_combat_score_vs(), dialogs::unit_types_preview_pane::get_details(), get_unit_type(), ai::formula_ai::get_value(), unit_type::hide_help(), impl_race_get(), impl_unit_type_get(), LuaKernel::initialize(), intf_add_known_unit(), intf_get_traits(), intf_transform_unit(), help::make_unit_link(), team::minimum_recruit_price(), help::unit_topic_generator::operator()(), ai::testing_ai_default::potential_recruit_converter::operator()(), ai::unit_combat_score_getter::operator()(), leader_list_manager::populate_leader_combo(), gui2::tunit_create::pre_show(), wb::recruit::recruit(), events::menu_handler::recruit(), ai::testing_ai_default::recruitment_phase::recruit_usage(), ai::ai_default_recruitment_stage::recruit_usage(), mp::connect::side::resolve_random(), unit::set_advances_to(), unit::set_recruits(), game_controller::set_unit_data(), editor::unit_palette::setup(), mp::connect::side::side(), unit::unit(), attack::unit_killed(), leader_list_manager::update_gender_list(), and unit::write().
| Generated by doxygen 1.7.1 on Fri May 25 2012 01:11:04 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |