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

Public Member Functions

 OrderWhelpTargetSelector (Creature *owner)
 
bool operator() (Creature *creature)
 

Private Attributes

Creature_owner
 

Constructor & Destructor Documentation

OrderWhelpTargetSelector::OrderWhelpTargetSelector ( Creature owner)
inlineexplicit
1457 : _owner(owner) { }
Creature * _owner
Definition: boss_sindragosa.cpp:1467

Member Function Documentation

bool OrderWhelpTargetSelector::operator() ( Creature creature)
inline
1460  {
1461  if (!creature->AI()->GetData(DATA_WHELP_MARKER) && creature->AI()->GetData(DATA_FROSTWYRM_OWNER) == _owner->AI()->GetData(DATA_FROSTWYRM_OWNER))
1462  return false;
1463  return true;
1464  }
Definition: boss_sindragosa.cpp:134
CreatureAI * AI() const
Definition: Creature.h:525
Definition: boss_sindragosa.cpp:133
virtual uint32 GetData(uint32) const
Definition: UnitAI.h:139
Creature * _owner
Definition: boss_sindragosa.cpp:1467

+ Here is the call graph for this function:

Member Data Documentation

Creature* OrderWhelpTargetSelector::_owner
private

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