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
1676: _owner(owner) { }
Creature * _owner
Definition: boss_sindragosa.cpp:1686

Member Function Documentation

◆ operator()()

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

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

Member Data Documentation

◆ _owner

Creature* OrderWhelpTargetSelector::_owner
private

Referenced by operator()().