|
Pol
Rev 533
|
#include <region.h>
Inheritance diagram for RegionGroupBase:
Collaboration diagram for RegionGroupBase:Public Member Functions | |
| RegionGroupBase (const char *name) | |
| virtual | ~RegionGroupBase () |
| void | create_bgnd_region (ConfigElem &elem) |
| const std::string & | name () const |
| void | read_region (ConfigElem &elem) |
Protected Types | |
| typedef std::map< Realm *, RegionId ** > | RegionRealms |
Protected Member Functions | |
| Region * | getregion_byloc (xcoord x, ycoord y, Realm *realm) |
| Region * | getregion_byname (const std::string ®ionname) |
Protected Attributes | |
| RegionRealms | regionrealms |
| std::vector< Region * > | regions_ |
Private Types | |
| typedef std::map< std::string, Region * > | RegionsByName |
Private Member Functions | |
| virtual Region * | create_region (ConfigElem &elem) const =0 |
| RegionId | getregionid (xcoord x, ycoord y, Realm *realm) |
| void | paint_zones (ConfigElem &elem, RegionId ridx) |
Private Attributes | |
| std::string | name_ |
| RegionsByName | regions_byname_ |
typedef std::map<Realm*,RegionId**> RegionGroupBase::RegionRealms [protected] |
typedef std::map<std::string,Region*> RegionGroupBase::RegionsByName [private] |
| RegionGroupBase::RegionGroupBase | ( | const char * | name | ) | [explicit] |
Definition at line 53 of file region.cpp.
References Realms, regionrealms, and ZONE_SIZE.
| RegionGroupBase::~RegionGroupBase | ( | ) | [virtual] |
Definition at line 82 of file region.cpp.
References regionrealms, regions_, and ZONE_SIZE.
| void RegionGroupBase::create_bgnd_region | ( | ConfigElem & | elem | ) |
Definition at line 194 of file region.cpp.
References create_region(), Region::read_custom_config(), regions_, and regions_byname_.
Referenced by read_region_data().
Here is the call graph for this function:
Here is the caller graph for this function:| virtual Region* RegionGroupBase::create_region | ( | ConfigElem & | elem | ) | const [private, pure virtual] |
Implemented in RegionGroup< T >, RegionGroup< WeatherRegion >, and RegionGroup< ResourceRegion >.
Referenced by create_bgnd_region(), and read_region().
Here is the caller graph for this function:| Region * RegionGroupBase::getregion_byloc | ( | xcoord | x, |
| ycoord | y, | ||
| Realm * | realm | ||
| ) | [protected] |
Definition at line 171 of file region.cpp.
References getregionid(), and regions_.
Here is the call graph for this function:| Region * RegionGroupBase::getregion_byname | ( | const std::string & | regionname | ) | [protected] |
Definition at line 162 of file region.cpp.
References regions_byname_.
Referenced by WeatherDef::assign_zones_to_region().
Here is the caller graph for this function:| RegionId RegionGroupBase::getregionid | ( | xcoord | x, |
| ycoord | y, | ||
| Realm * | realm | ||
| ) | [private] |
Definition at line 150 of file region.cpp.
References Realm::baserealm, Realm::is_shadowrealm, regionrealms, and XyToZone().
Referenced by getregion_byloc().
Here is the call graph for this function:
Here is the caller graph for this function:| const std::string & RegionGroupBase::name | ( | ) | const [inline] |
Definition at line 89 of file region.h.
References name_.
Referenced by ResourceDef::counttiles(), and ResourceDef::write().
Here is the caller graph for this function:| void RegionGroupBase::paint_zones | ( | ConfigElem & | elem, |
| RegionId | ridx | ||
| ) | [private] |
Definition at line 107 of file region.cpp.
References find_realm(), Realm::height(), ISTRINGSTREAM, regionrealms, ConfigElem::remove_prop(), ConfigElem::remove_string(), ConfigElem::throw_error(), Realm::width(), and XyToZone().
Referenced by read_region().
Here is the call graph for this function:
Here is the caller graph for this function:| void RegionGroupBase::read_region | ( | ConfigElem & | elem | ) |
Definition at line 183 of file region.cpp.
References create_region(), paint_zones(), Region::read_custom_config(), regions_, regions_byname_, and ConfigElemBase::rest().
Referenced by read_region_data(), and read_resource_cfg().
Here is the call graph for this function:
Here is the caller graph for this function:std::string RegionGroupBase::name_ [private] |
RegionRealms RegionGroupBase::regionrealms [protected] |
Definition at line 78 of file region.h.
Referenced by WeatherDef::assign_zones_to_region(), WeatherDef::copy_default_regions(), getregionid(), paint_zones(), RegionGroupBase(), and ~RegionGroupBase().
std::vector<Region*> RegionGroupBase::regions_ [protected] |
Definition at line 74 of file region.h.
Referenced by ResourceDef::counttiles(), create_bgnd_region(), getregion_byloc(), read_region(), ResourceDef::regenerate(), ResourceDef::write(), and ~RegionGroupBase().
Definition at line 86 of file region.h.
Referenced by create_bgnd_region(), getregion_byname(), and read_region().