TrinityCore
Loading...
Searching...
No Matches
DynTreeImpl Struct Reference
+ Inheritance diagram for DynTreeImpl:

Public Types

typedef GameObjectModel Model
 
typedef ParentTree base
 
- Public Types inherited from RegularGrid2D< T, Node, NodeCreatorFunc, BoundsFunc >
enum  { CELL_NUMBER = 64 }
 
typedef std::unordered_multimap< T const *, 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 >
void insert (T const &value)
 
void remove (T const &value)
 
void balance ()
 
bool contains (T const &value) const
 
bool empty () const
 
Node & getGrid (int x, int y)
 
template<typename RayCallback >
void intersectRay (G3D::Ray const &ray, RayCallback &intersectCallback, float max_dist)
 
template<typename RayCallback >
void intersectRay (G3D::Ray const &ray, RayCallback &intersectCallback, float &max_dist, G3D::Vector3 const &end)
 
template<typename IsectCallback >
void intersectPoint (G3D::Vector3 const &point, IsectCallback &intersectCallback)
 
template<typename RayCallback >
void intersectZAllignedRay (G3D::Ray const &ray, RayCallback &intersectCallback, float &max_dist)
 
std::span< T const *const > getObjects (int x, int y) const
 

Public Attributes

TimeTracker rebalance_timer
 
int unbalanced_times
 
- Public Attributes inherited from RegularGrid2D< T, Node, NodeCreatorFunc, BoundsFunc >
MemberTable memberTable
 
std::unique_ptr< Node > nodes [CELL_NUMBER][CELL_NUMBER] = { }
 

Detailed Description

Definition at line 55 of file DynamicTree.cpp.

Member Typedef Documentation

◆ base

Definition at line 58 of file DynamicTree.cpp.

◆ Model

Definition at line 57 of file DynamicTree.cpp.

Constructor & Destructor Documentation

◆ DynTreeImpl()

DynTreeImpl::DynTreeImpl ( )
inline

Definition at line 60 of file DynamicTree.cpp.

Member Function Documentation

◆ balance()

void DynTreeImpl::balance ( )
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:

◆ insert()

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

Definition at line 66 of file DynamicTree.cpp.

+ Here is the call graph for this function:

◆ remove()

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

Definition at line 72 of file DynamicTree.cpp.

+ Here is the call graph for this function:

◆ update()

void DynTreeImpl::update ( uint32  difftime)
inline

Definition at line 84 of file DynamicTree.cpp.

+ Here is the call graph for this function:

Member Data Documentation

◆ rebalance_timer

TimeTracker DynTreeImpl::rebalance_timer

Definition at line 98 of file DynamicTree.cpp.

◆ unbalanced_times

int DynTreeImpl::unbalanced_times

Definition at line 99 of file DynamicTree.cpp.


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