Otclient  14/8/2020
EventDispatcher Class Reference

#include <eventdispatcher.h>

Public Member Functions

void shutdown ()
 
void poll ()
 
EventPtr addEvent (const std::function< void()> &callback, bool pushFront=false)
 
ScheduledEventPtr scheduleEvent (const std::function< void()> &callback, int delay)
 
ScheduledEventPtr cycleEvent (const std::function< void()> &callback, int delay)
 

Detailed Description

Definition at line 32 of file eventdispatcher.h.

Member Function Documentation

◆ addEvent()

EventPtr EventDispatcher::addEvent ( const std::function< void()> &  callback,
bool  pushFront = false 
)

Definition at line 104 of file eventdispatcher.cpp.

Here is the caller graph for this function:

◆ cycleEvent()

ScheduledEventPtr EventDispatcher::cycleEvent ( const std::function< void()> &  callback,
int  delay 
)

Definition at line 93 of file eventdispatcher.cpp.

Here is the caller graph for this function:

◆ poll()

void EventDispatcher::poll ( )

Definition at line 43 of file eventdispatcher.cpp.

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

◆ scheduleEvent()

ScheduledEventPtr EventDispatcher::scheduleEvent ( const std::function< void()> &  callback,
int  delay 
)

Definition at line 82 of file eventdispatcher.cpp.

Here is the caller graph for this function:

◆ shutdown()

void EventDispatcher::shutdown ( )

Definition at line 30 of file eventdispatcher.cpp.

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

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