TrinityCore
Loading...
Searching...
No Matches
EventProcessor Class Reference

#include <EventProcessor.h>

Public Member Functions

 EventProcessor ()
 
 EventProcessor (EventProcessor const &)=delete
 
 EventProcessor (EventProcessor &&)=delete
 
EventProcessor & operator= (EventProcessor const &)=delete
 
EventProcessor & operator= (EventProcessor &&)=delete
 
 ~EventProcessor ()
 
void Update (uint32 p_time)
 
void KillAllEvents (bool force)
 
void AddEvent (BasicEvent *event, Milliseconds e_time, bool set_addtime=true)
 
template<std::invocable<> T>
void AddEvent (T &&event, Milliseconds e_time, bool set_addtime=true)
 
void AddEventAtOffset (BasicEvent *event, Milliseconds offset)
 
void AddEventAtOffset (BasicEvent *event, Milliseconds offset, Milliseconds offset2)
 
template<std::invocable<> T>
void AddEventAtOffset (T &&event, Milliseconds offset)
 
template<std::invocable<> T>
void AddEventAtOffset (T &&event, Milliseconds offset, Milliseconds offset2)
 
void ModifyEventTime (BasicEvent *event, Milliseconds newTime)
 
Milliseconds CalculateTime (Milliseconds t_offset) const
 
std::multimap< uint64, BasicEvent * > const & GetEvents () const
 

Protected Attributes

uint64 m_time
 
std::multimap< uint64, BasicEvent * > m_events
 

Detailed Description

Definition at line 90 of file EventProcessor.h.

Constructor & Destructor Documentation

◆ EventProcessor() [1/3]

EventProcessor::EventProcessor ( )
inline

Definition at line 93 of file EventProcessor.h.

◆ EventProcessor() [2/3]

EventProcessor::EventProcessor ( EventProcessor const &  )
delete

◆ EventProcessor() [3/3]

EventProcessor::EventProcessor ( EventProcessor &&  )
delete

◆ ~EventProcessor()

EventProcessor::~EventProcessor ( )

Definition at line 35 of file EventProcessor.cpp.

References KillAllEvents().

Member Function Documentation

◆ AddEvent() [1/2]

void EventProcessor::AddEvent ( BasicEvent *  event,
Milliseconds  e_time,
bool  set_addtime = true 
)

Definition at line 113 of file EventProcessor.cpp.

References m_events, and m_time.

Referenced by Spell::AddUnitTarget(), Vehicle::AddVehiclePassenger(), Creature::CallAssistance(), npc_jaina_or_sylvanas_escape_hor::npc_jaina_or_sylvanas_escape_horAI::DestroyIceWall(), BloodPrincesBossAI::DoAction(), boss_sindragosa::DoAction(), npc_spinestalker::DoAction(), npc_rimefang_icc::DoAction(), ScriptedAI::DoAddEvent(), SpellEvent::Execute(), TrashJumpEvent::Execute(), LightningFieldEvent::Execute(), ActivateLivingConstellation::Execute(), SummonUnleashedDarkMatter::Execute(), CometStormEvent::Execute(), spell_mage_flurry::FlurryEvent::Execute(), spell_pri_void_volley::BoltEvent::Execute(), WindfuryProcEvent::Execute(), StormflurryEvent::Execute(), BattleExperienceEvent::Execute(), ScheduledIcicleSummons::Execute(), TriggerWickedSpirit::Execute(), OrbFlyEvent::Execute(), boss_thorim::boss_thorimAI::FinishEncounter(), Creature::ForcedDespawn(), spell_palehoof_awaken_gortok::HandleDummy(), spell_illidan_throw_warglaive::HandleDummy(), spell_lord_stormsong_surrender_to_the_void::HandleDummy(), spell_edna_refracting_beam_selector::HandleHitTarget(), spell_palehoof_awaken_subboss::HandleScript(), BattlegroundQueue::InviteGroupToBG(), boss_prince_valanar_icc::JustSummoned(), boss_sindragosa::JustSummoned(), boss_the_lich_king::JustSummoned(), boss_valithria_dreamwalker::JustSummoned(), npc_risen_archmage::JustSummoned(), boss_thorim::boss_thorimAI::JustSummoned(), boss_remnant_of_a_fallen_king::JustSummoned(), CreatureGameObjectAreaTriggerConversationScriptRegistrySwapHooks< ObjectType, ScriptType, Base >::LoadResetScript(), gunship_npc_AI::MovementInform(), npc_gunship_boarding_addAI::MovementInform(), conversation_ghostlands_start_convo_on_end< ConversationId >::OnStart(), conversation_dawnspair_spire_to_ghostlands::OnStart(), conversation_dawnspair_spire_followup_to_ghostlands::OnStart(), conversation_natalia_pearces_accept_precious_gems::OnStart(), conversation_guards_intro_standing_accused::OnStart(), conversation_burden_of_proof_speak_with_constable::OnStart(), conversation_drustvar_really_big_problem_complete::OnStart(), Scripts::QuelThalas::Harandar::Chapter1::conversation_the_root_cause_open_portal::OnStart(), Scripts::QuelThalas::Harandar::Chapter1::conversation_to_harathir_talk_to_kupaal::OnStart(), npc_bountiful_table::npc_bountiful_tableAI::PassengerBoarded(), Spell::prepare(), conversation_burden_of_proof_base::ScheduleEvents(), ScriptedAI::SetAggressiveStateAfter(), npc_gunship_boarding_addAI::SetData(), Update(), boss_the_lich_king::UpdateAI(), and boss_thorim::boss_thorimAI::UpdateAI().

◆ AddEvent() [2/2]

template<std::invocable<> T>
void EventProcessor::AddEvent ( T &&  event,
Milliseconds  e_time,
bool  set_addtime = true 
)
inline

