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