AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
FixOrientation Class Reference
Inheritance diagram for FixOrientation:
BasicEvent

Public Member Functions

 FixOrientation (Creature *owner)
 
bool Execute (uint64, uint32) override
 
- Public Member Functions inherited from BasicEvent
 BasicEvent ()=default
 
virtual ~BasicEvent ()=default
 
virtual bool Execute (uint64, uint32)
 
virtual bool IsDeletable () const
 
virtual void Abort (uint64)
 
void ScheduleAbort ()
 

Private Attributes

Creature_owner
 

Detailed Description

Constructor & Destructor Documentation

◆ FixOrientation()

FixOrientation::FixOrientation ( Creature owner)
inline
647: _owner(owner) { }
Creature * _owner
Definition: boss_kiljaeden.cpp:659

Member Function Documentation

◆ Execute()

bool FixOrientation::Execute ( uint64  ,
uint32   
)
inlineoverridevirtual

Reimplemented from BasicEvent.

650 {
651 std::list<Creature*> cList;
653 for (std::list<Creature*>::const_iterator itr = cList.begin(); itr != cList.end(); ++itr)
654 (*itr)->SetFacingTo(_owner->GetOrientation());
655 return true;
656 }
@ NPC_SHATTERED_SUN_SOLDIER
Definition: boss_kiljaeden.cpp:583
void GetCreaturesWithEntryInRange(std::list< Creature * > &creatureList, float radius, uint32 entry)
Definition: Object.cpp:3097
float GetOrientation() const
Definition: Position.h:119

References _owner, WorldObject::GetCreaturesWithEntryInRange(), Position::GetOrientation(), and NPC_SHATTERED_SUN_SOLDIER.

Member Data Documentation

◆ _owner

Creature* FixOrientation::_owner
private

Referenced by Execute().