Pol  Revision:3cfda13
inmemorymapserver.h
Go to the documentation of this file.
1 
7 #ifndef PLIB_INMEMORYMAPSERVER_H
8 #define PLIB_INMEMORYMAPSERVER_H
9 
10 #include <vector>
11 
12 #include "../clib/binaryfile.h"
13 #include "../clib/compilerspecifics.h"
14 #include "mapblock.h"
15 #include "mapcell.h"
16 #include "mapserver.h"
17 
18 namespace Pol
19 {
20 namespace Plib
21 {
22 class RealmDescriptor;
23 } // namespace Plib
24 } // namespace Pol
25 
26 namespace Pol
27 {
28 namespace Plib
29 {
31 {
32 public:
33  explicit InMemoryMapServer( const RealmDescriptor& descriptor );
34  virtual ~InMemoryMapServer();
35 
36  virtual MAPCELL GetMapCell( unsigned short x, unsigned short y ) const POL_OVERRIDE;
37  virtual size_t sizeEstimate() const POL_OVERRIDE;
38 
39 private:
40  std::vector<MAPBLOCK> _mapblocks;
41 
42  // not implemented:
43  InMemoryMapServer& operator=( const InMemoryMapServer& );
45 };
46 }
47 }
48 #endif
#define POL_OVERRIDE
std::vector< MAPBLOCK > _mapblocks
Definition: berror.cpp:12