#include <unit_types.hpp>
Public Member Functions | |
const race_map & | races () const |
void | set_config (const config &cfg) |
unit_type_map::const_iterator | begin () const |
unit_type_map::const_iterator | end () const |
unit_type_map::const_iterator | find (const std::string &key, unit_type::BUILD_STATUS status=unit_type::FULL) const |
void | build_all (unit_type::BUILD_STATUS status) const |
Private Member Functions | |
unit_type_map_wrapper () | |
unit_type_map_wrapper (unit_type_map_wrapper &) | |
void | set_unit_config (const config &unit_cfg) |
void | set_unit_traits (const config::child_list unit_traits) |
const config & | find_config (const std::string &key) const |
std::pair < unit_type_map::iterator, bool > | insert (const std::pair< std::string, unit_type > &utype) |
void | clear () |
unit_type & | build_unit_type (const std::string &key, unit_type::BUILD_STATUS status) const |
void | add_advancefrom (const config &unit_cfg) const |
void | add_advancement (const config &cfg, unit_type &to_unit) const |
Private Attributes | |
unit_type_map | types_ |
unit_type_map | dummy_unit_map_ |
movement_type_map | movement_types_ |
race_map | races_ |
config::child_list | unit_traits_ |
const config * | unit_cfg_ |
Friends | |
class | unit_type_data |
Definition at line 314 of file unit_types.hpp.
unit_type_data::unit_type_map_wrapper::unit_type_map_wrapper | ( | ) | [private] |
unit_type_data::unit_type_map_wrapper::unit_type_map_wrapper | ( | unit_type_map_wrapper & | ) | [inline, private] |
Definition at line 330 of file unit_types.hpp.
const race_map& unit_type_data::unit_type_map_wrapper::races | ( | ) | const [inline] |
void unit_type_data::unit_type_map_wrapper::set_config | ( | const config & | cfg | ) |
Definition at line 953 of file unit_types.cpp.
References clear(), config::clear_children(), lg::config, DBG_UT, find_config(), unit_race::id(), increment_set_config_progress(), lg::info, insert(), config::merge_with(), movement_types_, unit_movement_type::name(), races_, set_unit_config(), and set_unit_traits().
unit_type_map::const_iterator unit_type_data::unit_type_map_wrapper::begin | ( | ) | const [inline] |
unit_type_map::const_iterator unit_type_data::unit_type_map_wrapper::end | ( | ) | const [inline] |
Definition at line 323 of file unit_types.hpp.
References types_.
Referenced by mp::wait::leader_preview_pane::draw_contents(), mp::wait::generate_menu(), leader_list_manager::populate_leader_combo(), and leader_list_manager::update_gender_list().
unit_type_data::unit_type_map::const_iterator unit_type_data::unit_type_map_wrapper::find | ( | const std::string & | key, | |
unit_type::BUILD_STATUS | status = unit_type::FULL | |||
) | const |
Definition at line 1039 of file unit_types.cpp.
References build_unit_type(), lg::config, dummy_unit_map_, lg::info, and types_.
Referenced by mp::wait::leader_preview_pane::draw_contents(), mp::wait::generate_menu(), leader_list_manager::populate_leader_combo(), and leader_list_manager::update_gender_list().
void unit_type_data::unit_type_map_wrapper::build_all | ( | unit_type::BUILD_STATUS | status | ) | const |
Definition at line 1079 of file unit_types.cpp.
References build_unit_type(), types_, and unit_cfg_.
void unit_type_data::unit_type_map_wrapper::set_unit_config | ( | const config & | unit_cfg | ) | [inline, private] |
void unit_type_data::unit_type_map_wrapper::set_unit_traits | ( | const config::child_list | unit_traits | ) | [inline, private] |
const config & unit_type_data::unit_type_map_wrapper::find_config | ( | const std::string & | key | ) | const [private] |
Definition at line 1062 of file unit_types.cpp.
References cfg, DBG_UT, config::find_child(), and unit_cfg_.
Referenced by build_unit_type(), and set_config().
std::pair<unit_type_map::iterator, bool> unit_type_data::unit_type_map_wrapper::insert | ( | const std::pair< std::string, unit_type > & | utype | ) | [inline, private] |
void unit_type_data::unit_type_map_wrapper::clear | ( | void | ) | [inline, private] |
Definition at line 337 of file unit_types.hpp.
References movement_types_, races_, and types_.
Referenced by set_config().
unit_type & unit_type_data::unit_type_map_wrapper::build_unit_type | ( | const std::string & | key, | |
unit_type::BUILD_STATUS | status | |||
) | const [private] |
Definition at line 1088 of file unit_types.cpp.
References add_advancefrom(), add_advancement(), find_config(), unit_type::FULL, unit_type::HELP_INDEX, movement_types_, unit_type::NOT_BUILT, races_, types_, unit_traits_, and unit_type::WITHOUT_ANIMATIONS.
Referenced by build_all(), and find().
void unit_type_data::unit_type_map_wrapper::add_advancefrom | ( | const config & | unit_cfg | ) | const [private] |
Definition at line 1124 of file unit_types.cpp.
References DBG_UT, utils::split(), and types_.
Referenced by build_unit_type().
void unit_type_data::unit_type_map_wrapper::add_advancement | ( | const config & | cfg, | |
unit_type & | to_unit | |||
) | const [private] |
Definition at line 1139 of file unit_types.cpp.
References unit_type::add_advancesfrom(), config::child_range(), from, and types_.
Referenced by build_unit_type().
friend class unit_type_data [friend] |
Definition at line 316 of file unit_types.hpp.
unit_type_map unit_type_data::unit_type_map_wrapper::types_ [mutable, private] |
Definition at line 347 of file unit_types.hpp.
Referenced by add_advancefrom(), add_advancement(), begin(), build_all(), build_unit_type(), clear(), end(), find(), and insert().
unit_type_map unit_type_data::unit_type_map_wrapper::dummy_unit_map_ [mutable, private] |
Definition at line 349 of file unit_types.hpp.
Referenced by build_unit_type(), clear(), and set_config().
Definition at line 350 of file unit_types.hpp.
Referenced by build_unit_type(), clear(), races(), and set_config().
Definition at line 351 of file unit_types.hpp.
Referenced by build_unit_type(), and set_unit_traits().
const config* unit_type_data::unit_type_map_wrapper::unit_cfg_ [private] |
Definition at line 352 of file unit_types.hpp.
Referenced by build_all(), find_config(), set_unit_config(), and unit_type_map_wrapper().
Generated by doxygen 1.5.5 on 23 May 2008 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |