Pol  Rev 533
RegionGroupBase Class Reference

#include <region.h>

+ Inheritance diagram for RegionGroupBase:
+ Collaboration diagram for RegionGroupBase:

List of all members.

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

Regiongetregion_byloc (xcoord x, ycoord y, Realm *realm)
Regiongetregion_byname (const std::string &regionname)

Protected Attributes

RegionRealms regionrealms
std::vector< Region * > regions_

Private Types

typedef std::map< std::string,
Region * > 
RegionsByName

Private Member Functions

virtual Regioncreate_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_

Detailed Description

Definition at line 60 of file region.h.


Member Typedef Documentation

typedef std::map<Realm*,RegionId**> RegionGroupBase::RegionRealms [protected]

Definition at line 77 of file region.h.

typedef std::map<std::string,Region*> RegionGroupBase::RegionsByName [private]

Definition at line 85 of file region.h.


Constructor & Destructor Documentation

RegionGroupBase::RegionGroupBase ( const char *  name) [explicit]

Definition at line 53 of file region.cpp.

References Realms, regionrealms, and ZONE_SIZE.

Definition at line 82 of file region.cpp.

References regionrealms, regions_, and ZONE_SIZE.


Member Function Documentation

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:

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:


Member Data Documentation

std::string RegionGroupBase::name_ [private]

Definition at line 84 of file region.h.

Referenced by name().


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