![]() |
FastEngine 0.9.3
A multiplayer oriented 2D engine made with Vulkan.
|
This class is used to manage events. More...
#include <C_eventList.hpp>
Public Member Functions | |
bool | add (std::string const &name) |
Add an event to the list. | |
bool | del (std::string const &name) |
Remove an event from the list. | |
void | delAll () |
Remove all events from the list. | |
fge::Event * | get (std::string const &name) |
Get an event from the list. | |
This class is used to manage events.
You can associate a string to an event class for easy identification.
bool fge::EventList::add | ( | std::string const & | name | ) |
Add an event to the list.
name | The name of the event |
bool fge::EventList::del | ( | std::string const & | name | ) |
Remove an event from the list.
name | The name of the event |
void fge::EventList::delAll | ( | ) |
Remove all events from the list.
fge::Event * fge::EventList::get | ( | std::string const & | name | ) |
Get an event from the list.
name | The name of the event |