Pol  Rev 533
StaticServer Class Reference

#include <staticserver.h>

+ Collaboration diagram for StaticServer:

List of all members.

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
StaticServeroperator= (const StaticServer &)

Protected Member Functions

void Validate () const
void ValidateBlock (unsigned short x, unsigned short y) const

Private Attributes

RealmDescriptor _descriptor
vector< STATIC_INDEX_index
vector< STATIC_ENTRY_statics

Detailed Description

Definition at line 19 of file staticserver.h.


Constructor & Destructor Documentation

StaticServer::StaticServer ( const RealmDescriptor descriptor) [explicit]

Definition at line 21 of file staticserver.cpp.

References _descriptor, _index, _statics, RealmDescriptor::path(), BinaryFile::ReadVector(), and Validate().

+ Here is the call graph for this function:

Definition at line 45 of file staticserver.cpp.


Member Function Documentation

bool StaticServer::findstatic ( unsigned short  x,
unsigned short  y,
unsigned short  objtype 
) const
void StaticServer::getstatics ( StaticEntryList statics,
unsigned short  x,
unsigned short  y 
) const
StaticServer& StaticServer::operator= ( const StaticServer ) [inline]

Definition at line 24 of file staticserver.h.

void StaticServer::Validate ( ) const [protected]

Definition at line 49 of file staticserver.cpp.

References _descriptor, RealmDescriptor::height, STATICBLOCK_CHUNK, ValidateBlock(), wallclock(), wallclock_diff_ms(), RealmDescriptor::width, and x.

Referenced by StaticServer().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void StaticServer::ValidateBlock ( unsigned short  x,
unsigned short  y 
) const [protected]

Definition at line 66 of file staticserver.cpp.

References _descriptor, _index, _statics, STATICBLOCK_CHUNK, STATICBLOCK_SHIFT, tostring(), and RealmDescriptor::width.

Referenced by Validate().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:


Member Data Documentation

Definition at line 36 of file staticserver.h.

Referenced by findstatic(), getstatics(), StaticServer(), and ValidateBlock().

Definition at line 37 of file staticserver.h.

Referenced by findstatic(), getstatics(), StaticServer(), and ValidateBlock().


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