![]() |
TrinityCore
|
#include <DynamicTree.h>
Public Member Functions | |
| DynamicMapTree () | |
| ~DynamicMapTree () | |
| bool | isInLineOfSight (float x1, float y1, float z1, float x2, float y2, float z2, uint32 phasemask) const |
| bool | getIntersectionTime (uint32 phasemask, const G3D::Ray &ray, const G3D::Vector3 &endPos, float &maxDist) const |
| bool | getAreaAndLiquidData (float x, float y, float z, uint32 phasemask, Optional< uint8 > reqLiquidType, VMAP::AreaAndLiquidData &data) const |
| bool | getObjectHitPos (uint32 phasemask, const G3D::Vector3 &pPos1, const G3D::Vector3 &pPos2, G3D::Vector3 &pResultHitPos, float pModifyDist) const |
| float | getHeight (float x, float y, float z, float maxSearchDist, uint32 phasemask) const |
| void | insert (GameObjectModel const &) |
| void | remove (GameObjectModel const &) |
| bool | contains (GameObjectModel const &) const |
| void | balance () |
| void | update (uint32 diff) |
Private Attributes | |
| DynTreeImpl * | impl |
Definition at line 38 of file DynamicTree.h.
| DynamicMapTree::DynamicMapTree | ( | ) |
Definition at line 108 of file DynamicTree.cpp.
| DynamicMapTree::~DynamicMapTree | ( | ) |
Definition at line 110 of file DynamicTree.cpp.
References impl.
| void DynamicMapTree::balance | ( | ) |
Definition at line 130 of file DynamicTree.cpp.
References DynTreeImpl::balance(), and impl.
| bool DynamicMapTree::contains | ( | GameObjectModel const & | mdl | ) | const |
Definition at line 125 of file DynamicTree.cpp.
References RegularGrid2D< T, Node, NodeCreatorFunc, BoundsFunc, PositionFunc >::contains(), and impl.
| bool DynamicMapTree::getAreaAndLiquidData | ( | float | x, |
| float | y, | ||
| float | z, | ||
| uint32 | phasemask, | ||
| Optional< uint8 > | reqLiquidType, | ||
| VMAP::AreaAndLiquidData & | data | ||
| ) | const |
Definition at line 252 of file DynamicTree.cpp.
References VMAP::AreaAndLiquidData::areaInfo, VMAP::VMapFactory::createOrGetVMapManager(), VMAP::AreaAndLiquidData::floorZ, DynamicTreeLocationInfoCallback::GetHitModel(), GameObjectModel::GetLiquidLevel(), VMAP::GroupModel::GetLiquidType(), DynamicTreeLocationInfoCallback::GetLocationInfo(), VMAP::GroupModel::GetMogpFlags(), VMAP::GroupModel::GetWmoID(), VMAP::LocationInfo::ground_Z, VMAP::LocationInfo::hitModel, impl, RegularGrid2D< T, Node, NodeCreatorFunc, BoundsFunc, PositionFunc >::intersectPoint(), VMAP::AreaAndLiquidData::liquidInfo, and VMAP::LocationInfo::rootId.
Referenced by Map::GetAreaInfo(), and Map::GetFullTerrainStatusForPosition().
| float DynamicMapTree::getHeight | ( | float | x, |
| float | y, | ||
| float | z, | ||
| float | maxSearchDist, | ||
| uint32 | phasemask | ||
| ) | const |
Definition at line 239 of file DynamicTree.cpp.
References DynamicTreeIntersectionCallback::didHit(), impl, and RegularGrid2D< T, Node, NodeCreatorFunc, BoundsFunc, PositionFunc >::intersectZAllignedRay().
| bool DynamicMapTree::getIntersectionTime | ( | uint32 | phasemask, |
| const G3D::Ray & | ray, | ||
| const G3D::Vector3 & | endPos, | ||
| float & | maxDist | ||
| ) | const |
Definition at line 172 of file DynamicTree.cpp.
References DynamicTreeIntersectionCallback::didHit(), impl, and RegularGrid2D< T, Node, NodeCreatorFunc, BoundsFunc, PositionFunc >::intersectRay().
Referenced by getObjectHitPos().
| bool DynamicMapTree::getObjectHitPos | ( | uint32 | phasemask, |
| const G3D::Vector3 & | pPos1, | ||
| const G3D::Vector3 & | pPos2, | ||
| G3D::Vector3 & | pResultHitPos, | ||
| float | pModifyDist | ||
| ) | const |
Definition at line 183 of file DynamicTree.cpp.
References ASSERT, and getIntersectionTime().
Referenced by Map::getObjectHitPos().
| void DynamicMapTree::insert | ( | GameObjectModel const & | mdl | ) |
Definition at line 115 of file DynamicTree.cpp.
References impl, and DynTreeImpl::insert().
| bool DynamicMapTree::isInLineOfSight | ( | float | x1, |
| float | y1, | ||
| float | z1, | ||
| float | x2, | ||
| float | y2, | ||
| float | z2, | ||
| uint32 | phasemask | ||
| ) | const |
Definition at line 223 of file DynamicTree.cpp.
References DynamicTreeIntersectionCallback::did_hit, impl, and RegularGrid2D< T, Node, NodeCreatorFunc, BoundsFunc, PositionFunc >::intersectRay().
Referenced by Map::isInLineOfSight().
| void DynamicMapTree::remove | ( | GameObjectModel const & | mdl | ) |
Definition at line 120 of file DynamicTree.cpp.
References impl, and DynTreeImpl::remove().
| void DynamicMapTree::update | ( | uint32 | diff | ) |
Definition at line 135 of file DynamicTree.cpp.
References impl, and DynTreeImpl::update().
Referenced by Map::Update().
|
private |
Definition at line 40 of file DynamicTree.h.
Referenced by balance(), contains(), getAreaAndLiquidData(), getHeight(), getIntersectionTime(), insert(), isInLineOfSight(), remove(), update(), and ~DynamicMapTree().