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
1612: _player(player) { }
Player * _player
Definition: spell_item.cpp:1636

Member Function Documentation

◆ Execute()

bool PartyTimeEmoteEvent::Execute ( uint64  ,
uint32   
)
inlineoverridevirtual

Reimplemented from BasicEvent.

1615 {
1617 {
1618 return true;
1619 }
1620
1621 if (_player->isMoving())
1622 {
1624 }
1625 else
1626 {
1628 }
1629
1631
1632 return false; // do not delete re-added event in EventProcessor::Update
1633 }
static First const & RAND(First const &first, Second const &second, Rest const &... rest)
Definition: CreatureAIImpl.h:30
@ SPELL_PARTY_TIME
Definition: spell_item.cpp:1577
@ EMOTE_ONESHOT_APPLAUD
Definition: SharedDefines.h:1913
@ EMOTE_ONESHOT_LAUGH
Definition: SharedDefines.h:1903
@ EMOTE_ONESHOT_CHEER
Definition: SharedDefines.h:1898
@ EMOTE_ONESHOT_CHICKEN
Definition: SharedDefines.h:1911
@ EMOTE_ONESHOT_DANCESPECIAL
Definition: SharedDefines.h:1996
void AddEvent(BasicEvent *Event, uint64 e_time, bool set_addtime=true)
Definition: EventProcessor.h:103
uint64 CalculateTime(uint64 t_offset) const
Definition: EventProcessor.cpp:159
bool HasAura(uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, ObjectGuid itemCasterGUID=ObjectGuid::Empty, uint8 reqEffMask=0) const
Definition: Unit.cpp:5669
EventProcessor m_Events
Definition: Unit.h:1792
bool isMoving() const
Definition: Unit.h:1696
void HandleEmoteCommand(uint32 emoteId)
Definition: Unit.cpp:1984

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().