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

Member Function Documentation

◆ Execute()

bool PartyTimeEmoteEvent::Execute ( uint64  ,
uint32   
)
inlineoverridevirtual

Reimplemented from BasicEvent.

1579 {
1581 {
1582 return true;
1583 }
1584
1585 if (_player->isMoving())
1586 {
1588 }
1589 else
1590 {
1592 }
1593
1595
1596 return false; // do not delete re-added event in EventProcessor::Update
1597 }
static First const & RAND(First const &first, Second const &second, Rest const &... rest)
Definition: CreatureAIImpl.h:30
@ SPELL_PARTY_TIME
Definition: spell_item.cpp:1541
@ 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.cpp:114
uint64 CalculateTime(uint64 t_offset) const
Definition: EventProcessor.cpp:136
bool HasAura(uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, ObjectGuid itemCasterGUID=ObjectGuid::Empty, uint8 reqEffMask=0) const
Definition: Unit.cpp:6454
EventProcessor m_Events
Definition: Unit.h:2344
bool isMoving() const
Definition: Unit.h:2648
void HandleEmoteCommand(uint32 emoteId)
Definition: Unit.cpp:2345

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