unit_type_data::unit_type_map_wrapper Class Reference

#include <unit_types.hpp>

Collaboration diagram for unit_type_data::unit_type_map_wrapper:

Collaboration graph
[legend]

List of all members.

Public Member Functions

const race_mapraces () 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 configfind_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_typebuild_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 configunit_cfg_

Friends

class unit_type_data


Detailed Description

Definition at line 314 of file unit_types.hpp.


Constructor & Destructor Documentation

unit_type_data::unit_type_map_wrapper::unit_type_map_wrapper (  )  [private]

Definition at line 947 of file unit_types.cpp.

References dummy_unit_map_, and unit_cfg_.

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.


Member Function Documentation

const race_map& unit_type_data::unit_type_map_wrapper::races (  )  const [inline]

Definition at line 319 of file unit_types.hpp.

References races_.

void unit_type_data::unit_type_map_wrapper::set_config ( const config cfg  ) 

unit_type_map::const_iterator unit_type_data::unit_type_map_wrapper::begin (  )  const [inline]

Definition at line 322 of file unit_types.hpp.

References types_.

unit_type_map::const_iterator unit_type_data::unit_type_map_wrapper::end (  )  const [inline]

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

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]

Definition at line 332 of file unit_types.hpp.

References unit_cfg_.

Referenced by set_config().

void unit_type_data::unit_type_map_wrapper::set_unit_traits ( const config::child_list  unit_traits  )  [inline, private]

Definition at line 333 of file unit_types.hpp.

References unit_traits_.

Referenced by set_config().

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]

Definition at line 336 of file unit_types.hpp.

References types_.

Referenced by set_config().

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]

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


Friends And Related Function Documentation

friend class unit_type_data [friend]

Definition at line 316 of file unit_types.hpp.


Member Data Documentation

Definition at line 348 of file unit_types.hpp.

Referenced by find(), and unit_type_map_wrapper().

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

Definition at line 352 of file unit_types.hpp.

Referenced by build_all(), find_config(), set_unit_config(), and unit_type_map_wrapper().


The documentation for this class was generated from the following files:

Generated by doxygen 1.5.5 on 23 May 2008 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs