Handle unit-type specific attributes, animations, advancement. More...
#include "global.hpp"
#include "units/types.hpp"
#include "game_config.hpp"
#include "game_errors.hpp"
#include "log.hpp"
#include "utils/make_enum.hpp"
#include "units/unit.hpp"
#include "units/abilities.hpp"
#include "units/animation.hpp"
#include "util.hpp"
#include "gui/auxiliary/formula.hpp"
#include "gui/dialogs/loadscreen.hpp"
#include <boost/regex.hpp>
Go to the source code of this file.
Macros | |
#define | ERR_CF LOG_STREAM(err, log_config) |
#define | WRN_CF LOG_STREAM(warn, log_config) |
#define | LOG_CONFIG LOG_STREAM(info, log_config) |
#define | DBG_CF LOG_STREAM(debug, log_config) |
#define | DBG_UT LOG_STREAM(debug, log_unit) |
#define | ERR_UT LOG_STREAM(err, log_unit) |
Functions | |
static void | advancement_tree_internal (const std::string &id, std::set< std::string > &tree) |
MAKE_ENUM (ALIGNMENT_FEMALE_VARIATION,(LAWFUL, N_("female^lawful"))(FEMALE_NEUTRAL, N_("female^neutral"))(CHAOTIC, N_("female^chaotic"))(LIMINAL, N_("female^liminal"))) std | |
Implementation detail of unit_type::alignment_description. More... | |
void | adjust_profile (std::string &profile) |
Variables | |
static lg::log_domain | log_config ("config") |
static lg::log_domain | log_unit ("unit") |
unit_type_data | unit_types |
Handle unit-type specific attributes, animations, advancement.
Definition in file types.cpp.
#define DBG_CF LOG_STREAM(debug, log_config) |
Definition at line 43 of file types.cpp.
Referenced by unit_type_data::find().
#define DBG_UT LOG_STREAM(debug, log_unit) |
Definition at line 46 of file types.cpp.
Referenced by unit_type::add_advancement(), unit_type_data::add_advancement(), unit_type::build(), unit_type::build_created(), unit_type::build_help_index(), and unit_type_data::set_config().
#define ERR_CF LOG_STREAM(err, log_config) |
Definition at line 40 of file types.cpp.
Referenced by unit_type_data::set_config().
#define ERR_UT LOG_STREAM(err, log_unit) |
Definition at line 47 of file types.cpp.
Referenced by unit_type::build(), and unit_type::check_id().
#define LOG_CONFIG LOG_STREAM(info, log_config) |
Definition at line 42 of file types.cpp.
Referenced by unit_type::add_advancement(), and unit_type_data::set_config().
#define WRN_CF LOG_STREAM(warn, log_config) |
Definition at line 41 of file types.cpp.
Referenced by unit_type::add_advancement().
void adjust_profile | ( | std::string & | profile | ) |
Definition at line 1317 of file types.cpp.
References image::locator::file_exists(), and filesystem::file_exists().
Referenced by unit::apply_builtin_effect(), unit_type::build_help_index(), and unit::unit().
|
static |
Definition at line 628 of file types.cpp.
References unit_type::advances_to(), unit_type_data::find(), and unit_types.
Referenced by unit_type::advancement_tree().
MAKE_ENUM | ( | ALIGNMENT_FEMALE_VARIATION | , |
(LAWFUL, N_("female^lawful"))(FEMALE_NEUTRAL, N_("female^neutral"))(CHAOTIC, N_("female^chaotic"))(LIMINAL, N_("female^liminal")) | |||
) |
Implementation detail of unit_type::alignment_description.
Definition at line 825 of file types.cpp.
References unit_race::FEMALE, and translation::sgettext().
|
static |
|
static |
unit_type_data unit_types |
Definition at line 1314 of file types.cpp.
Referenced by unit_type::add_advancement(), advancement_tree_internal(), unit_type::advances_from(), unit::advances_to_translated(), unit::apply_builtin_effect(), BOOST_AUTO_TEST_CASE(), ai::default_recruitment::recruitment::compare_unit_types(), actions::undo_list::create_action(), wb::recruit::create_corresponding_unit(), ai::default_recruitment::recruitment::do_combat_analysis(), events::console_handler::do_create(), events::console_handler::do_discover(), ai::recruit_result::do_execute(), events::menu_handler::do_recruit(), ai::default_recruitment::recruitment::do_similarity_penalty(), mp::wait::leader_preview_pane::draw_contents(), ai::default_recruitment::recruitment::execute(), ng::flg_manager::flg_manager(), test_utils::game_config_manager::game_config_manager(), help::generate_ability_topics(), help::generate_faction_topics(), mp::wait::generate_menu(), help::generate_races_sections(), help::generate_unit_sections(), help::generate_unit_topics(), help::generate_weapon_special_topics(), get_advanced_unit(), ai::default_recruitment::recruitment::get_appropriate_recall(), ai::default_recruitment::recruitment::get_average_defense(), ai::default_recruitment::recruitment::get_cheapest_unit_cost_for_leader(), ai::default_recruitment::recruitment::get_cost_map_of_side(), dialogs::unit_types_preview_pane::get_details(), get_unit_type(), ai::recruit_result::get_unit_type_known(), ai::formula_ai::get_value(), ai::helper_advance_unit(), unit_type::hide_help(), impl_race_get(), impl_unit_type_get(), game_lua_kernel::initialize(), basic_unit_filter_impl::internal_matches_filter(), intf_add_known_unit(), game_lua_kernel::intf_find_cost_map(), intf_get_traits(), intf_transform_unit(), luaW_pushracetable(), help::make_unit_link(), team::minimum_recruit_price(), help::unit_topic_generator::operator()(), gui2::tunit_create::pre_show(), wb::recruit::recruit(), events::menu_handler::recruit(), ai::default_recruitment::recruitment::recruit_matches_type(), ng::flg_manager::reset_gender_combo(), ng::flg_manager::reset_leader_combo(), ng::flg_manager::resolve_random(), unit::set_advances_to(), unit::set_recruits(), game_config_manager::set_unit_data(), editor::unit_palette::setup(), help::show_help(), help::show_unit_description(), statistics::sum_cost_str_int_map(), SYNCED_COMMAND_HANDLER_FUNCTION(), unit::unit(), editor::mouse_action_unit::up_left(), ng::flg_manager::update_available_genders(), and ai::default_recruitment::recruitment::update_average_local_cost().