|
Pol
Revision:cb584c9
|
#include <mapserver.h>
Inheritance diagram for Pol::Plib::MapServer:Public Member Functions | |
| virtual | ~MapServer () |
| virtual MAPCELL | GetMapCell (unsigned short x, unsigned short y) const =0 |
| void | GetMapShapes (MapShapeList &list, unsigned short x, unsigned short y, unsigned int anyflags) const |
| virtual size_t | sizeEstimate () const |
Static Public Member Functions | |
| static MapServer * | Create (const RealmDescriptor &descriptor) |
Protected Member Functions | |
| MapServer (const RealmDescriptor &descriptor) | |
Protected Attributes | |
| const RealmDescriptor | _descriptor |
Private Member Functions | |
| MapServer (const MapServer &) | |
| void | LoadFirstLevelIndex () |
| void | LoadSecondLevelIndex () |
| void | LoadSolids () |
| MapServer & | operator= (const MapServer &) |
Private Attributes | |
| std::vector< SOLIDX2_ELEM * > | _index1 |
| std::vector< SOLIDX2_ELEM > | _index2 |
| std::vector< SOLIDS_ELEM > | _shapedata |
Definition at line 22 of file mapserver.h.
|
virtualdefault |
Referenced by MapServer().
|
explicitprotected |
Definition at line 26 of file mapserver.cpp.
References LoadFirstLevelIndex(), LoadSecondLevelIndex(), LoadSolids(), and ~MapServer().
|
private |
|
static |
Definition at line 151 of file mapserver.cpp.
References Pol::Plib::RealmDescriptor::mapserver_type.
Referenced by Pol::Clib::PolToolMain::mapdump().
|
pure virtual |
Implemented in Pol::Plib::InMemoryMapServer, and Pol::Plib::FileMapServer.
Referenced by GetMapShapes().
| void Pol::Plib::MapServer::GetMapShapes | ( | MapShapeList & | list, |
| unsigned short | x, | ||
| unsigned short | y, | ||
| unsigned int | anyflags | ||
| ) | const |
Definition at line 107 of file mapserver.cpp.
References _descriptor, _index1, _shapedata, Pol::Plib::SOLIDX2_ELEM::addindex, Pol::Plib::SOLIDX2_ELEM::baseindex, Pol::Plib::MapShape::flags, Pol::Plib::SOLIDS_ELEM::flags, Pol::Plib::MAPCELL::flags, GetMapCell(), Pol::Plib::MapShape::height, Pol::Plib::RealmDescriptor::height, Pol::Plib::SOLIDS_ELEM::height, Pol::Plib::FLAG::MORE_SOLIDS, passert, SOLIDX_X_CELLMASK, SOLIDX_X_SHIFT, SOLIDX_Y_CELLMASK, SOLIDX_Y_SHIFT, Pol::Plib::RealmDescriptor::width, Pol::Plib::MapShape::z, Pol::Plib::SOLIDS_ELEM::z, and Pol::Plib::MAPCELL::z.
|
private |
Definition at line 81 of file mapserver.cpp.
References _descriptor, _index1, _index2, Pol::Plib::RealmDescriptor::height, Pol::Plib::RealmDescriptor::path(), Pol::Clib::BinaryFile::Read(), Pol::Plib::SOLIDX2_FILLER_SIZE, SOLIDX_X_SIZE, SOLIDX_Y_SIZE, and Pol::Plib::RealmDescriptor::width.
Referenced by MapServer().
|
private |
Definition at line 46 of file mapserver.cpp.
References _descriptor, _index2, _shapedata, Pol::Clib::decint(), Pol::Clib::BinaryFile::FileSize(), Pol::Clib::filesize(), passert, Pol::Plib::RealmDescriptor::path(), Pol::Clib::BinaryFile::Read(), Pol::Clib::BinaryFile::Seek(), Pol::Plib::SOLIDX2_FILLER_SIZE, SOLIDX_X_SIZE, and SOLIDX_Y_SIZE.
Referenced by MapServer().
|
private |
Definition at line 38 of file mapserver.cpp.
References _descriptor, _shapedata, Pol::Plib::RealmDescriptor::path(), and Pol::Clib::BinaryFile::ReadVector().
Referenced by MapServer().
|
virtual |
Reimplemented in Pol::Plib::InMemoryMapServer, and Pol::Plib::FileMapServer.
Definition at line 167 of file mapserver.cpp.
References _descriptor, _index1, _index2, _shapedata, and Pol::Plib::RealmDescriptor::sizeEstimate().
Referenced by Pol::Plib::FileMapServer::sizeEstimate(), and Pol::Plib::InMemoryMapServer::sizeEstimate().
|
protected |
Definition at line 37 of file mapserver.h.
Referenced by Pol::Plib::FileMapServer::FileMapServer(), Pol::Plib::FileMapServer::GetMapCell(), Pol::Plib::InMemoryMapServer::GetMapCell(), GetMapShapes(), Pol::Plib::InMemoryMapServer::InMemoryMapServer(), LoadFirstLevelIndex(), LoadSecondLevelIndex(), LoadSolids(), and sizeEstimate().
|
private |
Definition at line 41 of file mapserver.h.
Referenced by GetMapShapes(), LoadFirstLevelIndex(), and sizeEstimate().
|
private |
Definition at line 42 of file mapserver.h.
Referenced by LoadFirstLevelIndex(), LoadSecondLevelIndex(), and sizeEstimate().
|
private |
Definition at line 43 of file mapserver.h.
Referenced by GetMapShapes(), LoadSecondLevelIndex(), LoadSolids(), and sizeEstimate().