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

Member Function Documentation

◆ Execute()

bool PartyTimeEmoteEvent::Execute ( uint64  ,
uint32   
)
inlineoverridevirtual

Reimplemented from BasicEvent.

1616 {
1618 {
1619 return true;
1620 }
1621
1622 if (_player->isMoving())
1623 {
1625 }
1626 else
1627 {
1629 }
1630
1632
1633 return false; // do not delete re-added event in EventProcessor::Update
1634 }
static First const & RAND(First const &first, Second const &second, Rest const &... rest)
Definition: CreatureAIImpl.h:30
@ SPELL_PARTY_TIME
Definition: spell_item.cpp:1578
@ 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:104
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:5636
EventProcessor m_Events
Definition: Unit.h:2108
bool isMoving() const
Definition: Unit.h:2394
void HandleEmoteCommand(uint32 emoteId)
Definition: Unit.cpp:1980

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