TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
DynamicTreeIntersectionCallback Struct Reference

Public Member Functions

 DynamicTreeIntersectionCallback (uint32 phasemask)
 
bool operator() (const G3D::Ray &r, const GameObjectModel &obj, float &distance)
 
bool didHit () const
 

Public Attributes

bool did_hit
 
uint32 phase_mask
 

Constructor & Destructor Documentation

DynamicTreeIntersectionCallback::DynamicTreeIntersectionCallback ( uint32  phasemask)
inline
151 : did_hit(false), phase_mask(phasemask) { }
uint32 phase_mask
Definition: DynamicTree.cpp:150
bool did_hit
Definition: DynamicTree.cpp:149

Member Function Documentation

bool DynamicTreeIntersectionCallback::didHit ( ) const
inline
157 { return did_hit;}
bool did_hit
Definition: DynamicTree.cpp:149

+ Here is the caller graph for this function:

bool DynamicTreeIntersectionCallback::operator() ( const G3D::Ray r,
const GameObjectModel obj,
float &  distance 
)
inline
153  {
154  did_hit = obj.intersectRay(r, distance, true, phase_mask);
155  return did_hit;
156  }
double distance(double x, double y)
Definition: g3dmath.h:731
bool intersectRay(const G3D::Ray &Ray, float &MaxDist, bool StopAtFirstHit, uint32 ph_mask) const
Definition: GameObjectModel.cpp:156
uint32 phase_mask
Definition: DynamicTree.cpp:150
bool did_hit
Definition: DynamicTree.cpp:149

+ Here is the call graph for this function:

Member Data Documentation

bool DynamicTreeIntersectionCallback::did_hit
uint32 DynamicTreeIntersectionCallback::phase_mask

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