Classes | Typedefs | Functions | Variables

unit_types.hpp File Reference

-file theme.hpp More...

#include "unit_animation.hpp"
#include "portrait.hpp"
#include "race.hpp"
Include dependency graph for unit_types.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  attack_type
struct  defense_range
 Possible range of the defense. More...
class  unit_movement_type
class  unit_type
struct  unit_type::experience_accelerator
class  unit_type_data

Typedefs

typedef std::map
< t_translation::t_terrain,
defense_range
defense_cache
typedef std::map< std::string,
unit_movement_type
movement_type_map

Functions

const defense_rangedefense_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)
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)
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)
void adjust_profile (std::string &small, std::string &big, std::string const &def)

Variables

unit_type_data unit_types

Detailed Description

-file theme.hpp

-file unit.hpp

Definition in file unit_types.hpp.


Typedef Documentation

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.


Function Documentation

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().

Here is the call graph for this function:

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

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 
)
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 
)

Variable Documentation

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().

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated by doxygen 1.7.1 on Fri May 25 2012 01:11:04 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs