|
Project SkyFire Core
SkyFire 5.4.8 server core API documentation
|
#include <VMapManager2.h>
Public Member Functions | |
| WorldModel * | acquireModelInstance (const std::string &basepath, const std::string &filename) |
| G3D::Vector3 | convertPositionToInternalRep (float x, float y, float z) const |
| virtual bool | existsMap (const char *basePath, unsigned int mapId, int x, int y) |
| bool | getAreaInfo (unsigned int pMapId, float x, float y, float &z, uint32 &flags, int32 &adtId, int32 &rootId, int32 &groupId) const |
| virtual std::string | getDirFileName (unsigned int mapId, int, int) const |
| float | getHeight (unsigned int mapId, float x, float y, float z, float maxSearchDist) |
| void | getInstanceMapTree (InstanceTreeMap &instanceMapTree) |
| bool | GetLiquidLevel (uint32 pMapId, float x, float y, float z, uint8 reqLiquidType, float &level, float &floor, uint32 &type) const |
| 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) |
| int | loadMap (const char *pBasePath, unsigned int mapId, int x, int y) |
| bool | processCommand (char *) |
| void | releaseModelInstance (const std::string &filename) |
| void | unloadMap (unsigned int mapId) |
| void | unloadMap (unsigned int mapId, int x, int y) |
| VMapManager2 () | |
| ~VMapManager2 (void) | |
| Public Member Functions inherited from VMAP::IVMapManager | |
| bool | isHeightCalcEnabled () const |
| bool | isLineOfSightCalcEnabled () const |
| bool | isMapLoadingEnabled () const |
| IVMapManager () | |
| void | setEnableHeightCalc (bool pVal) |
| void | setEnableLineOfSightCalc (bool pVal) |
| virtual | ~IVMapManager (void) |
Static Public Member Functions | |
| static std::string | getMapFileName (unsigned int mapId) |
Protected Member Functions | |
| bool | _loadMap (uint32 mapId, const std::string &basePath, uint32 tileX, uint32 tileY) |
Protected Attributes | |
| InstanceTreeMap | iInstanceMapTrees |
| ModelFileMap | iLoadedModelFiles |
| std::mutex | LoadedModelFilesLock |
Definition at line 56 of file VMapManager2.h.
| VMAP::VMapManager2::VMapManager2 | ( | ) |
Definition at line 25 of file VMapManager2.cpp.
| VMAP::VMapManager2::~VMapManager2 | ( | void | ) |
Definition at line 29 of file VMapManager2.cpp.
References iInstanceMapTrees, and iLoadedModelFiles.
|
protected |
Definition at line 77 of file VMapManager2.cpp.
References getMapFileName(), iInstanceMapTrees, and VMAP::StaticMapTree::InitMap().
Referenced by loadMap().
| WorldModel * VMAP::VMapManager2::acquireModelInstance | ( | const std::string & | basepath, |
| const std::string & | filename ) |
Critical section, thread safe access to iLoadedModelFiles
Definition at line 238 of file VMapManager2.cpp.
References iLoadedModelFiles, LoadedModelFilesLock, VMAP::WorldModel::readFile(), VMAP_DEBUG_LOG, and VMAP_ERROR_LOG.
Referenced by VMAP::StaticMapTree::InitMap(), and VMAP::StaticMapTree::LoadMapTile().
| Vector3 VMAP::VMapManager2::convertPositionToInternalRep | ( | float | x, |
| float | y, | ||
| float | z ) const |
Definition at line 41 of file VMapManager2.cpp.
Referenced by getAreaInfo(), getHeight(), GetLiquidLevel(), getObjectHitPos(), and isInLineOfSight().
|
virtual |
Implements VMAP::IVMapManager.
Definition at line 280 of file VMapManager2.cpp.
References VMAP::StaticMapTree::CanLoadMap().
|
virtual |
Query world model area info.
| z | gets adjusted to the ground height for which this are info is valid |
Implements VMAP::IVMapManager.
Definition at line 195 of file VMapManager2.cpp.
References convertPositionToInternalRep(), DISABLE_TYPE_VMAP, iInstanceMapTrees, DisableMgr::IsDisabledFor(), and VMAP_DISABLE_AREAFLAG.
|
inlinevirtual |
Implements VMAP::IVMapManager.
Definition at line 97 of file VMapManager2.h.
References getMapFileName().
|
virtual |
get height or INVALID_HEIGHT if no height available
Implements VMAP::IVMapManager.
Definition at line 176 of file VMapManager2.cpp.
References convertPositionToInternalRep(), DISABLE_TYPE_VMAP, iInstanceMapTrees, DisableMgr::IsDisabledFor(), VMAP::IVMapManager::isHeightCalcEnabled(), VMAP_DISABLE_HEIGHT, and VMAP_INVALID_HEIGHT_VALUE.
| void VMAP::VMapManager2::getInstanceMapTree | ( | InstanceTreeMap & | instanceMapTree | ) |
Definition at line 25 of file VMapExtensions.cpp.
References iInstanceMapTrees.
|
virtual |
Implements VMAP::IVMapManager.
Definition at line 213 of file VMapManager2.cpp.
References ASSERT, convertPositionToInternalRep(), DISABLE_TYPE_VMAP, GetLiquidFlags(), VMAP::ModelInstance::GetLiquidLevel(), VMAP::GroupModel::GetLiquidType(), VMAP::LocationInfo::ground_Z, VMAP::LocationInfo::hitInstance, VMAP::LocationInfo::hitModel, iInstanceMapTrees, DisableMgr::IsDisabledFor(), and VMAP_DISABLE_LIQUIDSTATUS.
|
static |
Definition at line 53 of file VMapManager2.cpp.
References MAP_FILENAME_EXTENSION2.
Referenced by _loadMap(), VMAP::StaticMapTree::CanLoadMap(), and getDirFileName().
|
virtual |
fill the hit pos and return true, if an object was hit
get the hit position and return true if we hit something otherwise the result pos will be the dest pos
Implements VMAP::IVMapManager.
Definition at line 146 of file VMapManager2.cpp.
References convertPositionToInternalRep(), DISABLE_TYPE_VMAP, iInstanceMapTrees, DisableMgr::IsDisabledFor(), VMAP::IVMapManager::isLineOfSightCalcEnabled(), and VMAP_DISABLE_LOS.
|
virtual |
Implements VMAP::IVMapManager.
Definition at line 123 of file VMapManager2.cpp.
References convertPositionToInternalRep(), DISABLE_TYPE_VMAP, iInstanceMapTrees, DisableMgr::IsDisabledFor(), VMAP::IVMapManager::isLineOfSightCalcEnabled(), and VMAP_DISABLE_LOS.
|
virtual |
Implements VMAP::IVMapManager.
Definition at line 62 of file VMapManager2.cpp.
References _loadMap(), VMAP::IVMapManager::isMapLoadingEnabled(), VMAP::VMAP_LOAD_RESULT_ERROR, VMAP::VMAP_LOAD_RESULT_IGNORED, and VMAP::VMAP_LOAD_RESULT_OK.
|
inlinevirtual |
| void VMAP::VMapManager2::releaseModelInstance | ( | const std::string & | filename | ) |
Critical section, thread safe access to iLoadedModelFiles
Definition at line 261 of file VMapManager2.cpp.
References iLoadedModelFiles, LoadedModelFilesLock, VMAP_DEBUG_LOG, and VMAP_ERROR_LOG.
Referenced by VMAP::StaticMapTree::UnloadMap(), and VMAP::StaticMapTree::UnloadMapTile().
|
virtual |
Implements VMAP::IVMapManager.
Definition at line 95 of file VMapManager2.cpp.
References iInstanceMapTrees.
|
virtual |
Implements VMAP::IVMapManager.
Definition at line 109 of file VMapManager2.cpp.
References iInstanceMapTrees.
|
protected |
Definition at line 61 of file VMapManager2.h.
Referenced by _loadMap(), getAreaInfo(), getHeight(), getInstanceMapTree(), GetLiquidLevel(), getObjectHitPos(), isInLineOfSight(), unloadMap(), unloadMap(), and ~VMapManager2().
|
protected |
Definition at line 60 of file VMapManager2.h.
Referenced by acquireModelInstance(), releaseModelInstance(), and ~VMapManager2().
|
protected |
Definition at line 63 of file VMapManager2.h.
Referenced by acquireModelInstance(), and releaseModelInstance().