AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
DynamicTreeLocationInfoCallback Struct Reference

Public Member Functions

 DynamicTreeLocationInfoCallback (uint32 phaseMask)
 
void operator() (G3D::Vector3 const &p, GameObjectModel const &obj)
 
VMAP::LocationInfoGetLocationInfo ()
 
GameObjectModel const * GetHitModel () const
 

Private Attributes

uint32 _phaseMask
 
VMAP::LocationInfo _locationInfo
 
GameObjectModel const * _hitModel
 

Detailed Description

Constructor & Destructor Documentation

◆ DynamicTreeLocationInfoCallback()

DynamicTreeLocationInfoCallback::DynamicTreeLocationInfoCallback ( uint32  phaseMask)
inline
195 : _phaseMask(phaseMask), _hitModel(nullptr) {}
GameObjectModel const * _hitModel
Definition: DynamicTree.cpp:215
uint32 _phaseMask
Definition: DynamicTree.cpp:213

Member Function Documentation

◆ GetHitModel()

GameObjectModel const * DynamicTreeLocationInfoCallback::GetHitModel ( ) const
inline
208 {
209 return _hitModel;
210 }

References _hitModel.

Referenced by DynamicMapTree::GetAreaAndLiquidData().

◆ GetLocationInfo()

VMAP::LocationInfo & DynamicTreeLocationInfoCallback::GetLocationInfo ( )
inline
204 {
205 return _locationInfo;
206 }
VMAP::LocationInfo _locationInfo
Definition: DynamicTree.cpp:214

References _locationInfo.

Referenced by DynamicMapTree::GetAreaAndLiquidData().

◆ operator()()

void DynamicTreeLocationInfoCallback::operator() ( G3D::Vector3 const &  p,
GameObjectModel const &  obj 
)
inline
198 {
199 if (obj.GetLocationInfo(p, _locationInfo, _phaseMask))
200 _hitModel = &obj;
201 }

References _hitModel, _locationInfo, _phaseMask, and GameObjectModel::GetLocationInfo().

Member Data Documentation

◆ _hitModel

GameObjectModel const* DynamicTreeLocationInfoCallback::_hitModel
private

Referenced by GetHitModel(), and operator()().

◆ _locationInfo

VMAP::LocationInfo DynamicTreeLocationInfoCallback::_locationInfo
private

Referenced by GetLocationInfo(), and operator()().

◆ _phaseMask

uint32 DynamicTreeLocationInfoCallback::_phaseMask
private

Referenced by operator()().