|
Pol
Revision:cb584c9
|
#include <staticserver.h>
Public Member Functions | |
| StaticServer (const RealmDescriptor &descriptor) | |
| ~StaticServer () | |
| bool | findstatic (unsigned short x, unsigned short y, unsigned short objtype) const |
| void | getstatics (StaticEntryList &statics, unsigned short x, unsigned short y) const |
| StaticServer & | operator= (const StaticServer &) |
| size_t | sizeEstimate () const |
Protected Member Functions | |
| void | Validate () const |
| void | ValidateBlock (unsigned short x, unsigned short y) const |
Private Attributes | |
| const RealmDescriptor | _descriptor |
| std::vector< STATIC_INDEX > | _index |
| std::vector< STATIC_ENTRY > | _statics |
Definition at line 28 of file staticserver.h.
|
explicit |
Definition at line 23 of file staticserver.cpp.
References _descriptor, _index, _statics, Pol::Plib::RealmDescriptor::path(), Pol::Clib::BinaryFile::ReadVector(), Validate(), and ~StaticServer().
|
default |
Referenced by StaticServer().
| bool Pol::Plib::StaticServer::findstatic | ( | unsigned short | x, |
| unsigned short | y, | ||
| unsigned short | objtype | ||
| ) | const |
Definition at line 84 of file staticserver.cpp.
References _descriptor, _index, _statics, Pol::Plib::RealmDescriptor::height, Pol::Plib::STATIC_ENTRY::objtype, passert, Pol::Plib::STATICBLOCK_SHIFT, Pol::Plib::STATICCELL_MASK, Pol::Plib::RealmDescriptor::width, and Pol::Plib::STATIC_ENTRY::xy.
| void Pol::Plib::StaticServer::getstatics | ( | StaticEntryList & | statics, |
| unsigned short | x, | ||
| unsigned short | y | ||
| ) | const |
Definition at line 111 of file staticserver.cpp.
References _descriptor, _index, _statics, Pol::Plib::RealmDescriptor::height, passert, Pol::Plib::STATICBLOCK_SHIFT, Pol::Plib::STATICCELL_MASK, Pol::Plib::RealmDescriptor::width, and Pol::Plib::STATIC_ENTRY::xy.
|
inline |
Definition at line 33 of file staticserver.h.
References Pol::Core::findstatic().
| size_t Pol::Plib::StaticServer::sizeEstimate | ( | ) | const |
Definition at line 137 of file staticserver.cpp.
References _descriptor, _index, _statics, and Pol::Plib::RealmDescriptor::sizeEstimate().
|
protected |
Definition at line 47 of file staticserver.cpp.
References _descriptor, Pol::Tools::Timer< printer >::ellapsed(), Pol::Plib::RealmDescriptor::height, POLLOG_INFO, Pol::Plib::STATICBLOCK_CHUNK, ValidateBlock(), and Pol::Plib::RealmDescriptor::width.
Referenced by StaticServer().
|
protected |
Definition at line 61 of file staticserver.cpp.
References _descriptor, _index, _statics, Pol::Plib::STATICBLOCK_CHUNK, Pol::Plib::STATICBLOCK_SHIFT, Pol::Clib::tostring(), and Pol::Plib::RealmDescriptor::width.
Referenced by Validate().
|
private |
Definition at line 43 of file staticserver.h.
Referenced by findstatic(), getstatics(), sizeEstimate(), StaticServer(), Validate(), and ValidateBlock().
|
private |
Definition at line 45 of file staticserver.h.
Referenced by findstatic(), getstatics(), sizeEstimate(), StaticServer(), and ValidateBlock().
|
private |
Definition at line 46 of file staticserver.h.
Referenced by findstatic(), getstatics(), sizeEstimate(), StaticServer(), and ValidateBlock().