Pol
Revision:cb584c9
|
#include <miscrgn.h>
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 |
![]() | |
RegionGroup (const char *name) | |
virtual WeatherRegion * | getregion (xcoord x, ycoord y, Realms::Realm *realm) |
virtual WeatherRegion * | getregion (const std::string ®ionname) |
![]() | |
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 | |
![]() | |
typedef std::map< Realms::Realm *, RegionId ** > | RegionRealms |
![]() | |
virtual Region * | create_region (Clib::ConfigElem &elem, RegionId id) const POL_OVERRIDE |
![]() | |
Region * | getregion_byloc (xcoord x, ycoord y, Realms::Realm *realm) |
Region * | getregion_byname (const std::string ®ionname) |
![]() | |
RegionRealms | regionrealms |
std::vector< Region * > | regions_ |
Pol::Core::WeatherDef::WeatherDef | ( | const char * | name | ) |
Definition at line 75 of file miscrgn.cpp.
References default_regionrealms, Pol::Core::gamestate, Pol::Core::GameState::Realms, and Pol::Core::ZONE_SIZE.
Referenced by Pol::Core::read_weather_zones().
|
virtual |
Definition at line 96 of file miscrgn.cpp.
References default_regionrealms, and Pol::Core::ZONE_SIZE.
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 | ||
) |
Definition at line 139 of file miscrgn.cpp.
References default_regionrealms, Pol::Core::RegionGroupBase::getregion_byname(), Pol::Realms::Realm::height(), Pol::Core::Region::regionid(), Pol::Core::RegionGroupBase::regionrealms, Pol::Core::update_all_weatherregions(), Pol::Realms::Realm::width(), and Pol::Core::XyToZone().
Referenced by Pol::Module::UOExecutorModule::mf_AssignRectToWeatherRegion().
void Pol::Core::WeatherDef::copy_default_regions | ( | ) |
Definition at line 121 of file miscrgn.cpp.
References default_regionrealms, Pol::Realms::Realm::height(), Pol::Core::RegionGroupBase::regionrealms, Pol::Realms::Realm::width(), and Pol::Core::ZONE_SIZE.
Referenced by Pol::Core::read_weather_zones().
|
virtual |
Reimplemented from Pol::Core::RegionGroupBase.
Definition at line 108 of file miscrgn.cpp.
References default_regionrealms, Pol::Core::RegionGroupBase::estimateSize(), and Pol::Core::ZONE_SIZE.
Referenced by Pol::Core::GameState::estimateSize().
|
private |
Definition at line 87 of file miscrgn.h.
Referenced by assign_zones_to_region(), copy_default_regions(), estimateSize(), WeatherDef(), and ~WeatherDef().