Pol  Revision:4b29d2b
staticserver.h
Go to the documentation of this file.
1 
8 #ifndef PLIB_STATICSERVER_H
9 #define PLIB_STATICSERVER_H
10 
11 #include <vector>
12 
13 #include "realmdescriptor.h"
14 #include "staticblock.h"
15 
16 namespace Pol
17 {
18 namespace Plib
19 {
20 class StaticEntryList;
21 } // namespace Plib
22 } // namespace Pol
23 
24 namespace Pol
25 {
26 namespace Plib
27 {
29 {
30 public:
31  explicit StaticServer( const RealmDescriptor& descriptor );
32  ~StaticServer();
33  StaticServer& operator=( const StaticServer& ) { return *this; }
34  bool findstatic( unsigned short x, unsigned short y, unsigned short objtype ) const;
35  void getstatics( StaticEntryList& statics, unsigned short x, unsigned short y ) const;
36  size_t sizeEstimate() const;
37 
38 protected:
39  void Validate() const;
40  void ValidateBlock( unsigned short x, unsigned short y ) const;
41 
42 private:
44 
45  std::vector<STATIC_INDEX> _index;
46  std::vector<STATIC_ENTRY> _statics;
47 };
48 }
49 }
50 #endif
const RealmDescriptor _descriptor
Definition: staticserver.h:43
std::vector< STATIC_INDEX > _index
Definition: staticserver.h:45
StaticServer & operator=(const StaticServer &)
Definition: staticserver.h:33
bool findstatic(unsigned short x, unsigned short y, unsigned short graphic)
std::vector< STATIC_ENTRY > _statics
Definition: staticserver.h:46
Definition: berror.cpp:12