Project SkyFire Core
SkyFire 5.4.8 server core API documentation
Loading...
Searching...
No Matches
DynamicMapTree Class Reference

#include <DynamicTree.h>

Collaboration diagram for DynamicMapTree:

Public Member Functions

void balance ()
bool contains (const GameObjectModel &) const
 DynamicMapTree ()
float getHeight (float x, float y, float z, float maxSearchDist, uint32 phasemask) const
bool getIntersectionTime (uint32 phasemask, const G3D::Ray &ray, const G3D::Vector3 &endPos, float &maxDist) const
bool getObjectHitPos (uint32 phasemask, const G3D::Vector3 &pPos1, const G3D::Vector3 &pPos2, G3D::Vector3 &pResultHitPos, float pModifyDist) const
void insert (const GameObjectModel &)
bool isInLineOfSight (float x1, float y1, float z1, float x2, float y2, float z2, uint32 phasemask) const
void remove (const GameObjectModel &)
int size () const
void update (uint32 diff)
 ~DynamicMapTree ()

Private Attributes

DynTreeImplimpl

Detailed Description

Definition at line 21 of file DynamicTree.h.

Constructor & Destructor Documentation

◆ DynamicMapTree()

DynamicMapTree::DynamicMapTree ( )

Definition at line 97 of file DynamicTree.cpp.

References impl.

◆ ~DynamicMapTree()

DynamicMapTree::~DynamicMapTree ( )

Definition at line 99 of file DynamicTree.cpp.

References impl.

Member Function Documentation

◆ balance()

void DynamicMapTree::balance ( )

Definition at line 119 of file DynamicTree.cpp.

References impl.

◆ contains()

bool DynamicMapTree::contains ( const GameObjectModel & mdl) const

Definition at line 114 of file DynamicTree.cpp.

References impl.

◆ getHeight()

float DynamicMapTree::getHeight ( float x,
float y,
float z,
float maxSearchDist,
uint32 phasemask ) const

Definition at line 236 of file DynamicTree.cpp.

References DynamicTreeIntersectionCallback::didHit(), and impl.

◆ getIntersectionTime()

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

Definition at line 169 of file DynamicTree.cpp.

References DynamicTreeIntersectionCallback::didHit(), and impl.

Referenced by getObjectHitPos().

◆ getObjectHitPos()

bool DynamicMapTree::getObjectHitPos ( uint32 phasemask,
const G3D::Vector3 & pPos1,
const G3D::Vector3 & pPos2,
G3D::Vector3 & pResultHitPos,
float pModifyDist ) const

Definition at line 180 of file DynamicTree.cpp.

References ASSERT, and getIntersectionTime().

◆ insert()

void DynamicMapTree::insert ( const GameObjectModel & mdl)

Definition at line 104 of file DynamicTree.cpp.

References impl.

◆ isInLineOfSight()

bool DynamicMapTree::isInLineOfSight ( float x1,
float y1,
float z1,
float x2,
float y2,
float z2,
uint32 phasemask ) const

Definition at line 220 of file DynamicTree.cpp.

References DynamicTreeIntersectionCallback::did_hit, and impl.

◆ remove()

void DynamicMapTree::remove ( const GameObjectModel & mdl)

Definition at line 109 of file DynamicTree.cpp.

References impl.

◆ size()

int DynamicMapTree::size ( ) const

Definition at line 124 of file DynamicTree.cpp.

References impl.

◆ update()

void DynamicMapTree::update ( uint32 diff)

Definition at line 129 of file DynamicTree.cpp.

References impl.

Member Data Documentation

◆ impl


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