TrinityCore
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
DynamicMapTree Class Reference

#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

DynTreeImplimpl
 

Detailed Description

Definition at line 38 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,
uint32  phasemask,
Optional< uint8 reqLiquidType,
VMAP::AreaAndLiquidData data 
) const

Definition at line 252 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,
uint32  phasemask 
) const

Definition at line 239 of file DynamicTree.cpp.

+ Here is the call graph for this function:

◆ getIntersectionTime()

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

Definition at line 172 of file DynamicTree.cpp.

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

◆ 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.

+ 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 ( float  x1,
float  y1,
float  z1,
float  x2,
float  y2,
float  z2,
uint32  phasemask 
) const

Definition at line 223 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 40 of file DynamicTree.h.


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