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

Public Member Functions

 MoltenEggCheck (Creature *pile)
 
bool operator() (Unit *object) const
 

Private Attributes

Creature_eggPile
 

Constructor & Destructor Documentation

MoltenEggCheck::MoltenEggCheck ( Creature pile)
inlineexplicit
120 : _eggPile(pile) { }
Creature * _eggPile
Definition: boss_alysrazor.cpp:137

Member Function Documentation

bool MoltenEggCheck::operator() ( Unit object) const
inline
123  {
124  if (object->GetEntry() != NPC_MOLTEN_EGG_TRASH)
125  return false;
126 
127  if (object->GetDisplayId() != object->GetNativeDisplayId())
128  return false;
129 
130  if (_eggPile->GetDistance2d(object) > 20.0f)
131  return false;
132 
133  return true;
134  }
uint32 GetDisplayId() const
Definition: Unit.h:2012
Creature * _eggPile
Definition: boss_alysrazor.cpp:137
Definition: firelands.h:46
float GetDistance2d(WorldObject const *obj) const
Definition: Object.cpp:1612
uint32 GetEntry() const
Definition: Object.h:107

+ Here is the call graph for this function:

Member Data Documentation

Creature* MoltenEggCheck::_eggPile
private

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