TrinityCore
DynTreeImpl Struct Reference
+ Inheritance diagram for DynTreeImpl:

Public Types

typedef GameObjectModel Model
 
typedef ParentTree base
 
- Public Types inherited from RegularGrid2D< T, Node, NodeCreatorFunc, BoundsFunc, PositionFunc >
enum  { CELL_NUMBER = 64 }
 
typedef std::unordered_multimap< const T *, Node * > MemberTable
 

Public Member Functions

 DynTreeImpl ()
 
void insert (Model const &mdl)
 
void remove (Model const &mdl)
 
void balance ()
 
void update (uint32 difftime)
 
- Public Member Functions inherited from RegularGrid2D< T, Node, NodeCreatorFunc, BoundsFunc, PositionFunc >
 RegularGrid2D ()
 
 ~RegularGrid2D ()
 
void insert (const T &value)
 
void remove (const T &value)
 
void balance ()
 
bool contains (const T &value) const
 
bool empty () const
 
Node & getGrid (int x, int y)
 
template<typename RayCallback >
void intersectRay (const G3D::Ray &ray, RayCallback &intersectCallback, float max_dist)
 
template<typename RayCallback >
void intersectRay (const G3D::Ray &ray, RayCallback &intersectCallback, float &max_dist, const G3D::Vector3 &end)
 
template<typename IsectCallback >
void intersectPoint (const G3D::Vector3 &point, IsectCallback &intersectCallback)
 
template<typename RayCallback >
void intersectZAllignedRay (const G3D::Ray &ray, RayCallback &intersectCallback, float &max_dist)
 

Public Attributes

TimeTracker rebalance_timer
 
int unbalanced_times
 
- Public Attributes inherited from RegularGrid2D< T, Node, NodeCreatorFunc, BoundsFunc, PositionFunc >
MemberTable memberTable
 
Node * nodes [CELL_NUMBER][CELL_NUMBER]
 

Detailed Description

Definition at line 61 of file DynamicTree.cpp.

Member Typedef Documentation

◆ base

Definition at line 64 of file DynamicTree.cpp.

◆ Model

Definition at line 63 of file DynamicTree.cpp.

Constructor & Destructor Documentation

◆ DynTreeImpl()

DynTreeImpl::DynTreeImpl ( )
inline

Definition at line 66 of file DynamicTree.cpp.

Member Function Documentation

◆ balance()

void DynTreeImpl::balance ( )
inline

Definition at line 84 of file DynamicTree.cpp.

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

◆ insert()

void DynTreeImpl::insert ( Model const &  mdl)
inline

Definition at line 72 of file DynamicTree.cpp.

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

◆ remove()

void DynTreeImpl::remove ( Model const &  mdl)
inline

Definition at line 78 of file DynamicTree.cpp.

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

◆ update()

void DynTreeImpl::update ( uint32  difftime)
inline

Definition at line 90 of file DynamicTree.cpp.

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

Member Data Documentation

◆ rebalance_timer

TimeTracker DynTreeImpl::rebalance_timer

Definition at line 104 of file DynamicTree.cpp.

◆ unbalanced_times

int DynTreeImpl::unbalanced_times

Definition at line 105 of file DynamicTree.cpp.


The documentation for this struct was generated from the following file: