|
Pol
Revision:cb584c9
|
#include <realmdescriptor.h>
Public Member Functions | |
| bool | operator== (const RealmDescriptor &rdesc) const |
| std::string | path (const std::string &filename) const |
| size_t | sizeEstimate () const |
Static Public Member Functions | |
| static RealmDescriptor | Load (const std::string &realm_name, const std::string &realm_path="") |
Public Attributes | |
| std::string | file_path |
| unsigned short | grid_height |
| unsigned short | grid_width |
| unsigned short | height |
| std::string | mapserver_type |
| std::string | name |
| unsigned | num_map_patches |
| unsigned | num_static_patches |
| unsigned | season |
| bool | uodif |
| unsigned | uomapid |
| unsigned short | width |
Private Member Functions | |
| RealmDescriptor (const std::string &realm_name, const std::string &realm_path, Clib::ConfigElem &elem) | |
Definition at line 24 of file realmdescriptor.h.
|
private |
Definition at line 47 of file realmdescriptor.cpp.
Referenced by Load().
|
static |
Definition at line 18 of file realmdescriptor.cpp.
References Pol::Clib::ConfigFile::read(), RealmDescriptor(), Pol::Clib::ConfigElem::throw_error(), and Pol::Plib::WGRID_SIZE.
Referenced by Pol::UoConvert::create_maptile(), Pol::UoTool::defragstatics(), Pol::UoConvert::UoConvertMain::main(), Pol::Clib::PolToolMain::mapdump(), and Pol::Core::write_pol_static_files().
|
inline |
Definition at line 43 of file realmdescriptor.h.
| std::string Pol::Plib::RealmDescriptor::path | ( | const std::string & | filename | ) | const |
Definition at line 71 of file realmdescriptor.cpp.
References file_path, and name.
Referenced by Pol::Plib::FileMapServer::FileMapServer(), Pol::Plib::InMemoryMapServer::InMemoryMapServer(), Pol::Plib::MapServer::LoadFirstLevelIndex(), Pol::Plib::MapServer::LoadSecondLevelIndex(), Pol::Plib::MapServer::LoadSolids(), and Pol::Plib::StaticServer::StaticServer().
| size_t Pol::Plib::RealmDescriptor::sizeEstimate | ( | ) | const |
Definition at line 64 of file realmdescriptor.cpp.
References file_path, mapserver_type, and name.
Referenced by Pol::Plib::MapTileServer::sizeEstimate(), Pol::Plib::MapServer::sizeEstimate(), Pol::Plib::StaticServer::sizeEstimate(), and Pol::Realms::Realm::sizeEstimate().
| std::string Pol::Plib::RealmDescriptor::file_path |
Definition at line 30 of file realmdescriptor.h.
Referenced by path(), and sizeEstimate().
| unsigned short Pol::Plib::RealmDescriptor::grid_height |
Definition at line 40 of file realmdescriptor.h.
Referenced by Pol::Realms::Realm::grid_height().
| unsigned short Pol::Plib::RealmDescriptor::grid_width |
Definition at line 39 of file realmdescriptor.h.
Referenced by Pol::Realms::Realm::grid_width().
| unsigned short Pol::Plib::RealmDescriptor::height |
Definition at line 32 of file realmdescriptor.h.
Referenced by Pol::UoConvert::create_maptile(), Pol::UoTool::defragstatics(), Pol::Plib::StaticServer::findstatic(), Pol::Plib::FileMapServer::GetMapCell(), Pol::Plib::InMemoryMapServer::GetMapCell(), Pol::Plib::MapServer::GetMapShapes(), Pol::Plib::StaticServer::getstatics(), Pol::Plib::InMemoryMapServer::InMemoryMapServer(), Pol::Plib::MapServer::LoadFirstLevelIndex(), Pol::UoConvert::UoConvertMain::main(), and Pol::Plib::StaticServer::Validate().
| std::string Pol::Plib::RealmDescriptor::mapserver_type |
Definition at line 38 of file realmdescriptor.h.
Referenced by Pol::Plib::MapServer::Create(), and sizeEstimate().
| std::string Pol::Plib::RealmDescriptor::name |
Definition at line 29 of file realmdescriptor.h.
Referenced by Pol::Realms::Realm::name(), operator==(), path(), and sizeEstimate().
| unsigned Pol::Plib::RealmDescriptor::num_map_patches |
Definition at line 35 of file realmdescriptor.h.
| unsigned Pol::Plib::RealmDescriptor::num_static_patches |
Definition at line 36 of file realmdescriptor.h.
| unsigned Pol::Plib::RealmDescriptor::season |
Definition at line 37 of file realmdescriptor.h.
Referenced by Pol::Realms::Realm::season().
| bool Pol::Plib::RealmDescriptor::uodif |
Definition at line 34 of file realmdescriptor.h.
Referenced by Pol::UoConvert::create_maptile(), Pol::UoTool::defragstatics(), and Pol::UoConvert::UoConvertMain::main().
| unsigned Pol::Plib::RealmDescriptor::uomapid |
Definition at line 33 of file realmdescriptor.h.
Referenced by Pol::UoConvert::create_maptile(), Pol::UoTool::defragstatics(), Pol::UoConvert::UoConvertMain::main(), and operator==().
| unsigned short Pol::Plib::RealmDescriptor::width |
Definition at line 31 of file realmdescriptor.h.
Referenced by Pol::UoConvert::create_maptile(), Pol::UoTool::defragstatics(), Pol::Plib::StaticServer::findstatic(), Pol::Plib::FileMapServer::GetMapCell(), Pol::Plib::InMemoryMapServer::GetMapCell(), Pol::Plib::MapServer::GetMapShapes(), Pol::Plib::MapTileServer::GetMapTile(), Pol::Plib::StaticServer::getstatics(), Pol::Plib::InMemoryMapServer::InMemoryMapServer(), Pol::Plib::MapServer::LoadFirstLevelIndex(), Pol::UoConvert::UoConvertMain::main(), Pol::Plib::StaticServer::Validate(), and Pol::Plib::StaticServer::ValidateBlock().