Project SkyFire Core
SkyFire 5.4.8 server core API documentation
Loading...
Searching...
No Matches
DynTreeImpl Struct Reference
Inheritance diagram for DynTreeImpl:
Collaboration diagram for DynTreeImpl:

Public Types

typedef ParentTree base
typedef GameObjectModel Model
Public Types inherited from RegularGrid2D< GameObjectModel, BIHWrap< GameObjectModel > >
enum  
typedef G3D::Table< const GameObjectModel *, BIHWrap< GameObjectModel > * > MemberTable

Public Member Functions

void balance ()
 DynTreeImpl ()
void insert (const Model &mdl)
void remove (const Model &mdl)
void update (uint32 difftime)
Public Member Functions inherited from RegularGrid2D< GameObjectModel, BIHWrap< GameObjectModel > >
void balance ()
bool contains (const GameObjectModel &value) const
BIHWrap< GameObjectModel > & getGrid (int x, int y)
BIHWrap< GameObjectModel > & getGridFor (float fx, float fy)
void insert (const GameObjectModel &value)
void intersectPoint (const G3D::Vector3 &point, IsectCallback &intersectCallback)
void intersectRay (const G3D::Ray &ray, RayCallback &intersectCallback, float &max_dist, const G3D::Vector3 &end)
void intersectRay (const G3D::Ray &ray, RayCallback &intersectCallback, float max_dist)
void intersectZAllignedRay (const G3D::Ray &ray, RayCallback &intersectCallback, float &max_dist)
 RegularGrid2D ()
void remove (const GameObjectModel &value)
int size () const
 ~RegularGrid2D ()

Public Attributes

TimeTrackerSmall rebalance_timer
int unbalanced_times
Public Attributes inherited from RegularGrid2D< GameObjectModel, BIHWrap< GameObjectModel > >
MemberTable memberTable
BIHWrap< GameObjectModel > * nodes [CELL_NUMBER][CELL_NUMBER]

Detailed Description

Definition at line 50 of file DynamicTree.cpp.

Member Typedef Documentation

◆ base

Definition at line 53 of file DynamicTree.cpp.

◆ Model

Definition at line 52 of file DynamicTree.cpp.

Constructor & Destructor Documentation

◆ DynTreeImpl()

DynTreeImpl::DynTreeImpl ( )
inline

Definition at line 55 of file DynamicTree.cpp.

References rebalance_timer, and unbalanced_times.

Member Function Documentation

◆ balance()

void DynTreeImpl::balance ( )
inline

◆ insert()

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

◆ remove()

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

◆ update()

void DynTreeImpl::update ( uint32 difftime)
inline

Member Data Documentation

◆ rebalance_timer

TimeTrackerSmall DynTreeImpl::rebalance_timer

Definition at line 93 of file DynamicTree.cpp.

Referenced by DynTreeImpl(), and update().

◆ unbalanced_times

int DynTreeImpl::unbalanced_times

Definition at line 94 of file DynamicTree.cpp.

Referenced by balance(), DynTreeImpl(), insert(), remove(), and update().


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