![]() |
TrinityCore
|
#include <VMapManager2.h>
Public Types | |
| typedef uint32(* | GetLiquidFlagsFn )(uint32 liquidType) |
| typedef bool(* | IsVMAPDisabledForFn )(uint32 entry, uint8 flags) |
Public Member Functions | |
| G3D::Vector3 | convertPositionToInternalRep (float x, float y, float z) const |
| VMapManager2 () | |
| ~VMapManager2 (void) | |
| void | InitializeThreadUnsafe (std::unordered_map< uint32, std::vector< uint32 >> const &mapData) |
| int | loadMap (const char *pBasePath, unsigned int mapId, int x, int y) override |
| void | unloadMap (unsigned int mapId, int x, int y) override |
| void | unloadMap (unsigned int mapId) override |
| bool | isInLineOfSight (unsigned int mapId, float x1, float y1, float z1, float x2, float y2, float z2) override |
| 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) override |
| float | getHeight (unsigned int mapId, float x, float y, float z, float maxSearchDist) override |
| bool | processCommand (char *) override |
| bool | getAreaInfo (unsigned int pMapId, float x, float y, float &z, uint32 &flags, int32 &adtId, int32 &rootId, int32 &groupId) const override |
| bool | GetLiquidLevel (uint32 pMapId, float x, float y, float z, uint8 reqLiquidType, float &level, float &floor, uint32 &type) const override |
| WorldModel * | acquireModelInstance (const std::string &basepath, const std::string &filename) |
| void | releaseModelInstance (const std::string &filename) |
| virtual std::string | getDirFileName (unsigned int mapId, int, int) const override |
| virtual bool | existsMap (const char *basePath, unsigned int mapId, int x, int y) override |
| void | getInstanceMapTree (InstanceTreeMap &instanceMapTree) |
Public Member Functions inherited from VMAP::IVMapManager | |
| IVMapManager () | |
| virtual | ~IVMapManager (void) |
| void | setEnableLineOfSightCalc (bool pVal) |
| void | setEnableHeightCalc (bool pVal) |
| bool | isLineOfSightCalcEnabled () const |
| bool | isHeightCalcEnabled () const |
| bool | isMapLoadingEnabled () const |
Static Public Member Functions | |
| static std::string | getMapFileName (unsigned int mapId) |
Public Attributes | |
| GetLiquidFlagsFn | GetLiquidFlagsPtr |
| IsVMAPDisabledForFn | IsVMAPDisabledForPtr |
Protected Member Functions | |
| bool | _loadMap (uint32 mapId, const std::string &basePath, uint32 tileX, uint32 tileY) |
| InstanceTreeMap::const_iterator | GetMapTree (uint32 mapId) const |
Static Protected Member Functions | |
| static uint32 | GetLiquidFlagsDummy (uint32) |
| static bool | IsVMAPDisabledForDummy (uint32, uint8) |
Protected Attributes | |
| ModelFileMap | iLoadedModelFiles |
| InstanceTreeMap | iInstanceMapTrees |
| bool | thread_safe_environment |
| std::mutex | LoadedModelFilesLock |
| VMAP::VMapManager2::VMapManager2 | ( | ) |
Here is the call graph for this function:| VMAP::VMapManager2::~VMapManager2 | ( | void | ) |
|
protected |
Here is the call graph for this function:
Here is the caller graph for this function:| WorldModel * VMAP::VMapManager2::acquireModelInstance | ( | const std::string & | basepath, |
| const std::string & | filename | ||
| ) |
Critical section, thread safe access to iLoadedModelFiles
Here is the call graph for this function:
Here is the caller graph for this function:| Vector3 VMAP::VMapManager2::convertPositionToInternalRep | ( | float | x, |
| float | y, | ||
| float | z | ||
| ) | const |
Here is the caller graph for this function:
|
overridevirtual |
Implements VMAP::IVMapManager.
Here is the call graph for this function:
|
overridevirtual |
Query world model area info.
| z | gets adjusted to the ground height for which this are info is valid |
Implements VMAP::IVMapManager.
Here is the call graph for this function:
|
inlineoverridevirtual |
Implements VMAP::IVMapManager.
|
overridevirtual |
get height or INVALID_HEIGHT if no height available
Implements VMAP::IVMapManager.
Here is the call graph for this function:| void VMAP::VMapManager2::getInstanceMapTree | ( | InstanceTreeMap & | instanceMapTree | ) |
|
overridevirtual |
Implements VMAP::IVMapManager.
Here is the call graph for this function:
|
static |
Here is the caller graph for this function:
|
protected |
Here is the caller graph for this function:
|
overridevirtual |
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.
Here is the call graph for this function:| void VMAP::VMapManager2::InitializeThreadUnsafe | ( | std::unordered_map< uint32, std::vector< uint32 >> const & | mapData | ) |
|
overridevirtual |
Implements VMAP::IVMapManager.
Here is the call graph for this function:
|
overridevirtual |
Implements VMAP::IVMapManager.
Here is the call graph for this function:
|
inlineoverridevirtual |
send debug commands
Implements VMAP::IVMapManager.
| void VMAP::VMapManager2::releaseModelInstance | ( | const std::string & | filename | ) |
Critical section, thread safe access to iLoadedModelFiles
Here is the caller graph for this function:
|
overridevirtual |
Implements VMAP::IVMapManager.
|
overridevirtual |
Implements VMAP::IVMapManager.
| GetLiquidFlagsFn VMAP::VMapManager2::GetLiquidFlagsPtr |
|
protected |
|
protected |
| IsVMAPDisabledForFn VMAP::VMapManager2::IsVMAPDisabledForPtr |
|
protected |
|
protected |
1.8.8