Pol  Revision:cb584c9
Pol::Core::WeatherDef Class Reference

#include <miscrgn.h>

+ Inheritance diagram for Pol::Core::WeatherDef:

Public Member Functions

 WeatherDef (const char *name)
 
virtual ~WeatherDef ()
 
bool assign_zones_to_region (const char *regionname, unsigned short x1, unsigned short y1, unsigned short x2, unsigned short y2, Realms::Realm *realm)
 
void copy_default_regions ()
 
virtual size_t estimateSize () const POL_OVERRIDE
 
- Public Member Functions inherited from Pol::Core::RegionGroup< WeatherRegion >
 RegionGroup (const char *name)
 
virtual WeatherRegiongetregion (xcoord x, ycoord y, Realms::Realm *realm)
 
virtual WeatherRegiongetregion (const std::string &regionname)
 
- Public Member Functions inherited from Pol::Core::RegionGroupBase
 RegionGroupBase (const char *name)
 
virtual ~RegionGroupBase ()
 
void create_bgnd_region (Clib::ConfigElem &elem)
 
const std::string & name () const
 
void read_region (Clib::ConfigElem &elem)
 

Private Attributes

RegionRealms default_regionrealms
 

Additional Inherited Members

- Protected Types inherited from Pol::Core::RegionGroupBase
typedef std::map< Realms::Realm *, RegionId ** > RegionRealms
 
- Protected Member Functions inherited from Pol::Core::RegionGroup< WeatherRegion >
virtual Regioncreate_region (Clib::ConfigElem &elem, RegionId id) const POL_OVERRIDE
 
- Protected Member Functions inherited from Pol::Core::RegionGroupBase
Regiongetregion_byloc (xcoord x, ycoord y, Realms::Realm *realm)
 
Regiongetregion_byname (const std::string &regionname)
 
- Protected Attributes inherited from Pol::Core::RegionGroupBase
RegionRealms regionrealms
 
std::vector< Region * > regions_
 

Detailed Description

Definition at line 75 of file miscrgn.h.

Constructor & Destructor Documentation

Pol::Core::WeatherDef::WeatherDef ( const char *  name)
Pol::Core::WeatherDef::~WeatherDef ( )
virtual

Definition at line 96 of file miscrgn.cpp.

References default_regionrealms, and Pol::Core::ZONE_SIZE.

Member Function Documentation

bool Pol::Core::WeatherDef::assign_zones_to_region ( const char *  regionname,
unsigned short  x1,
unsigned short  y1,
unsigned short  x2,
unsigned short  y2,
Realms::Realm realm 
)
void Pol::Core::WeatherDef::copy_default_regions ( )
size_t Pol::Core::WeatherDef::estimateSize ( ) const
virtual

Member Data Documentation

RegionRealms Pol::Core::WeatherDef::default_regionrealms
private

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