AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
OrderWhelpTargetSelector Class Reference

Public Member Functions

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

Private Attributes

Creature_owner
 

Detailed Description

Constructor & Destructor Documentation

◆ OrderWhelpTargetSelector()

OrderWhelpTargetSelector::OrderWhelpTargetSelector ( Creature owner)
inlineexplicit
1678: _owner(owner) { }
Creature * _owner
Definition: boss_sindragosa.cpp:1688

Member Function Documentation

◆ operator()()

bool OrderWhelpTargetSelector::operator() ( Creature creature)
inline
1681 {
1682 if (!creature->AI()->GetData(DATA_WHELP_MARKER) && creature->AI()->GetData(DATA_FROSTWYRM_OWNER) == _owner->AI()->GetData(DATA_FROSTWYRM_OWNER))
1683 return false;
1684 return true;
1685 }
@ DATA_WHELP_MARKER
Definition: boss_sindragosa.cpp:150
@ DATA_FROSTWYRM_OWNER
Definition: boss_sindragosa.cpp:149
virtual uint32 GetData(uint32) const
Definition: UnitAI.h:213
CreatureAI * AI() const
Definition: Creature.h:140

References _owner, Creature::AI(), DATA_FROSTWYRM_OWNER, DATA_WHELP_MARKER, and UnitAI::GetData().

Member Data Documentation

◆ _owner

Creature* OrderWhelpTargetSelector::_owner
private

Referenced by operator()().