TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
VMAP::LocationInfoCallback Class Reference

Public Member Functions

 LocationInfoCallback (ModelInstance *val, LocationInfo &info)
 
void operator() (const Vector3 &point, uint32 entry)
 

Public Attributes

ModelInstanceprims
 
LocationInfolocInfo
 
bool result
 

Constructor & Destructor Documentation

VMAP::LocationInfoCallback::LocationInfoCallback ( ModelInstance val,
LocationInfo info 
)
inline
72 : prims(val), locInfo(info), result(false) { }
LocationInfo & locInfo
Definition: MapTree.cpp:83
bool result
Definition: MapTree.cpp:84
ModelInstance * prims
Definition: MapTree.cpp:82

Member Function Documentation

void VMAP::LocationInfoCallback::operator() ( const Vector3 point,
uint32  entry 
)
inline
74  {
75 #ifdef VMAP_DEBUG
76  TC_LOG_DEBUG("maps", "LocationInfoCallback: trying to intersect '%s'", prims[entry].name.c_str());
77 #endif
78  if (prims[entry].GetLocationInfo(point, locInfo))
79  result = true;
80  }
LocationInfo & locInfo
Definition: MapTree.cpp:83
#define TC_LOG_DEBUG(filterType__,...)
Definition: Log.h:198
bool result
Definition: MapTree.cpp:84
ModelInstance * prims
Definition: MapTree.cpp:82

Member Data Documentation

LocationInfo& VMAP::LocationInfoCallback::locInfo
ModelInstance* VMAP::LocationInfoCallback::prims
bool VMAP::LocationInfoCallback::result

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