16#define MAP_FILENAME_EXTENSION2 ".vmtree"
18#define FILENAMEBUFFER_SIZE 500
76 int loadMap(
const char* pBasePath,
unsigned int mapId,
int x,
int y);
78 void unloadMap(
unsigned int mapId,
int x,
int y);
81 bool isInLineOfSight(
unsigned int mapId,
float x1,
float y1,
float z1,
float x2,
float y2,
float z2) ;
85 bool getObjectHitPos(
unsigned int mapId,
float x1,
float y1,
float z1,
float x2,
float y2,
float z2,
float& rx,
float& ry,
float& rz,
float modifyDist);
86 float getHeight(
unsigned int mapId,
float x,
float y,
float z,
float maxSearchDist);
101 virtual bool existsMap(
const char* basePath,
unsigned int mapId,
int x,
int y);
void setModel(WorldModel *model)
int loadMap(const char *pBasePath, unsigned int mapId, int x, int y)
G3D::Vector3 convertPositionToInternalRep(float x, float y, float z) const
void releaseModelInstance(const std::string &filename)
std::mutex LoadedModelFilesLock
ModelFileMap iLoadedModelFiles
virtual bool existsMap(const char *basePath, unsigned int mapId, int x, int y)
virtual std::string getDirFileName(unsigned int mapId, int, int) const
void getInstanceMapTree(InstanceTreeMap &instanceMapTree)
bool processCommand(char *)
bool getAreaInfo(unsigned int pMapId, float x, float y, float &z, uint32 &flags, int32 &adtId, int32 &rootId, int32 &groupId) const
WorldModel * acquireModelInstance(const std::string &basepath, const std::string &filename)
void unloadMap(unsigned int mapId, int x, int y)
float getHeight(unsigned int mapId, float x, float y, float z, float maxSearchDist)
bool getObjectHitPos(unsigned int mapId, float x1, float y1, float z1, float x2, float y2, float z2, float &rx, float &ry, float &rz, float modifyDist)
bool isInLineOfSight(unsigned int mapId, float x1, float y1, float z1, float x2, float y2, float z2)
InstanceTreeMap iInstanceMapTrees
static std::string getMapFileName(unsigned int mapId)
bool _loadMap(uint32 mapId, const std::string &basePath, uint32 tileX, uint32 tileY)
bool GetLiquidLevel(uint32 pMapId, float x, float y, float z, uint8 reqLiquidType, float &level, float &floor, uint32 &type) const
UNORDERED_MAP< uint32, StaticMapTree * > InstanceTreeMap
UNORDERED_MAP< std::string, ManagedModel > ModelFileMap