Definition at line 105 of file EventProcessor.h.

References AddEvent().

Referenced by AddEvent().

◆ AddEventAtOffset() [1/4]

void EventProcessor::AddEventAtOffset ( BasicEvent *  event,
Milliseconds  offset 
)
inline

Definition at line 106 of file EventProcessor.h.

Referenced by spell_sha_voltaic_blaze::ApplyFlameShock(), spell_pri_shadow_word_death::DetermineKillStatus(), npc_green_dragon_combat_trigger::DoAction(), Aura::DropChargeDelayed(), Spell::EffectForceCast2(), spell_mage_comet_storm::EffectHit(), spell_mage_flurry::EffectHit(), Spell::EffectTeleportUnitsWithVisualLoadingScreen(), Spell::EffectTriggerSpell(), EmpyreanDomain::PlayerMoveDownEvent::Execute(), YmironSoulSiphonVisual::Execute(), YmironBanePrecastVisual::Execute(), PartyTimeEmoteEvent::Execute(), spell_akilzon_electrical_storm::HandleAfterHit(), spell_dru_eclipse_dummy::HandleApply(), spell_dh_essence_break::HandleDebuff(), spell_item_party_time::HandleEffectApply(), spell_pri_void_volley::HandleEffectHit(), spell_ymiron_the_fallen_king_arise_fallen_selector::HandleHitTarget(), spell_lord_and_lady_waycrest_discordant_cadenza_selector::HandleHitTarget(), spell_the_candle_king_darkflame_pickaxe_cast::HandleHitTarget(), spell_sha_mastery_elemental_overload::HandleProc(), spell_warl_shadow_invocation::HandleProc(), spell_pri_deaths_torment::HandleProc(), spell_sha_stormflurry::HandleProc(), boss_twin_baseAI::HandleRemoveAuras(), spell_warr_intimidating_shout_menace_knock_back::HandleRoot(), npc_enslaved_soul::HandleSoulRelease(), boss_reliquary_of_souls::HandleSpirits(), go_ragnaros_lava_burst_trap::InitializeAI(), npc_husam_shockwave_visual::JustAppeared(), npc_gunship::npc_gunshipAI::JustDied(), firelands_bossAI::JustDied(), boss_algalon_the_observer::JustSummoned(), spell_ioc_launch::Launch(), arena_empyrean_domain::MovePlayerDown(), spell_ymiron_the_fallen_king_soul_siphon::OnAfterApply(), spell_dh_painbringer_reduce_damage::OnApply(), at_warl_bilescourge_bombers::OnCreate(), instance_baradin_hold::instance_baradin_hold_InstanceMapScript::OnCreatureCreate(), instance_firelands::instance_firelands_InstanceScript::OnCreatureCreate(), spell_ymiron_the_fallen_king_bane_periodic::OnPrecast(), spell_gen_spirit_heal_channel::OnRemove(), npc_husam_bad_intentions_target::PassengerBoarded(), npc_vp_slipstream::PassengerBoarded(), npc_jormungars_slime_pool::Reset(), boss_felblood_kaelthas::SpellHitTarget(), spell_pri_divine_image_stack_timer::TrackStackApplicationTime(), WindfuryProcEvent::Trigger(), spell_pri_ultimate_penitence::TriggerImmunity(), TempSummon::UnSummon(), Totem::UnSummon(), npc_egg_pile::npc_egg_pileAI::UpdateAI(), boss_azhiccar::UpdateAI(), and boss_algalon_the_observer::UpdateAI().

◆ AddEventAtOffset() [2/4]

void EventProcessor::AddEventAtOffset ( BasicEvent *  event,
Milliseconds  offset,
Milliseconds  offset2 
)
inline

Definition at line 107 of file EventProcessor.h.

References randtime().

◆ AddEventAtOffset() [3/4]

template<std::invocable<> T>
void EventProcessor::AddEventAtOffset ( T &&  event,
Milliseconds  offset 
)
inline

Definition at line 109 of file EventProcessor.h.

References AddEventAtOffset().

Referenced by AddEventAtOffset().

◆ AddEventAtOffset() [4/4]

template<std::invocable<> T>
void EventProcessor::AddEventAtOffset ( T &&  event,
Milliseconds  offset,
Milliseconds  offset2 
)
inline

Definition at line 111 of file EventProcessor.h.

References AddEventAtOffset().

Referenced by AddEventAtOffset().

◆ CalculateTime()

Milliseconds EventProcessor::CalculateTime ( Milliseconds  t_offset) const
inline

◆ GetEvents()

std::multimap< uint64, BasicEvent * > const & EventProcessor::GetEvents ( ) const
inline

Definition at line 114 of file EventProcessor.h.

Referenced by Unit::CancelSpellMissiles().

◆ KillAllEvents()

◆ ModifyEventTime()

void EventProcessor::ModifyEventTime ( BasicEvent *  event,
Milliseconds  newTime 
)

◆ operator=() [1/2]

EventProcessor & EventProcessor::operator= ( EventProcessor &&  )
delete

◆ operator=() [2/2]

EventProcessor & EventProcessor::operator= ( EventProcessor const &  )
delete

◆ Update()

void EventProcessor::Update ( uint32  p_time)

Member Data Documentation

◆ m_events

std::multimap<uint64, BasicEvent*> EventProcessor::m_events
protected

Definition at line 118 of file EventProcessor.h.

Referenced by AddEvent(), KillAllEvents(), ModifyEventTime(), and Update().

◆ m_time

uint64 EventProcessor::m_time
protected

Definition at line 117 of file EventProcessor.h.

Referenced by AddEvent(), KillAllEvents(), and Update().


The documentation for this class was generated from the following files: