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

Public Member Functions

 PartyTimeEmoteEvent (Player *player)
 
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

Player_player
 

Detailed Description

Constructor & Destructor Documentation

◆ PartyTimeEmoteEvent()

PartyTimeEmoteEvent::PartyTimeEmoteEvent ( Player player)
inline
1578: _player(player) { }
Player * _player
Definition: spell_item.cpp:1602

Member Function Documentation

◆ Execute()

bool PartyTimeEmoteEvent::Execute ( uint64  ,
uint32   
)
inlineoverridevirtual

Reimplemented from BasicEvent.

1581 {
1583 {
1584 return true;
1585 }
1586
1587 if (_player->isMoving())
1588 {
1590 }
1591 else
1592 {
1594 }
1595
1597
1598 return false; // do not delete re-added event in EventProcessor::Update
1599 }
static First const & RAND(First const &first, Second const &second, Rest const &... rest)
Definition: CreatureAIImpl.h:30
@ SPELL_PARTY_TIME
Definition: spell_item.cpp:1543
@ EMOTE_ONESHOT_APPLAUD
Definition: SharedDefines.h:1885
@ EMOTE_ONESHOT_LAUGH
Definition: SharedDefines.h:1875
@ EMOTE_ONESHOT_CHEER
Definition: SharedDefines.h:1870
@ EMOTE_ONESHOT_CHICKEN
Definition: SharedDefines.h:1883
@ EMOTE_ONESHOT_DANCESPECIAL
Definition: SharedDefines.h:1968
void AddEvent(BasicEvent *Event, uint64 e_time, bool set_addtime=true)
Definition: EventProcessor.h:105
uint64 CalculateTime(uint64 t_offset) const
Definition: EventProcessor.cpp:158
bool HasAura(uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, ObjectGuid itemCasterGUID=ObjectGuid::Empty, uint8 reqEffMask=0) const
Definition: Unit.cpp:5610
EventProcessor m_Events
Definition: Unit.h:2094
bool isMoving() const
Definition: Unit.h:2380
void HandleEmoteCommand(uint32 emoteId)
Definition: Unit.cpp:1970

References _player, EventProcessor::AddEvent(), EventProcessor::CalculateTime(), EMOTE_ONESHOT_APPLAUD, EMOTE_ONESHOT_CHEER, EMOTE_ONESHOT_CHICKEN, EMOTE_ONESHOT_DANCESPECIAL, EMOTE_ONESHOT_LAUGH, Unit::HandleEmoteCommand(), Unit::HasAura(), Unit::isMoving(), Unit::m_Events, RAND(), and SPELL_PARTY_TIME.

Member Data Documentation

◆ _player

Player* PartyTimeEmoteEvent::_player
private

Referenced by Execute().