![]() |
TrinityCore
|
#include <MapTree.h>
Public Member Functions | |
| StaticMapTree (uint32 mapID, const std::string &basePath) | |
| ~StaticMapTree () | |
| Make sure to call unloadMap() to unregister acquired model references before destroying. More... | |
| bool | isInLineOfSight (const G3D::Vector3 &pos1, const G3D::Vector3 &pos2) const |
| bool | getObjectHitPos (const G3D::Vector3 &pos1, const G3D::Vector3 &pos2, G3D::Vector3 &pResultHitPos, float pModifyDist) const |
| float | getHeight (const G3D::Vector3 &pPos, float maxSearchDist) const |
| bool | getAreaInfo (G3D::Vector3 &pos, uint32 &flags, int32 &adtId, int32 &rootId, int32 &groupId) const |
| bool | GetLocationInfo (const G3D::Vector3 &pos, LocationInfo &info) const |
| bool | InitMap (const std::string &fname, VMapManager2 *vm) |
| void | UnloadMap (VMapManager2 *vm) |
| bool | LoadMapTile (uint32 tileX, uint32 tileY, VMapManager2 *vm) |
| void | UnloadMapTile (uint32 tileX, uint32 tileY, VMapManager2 *vm) |
| bool | isTiled () const |
| uint32 | numLoadedTiles () const |
| void | getModelInstances (ModelInstance *&models, uint32 &count) |
Static Public Member Functions | |
| static std::string | getTileFileName (uint32 mapID, uint32 tileX, uint32 tileY) |
| static uint32 | packTileID (uint32 tileX, uint32 tileY) |
| static void | unpackTileID (uint32 ID, uint32 &tileX, uint32 &tileY) |
| static bool | CanLoadMap (const std::string &basePath, uint32 mapID, uint32 tileX, uint32 tileY) |
Private Types | |
| typedef std::unordered_map < uint32, bool > | loadedTileMap |
| typedef std::unordered_map < uint32, uint32 > | loadedSpawnMap |
Private Member Functions | |
| bool | getIntersectionTime (const G3D::Ray &pRay, float &pMaxDist, bool pStopAtFirstHit) const |
| StaticMapTree (StaticMapTree const &right)=delete | |
| StaticMapTree & | operator= (StaticMapTree const &right)=delete |
Private Attributes | |
| uint32 | iMapID |
| bool | iIsTiled |
| BIH | iTree |
| ModelInstance * | iTreeValues |
| uint32 | iNTreeValues |
| loadedTileMap | iLoadedTiles |
| loadedSpawnMap | iLoadedSpawns |
| std::string | iBasePath |
|
private |
|
private |
| VMAP::StaticMapTree::~StaticMapTree | ( | ) |
Make sure to call unloadMap() to unregister acquired model references before destroying.
|
privatedelete |
|
static |
Here is the call graph for this function:
Here is the caller graph for this function:| bool VMAP::StaticMapTree::getAreaInfo | ( | G3D::Vector3 & | pos, |
| uint32 & | flags, | ||
| int32 & | adtId, | ||
| int32 & | rootId, | ||
| int32 & | groupId | ||
| ) | const |
Here is the call graph for this function:| float VMAP::StaticMapTree::getHeight | ( | const G3D::Vector3 & | pPos, |
| float | maxSearchDist | ||
| ) | const |
Here is the call graph for this function:
|
private |
If intersection is found within pMaxDist, sets pMaxDist to intersection distance and returns true. Else, pMaxDist is not modified and returns false;
Here is the call graph for this function:
Here is the caller graph for this function:| bool VMAP::StaticMapTree::GetLocationInfo | ( | const G3D::Vector3 & | pos, |
| LocationInfo & | info | ||
| ) | const |
Here is the call graph for this function:| void VMAP::StaticMapTree::getModelInstances | ( | ModelInstance *& | models, |
| uint32 & | count | ||
| ) |
| bool VMAP::StaticMapTree::getObjectHitPos | ( | const G3D::Vector3 & | pos1, |
| const G3D::Vector3 & | pos2, | ||
| G3D::Vector3 & | pResultHitPos, | ||
| float | pModifyDist | ||
| ) | const |
When moving from pos1 to pos2 check if we hit an object. Return true and the position if we hit one Return the hit pos or the original dest pos
Here is the call graph for this function:
|
static |
Here is the caller graph for this function:| bool VMAP::StaticMapTree::InitMap | ( | const std::string & | fname, |
| VMapManager2 * | vm | ||
| ) |
Here is the call graph for this function:
Here is the caller graph for this function:| bool VMAP::StaticMapTree::isInLineOfSight | ( | const G3D::Vector3 & | pos1, |
| const G3D::Vector3 & | pos2 | ||
| ) | const |
Here is the call graph for this function:
|
inline |
| bool VMAP::StaticMapTree::LoadMapTile | ( | uint32 | tileX, |
| uint32 | tileY, | ||
| VMapManager2 * | vm | ||
| ) |
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
|
privatedelete |
| void VMAP::StaticMapTree::UnloadMap | ( | VMapManager2 * | vm | ) |
Here is the call graph for this function:| void VMAP::StaticMapTree::UnloadMapTile | ( | uint32 | tileX, |
| uint32 | tileY, | ||
| VMapManager2 * | vm | ||
| ) |
Here is the call graph for this function:
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
1.8.8