FastEngine 0.9.3
A multiplayer oriented 2D engine made with Vulkan.
Loading...
Searching...
No Matches
fge::EventList Class Reference

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::Eventget (std::string const &name)
 Get an event from the list.
 

Detailed Description

This class is used to manage events.

You can associate a string to an event class for easy identification.

See also
Event

Member Function Documentation

◆ add()

bool fge::EventList::add ( std::string const & name)

Add an event to the list.

Parameters
nameThe name of the event
Returns
true if the event was added, false otherwise

◆ del()

bool fge::EventList::del ( std::string const & name)

Remove an event from the list.

Parameters
nameThe name of the event
Returns
true if the event was removed, false otherwise

◆ delAll()

void fge::EventList::delAll ( )

Remove all events from the list.

◆ get()

fge::Event * fge::EventList::get ( std::string const & name)

Get an event from the list.

Parameters
nameThe name of the event
Returns
An pointer to the event, or nullptr if the event doesn't exist

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