TrinityCore
EventProcessor Class Reference

#include <EventProcessor.h>

Public Member Functions

 EventProcessor ()
 
 ~EventProcessor ()
 
void Update (uint32 p_time)
 
void KillAllEvents (bool force)
 
void AddEvent (BasicEvent *event, Milliseconds e_time, bool set_addtime=true)
 
template<typename T >
is_lambda_event< T > 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<typename T >
is_lambda_event< T > AddEventAtOffset (T &&event, Milliseconds offset)
 
template<typename T >
is_lambda_event< T > 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 93 of file EventProcessor.h.

Constructor & Destructor Documentation

◆ EventProcessor()

EventProcessor::EventProcessor ( )
inline

Definition at line 96 of file EventProcessor.h.

◆ ~EventProcessor()

EventProcessor::~EventProcessor ( )

Definition at line 35 of file EventProcessor.cpp.

+ Here is the call graph for this function:

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.

+ Here is the caller graph for this function:

◆ AddEvent() [2/2]

template<typename T >
is_lambda_event< T > EventProcessor::AddEvent ( T &&  event,
Milliseconds  e_time,
bool  set_addtime = true 
)
inline

Definition at line 104 of file EventProcessor.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ AddEventAtOffset() [1/4]

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

Definition at line 105 of file EventProcessor.h.

+ Here is the caller graph for this function:

◆ AddEventAtOffset() [2/4]

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

Definition at line 106 of file EventProcessor.h.

+ Here is the call graph for this function:

◆ AddEventAtOffset() [3/4]

template<typename T >
is_lambda_event< T > EventProcessor::AddEventAtOffset ( T &&  event,
Milliseconds  offset 
)
inline

Definition at line 108 of file EventProcessor.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ AddEventAtOffset() [4/4]

template<typename T >
is_lambda_event< T > EventProcessor::AddEventAtOffset ( T &&  event,
Milliseconds  offset,
Milliseconds  offset2 
)
inline

Definition at line 110 of file EventProcessor.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ CalculateTime()

Milliseconds EventProcessor::CalculateTime ( Milliseconds  t_offset) const
inline

Definition at line 112 of file EventProcessor.h.

+ Here is the caller graph for this function:

◆ GetEvents()

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

Definition at line 113 of file EventProcessor.h.

+ Here is the caller graph for this function:

◆ KillAllEvents()

void EventProcessor::KillAllEvents ( bool  force)

Definition at line 82 of file EventProcessor.cpp.

+ Here is the caller graph for this function:

◆ ModifyEventTime()

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

Definition at line 121 of file EventProcessor.cpp.

+ Here is the caller graph for this function:

◆ Update()

void EventProcessor::Update ( uint32  p_time)

Definition at line 40 of file EventProcessor.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ m_events

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

Definition at line 117 of file EventProcessor.h.

◆ m_time

uint64 EventProcessor::m_time
protected

Definition at line 116 of file EventProcessor.h.


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