StevEngine
StevEngine is a customizable C++ game engine.
Loading...
Searching...
No Matches
StevEngine::EventHandler< EventType > Class Template Reference

Typed event handler implementation. More...

#include <main/EventSystem.hpp>

Inheritance diagram for StevEngine::EventHandler< EventType >:
StevEngine::EventHandlerBase

Public Member Functions

 EventHandler (const EventFunction< EventType > &handler)
 Create new event handler.
 
void Execute (const Event &event) override
 Execute handler with event.
 
- Public Member Functions inherited from StevEngine::EventHandlerBase
Utilities::ID GetType () const
 Get handler type ID.
 

Additional Inherited Members

- Public Attributes inherited from StevEngine::EventHandlerBase
const Utilities::ID handlerType
 Unique handler identifier.
 

Detailed Description

template<typename EventType>
class StevEngine::EventHandler< EventType >

Typed event handler implementation.

Constructor & Destructor Documentation

◆ EventHandler()

template<typename EventType>
StevEngine::EventHandler< EventType >::EventHandler ( const EventFunction< EventType > & handler)
inlineexplicit

Create new event handler.

Parameters
handlerFunction to execute

Member Function Documentation

◆ Execute()

template<typename EventType>
void StevEngine::EventHandler< EventType >::Execute ( const Event & e)
inlineoverridevirtual

Execute handler with event.

Parameters
eEvent to handle

Implements StevEngine::EventHandlerBase.


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