![]() |
TrinityCore
|
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] = { } |
Definition at line 55 of file DynamicTree.cpp.
| typedef ParentTree DynTreeImpl::base |
Definition at line 58 of file DynamicTree.cpp.
| typedef GameObjectModel DynTreeImpl::Model |
Definition at line 57 of file DynamicTree.cpp.
|
inline |
Definition at line 60 of file DynamicTree.cpp.
|
inline |
Definition at line 78 of file DynamicTree.cpp.
References RegularGrid2D< T, Node, NodeCreatorFunc, BoundsFunc >::balance(), and unbalanced_times.
Referenced by update().
|
inline |
Definition at line 66 of file DynamicTree.cpp.
References RegularGrid2D< T, Node, NodeCreatorFunc, BoundsFunc >::insert(), and unbalanced_times.
|
inline |
Definition at line 72 of file DynamicTree.cpp.
References RegularGrid2D< T, Node, NodeCreatorFunc, BoundsFunc >::remove(), and unbalanced_times.
|
inline |
Definition at line 84 of file DynamicTree.cpp.
References balance(), RegularGrid2D< T, Node, NodeCreatorFunc, BoundsFunc >::empty(), TimeTracker::Passed(), rebalance_timer, TimeTracker::Reset(), unbalanced_times, and TimeTracker::Update().
| TimeTracker DynTreeImpl::rebalance_timer |
Definition at line 98 of file DynamicTree.cpp.
Referenced by update().
| int DynTreeImpl::unbalanced_times |