TrinityCore
DynamicMapTree Class Reference

#include <DynamicTree.h>

Public Member Functions

 DynamicMapTree ()
 
 ~DynamicMapTree ()
 
bool isInLineOfSight (G3D::Vector3 const &startPos, G3D::Vector3 const &endPos, PhaseShift const &phaseShift) const
 
bool getIntersectionTime (G3D::Ray const &ray, G3D::Vector3 const &endPos, PhaseShift const &phaseShift, float &maxDist) const
 
bool getObjectHitPos (G3D::Vector3 const &startPos, G3D::Vector3 const &endPos, G3D::Vector3 &resultHitPos, float modifyDist, PhaseShift const &phaseShift) const
 
float getHeight (float x, float y, float z, float maxSearchDist, PhaseShift const &phaseShift) const
 
bool getAreaAndLiquidData (float x, float y, float z, PhaseShift const &phaseShift, Optional< uint8 > reqLiquidType, VMAP::AreaAndLiquidData &data) const
 
void insert (GameObjectModel const &)
 
void remove (GameObjectModel const &)
 
bool contains (GameObjectModel const &) const
 
void balance ()
 
void update (uint32 diff)
 

Private Attributes

DynTreeImplimpl
 

Detailed Description

Definition at line 39 of file DynamicTree.h.

Constructor & Destructor Documentation

◆ DynamicMapTree()

DynamicMapTree::DynamicMapTree ( )

Definition at line 108 of file DynamicTree.cpp.

◆ ~DynamicMapTree()

DynamicMapTree::~DynamicMapTree ( )

Definition at line 110 of file DynamicTree.cpp.

Member Function Documentation

◆ balance()

void DynamicMapTree::balance ( )

Definition at line 130 of file DynamicTree.cpp.

+ Here is the call graph for this function:

◆ contains()

bool DynamicMapTree::contains ( GameObjectModel const &  mdl) const

Definition at line 125 of file DynamicTree.cpp.

+ Here is the call graph for this function:

◆ getAreaAndLiquidData()

bool DynamicMapTree::getAreaAndLiquidData ( float  x,
float  y,
float  z,
PhaseShift const &  phaseShift,
Optional< uint8 reqLiquidType,
VMAP::AreaAndLiquidData data 
) const

Definition at line 251 of file DynamicTree.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getHeight()

float DynamicMapTree::getHeight ( float  x,
float  y,
float  z,
float  maxSearchDist,
PhaseShift const &  phaseShift 
) const

Definition at line 238 of file DynamicTree.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getIntersectionTime()

bool DynamicMapTree::getIntersectionTime ( G3D::Ray const &  ray,
G3D::Vector3 const &  endPos,
PhaseShift const &  phaseShift,
float &  maxDist 
) const

Definition at line 176 of file DynamicTree.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getObjectHitPos()

bool DynamicMapTree::getObjectHitPos ( G3D::Vector3 const &  startPos,
G3D::Vector3 const &  endPos,
G3D::Vector3 &  resultHitPos,
float  modifyDist,
PhaseShift const &  phaseShift 
) const

Definition at line 186 of file DynamicTree.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ insert()

void DynamicMapTree::insert ( GameObjectModel const &  mdl)

Definition at line 115 of file DynamicTree.cpp.

+ Here is the call graph for this function:

◆ isInLineOfSight()

bool DynamicMapTree::isInLineOfSight ( G3D::Vector3 const &  startPos,
G3D::Vector3 const &  endPos,
PhaseShift const &  phaseShift 
) const

Definition at line 224 of file DynamicTree.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ remove()

void DynamicMapTree::remove ( GameObjectModel const &  mdl)

Definition at line 120 of file DynamicTree.cpp.

+ Here is the call graph for this function:

◆ update()

void DynamicMapTree::update ( uint32  diff)

Definition at line 135 of file DynamicTree.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ impl

DynTreeImpl* DynamicMapTree::impl
private

Definition at line 41 of file DynamicTree.h.


The documentation for this class was generated from the following files: