Tramway SDK
Public Member Functions | Protected Attributes | List of all members
tram::EventListener Class Reference

Smart wrapper class for Event listeners. More...

#include <event.h>

Public Member Functions

 ~EventListener ()
 
void make (event_t event, Entity *parent)
 
void make (event_t event, EntityComponent *parent)
 
void clear ()
 
 operator bool ()
 

Protected Attributes

listener_t listener = 0
 

Detailed Description

Smart wrapper class for Event listeners.

Constructor & Destructor Documentation

◆ ~EventListener()

tram::EventListener::~EventListener ( )

Member Function Documentation

◆ clear()

void tram::EventListener::clear ( )

◆ make() [1/2]

void tram::EventListener::make ( event_t  event,
Entity parent 
)

◆ make() [2/2]

void tram::EventListener::make ( event_t  event,
EntityComponent parent 
)

◆ operator bool()

tram::EventListener::operator bool ( )
inlineexplicit

Member Data Documentation

◆ listener

listener_t tram::EventListener::listener = 0
protected

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