11 #include "../clib/passert.h" 18 :
MapServer( descriptor ), _mapfile(), _cur_mapblock_index( -1L )
41 std::fstream::pos_type offset = block_index *
sizeof(
_cur_mapblock );
size_t sizeEstimate() const
const unsigned MAPBLOCK_CELLMASK
void Open(const std::string &filename, std::ios::openmode mode)
virtual size_t sizeEstimate() const
MAPCELL cell[MAPBLOCK_CHUNK][MAPBLOCK_CHUNK]
FileMapServer(const RealmDescriptor &descriptor)
virtual size_t sizeEstimate() const POL_OVERRIDE
const RealmDescriptor _descriptor
void Seek(std::fstream::pos_type abs_offset)
std::string path(const std::string &filename) const
Clib::BinaryFile _mapfile
virtual MAPCELL GetMapCell(unsigned short x, unsigned short y) const POL_OVERRIDE
const unsigned MAPBLOCK_SHIFT