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

Public Member Functions

 ThunderingStormCheck (WorldObject *source)
 
bool operator() (WorldObject *obj)
 

Private Attributes

WorldObject const_source
 

Constructor & Destructor Documentation

ThunderingStormCheck::ThunderingStormCheck ( WorldObject source)
inline
241 : _source(source) { }
WorldObject const * _source
Definition: boss_murmur.cpp:250

Member Function Documentation

bool ThunderingStormCheck::operator() ( WorldObject obj)
inline
244  {
245  float distSq = _source->GetExactDist2dSq(obj);
246  return distSq < (25.0f * 25.0f) || distSq > (100.0f * 100.0f);
247  }
float GetExactDist2dSq(float x, float y) const
Definition: Position.h:132
WorldObject const * _source
Definition: boss_murmur.cpp:250

+ Here is the call graph for this function:

Member Data Documentation

WorldObject const* ThunderingStormCheck::_source
private

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