R-Type
Distributed multiplayer game engine in C++
Loading...
Searching...
No Matches
UIEvent Class Reference

#include <UIEvent.hpp>

Inheritance diagram for UIEvent:
Inheritance graph
Collaboration diagram for UIEvent:
Collaboration graph

Public Member Functions

 UIEvent (UIEventType type, const std::string &data="")
 
UIEventType getType () const
 
const std::string & getData () const
 
- Public Member Functions inherited from IEvent
virtual ~IEvent ()=default
 Virtual destructor.
 

Private Attributes

UIEventType _type
 
std::string _data
 

Detailed Description

Definition at line 51 of file UIEvent.hpp.

Constructor & Destructor Documentation

◆ UIEvent()

UIEvent::UIEvent ( UIEventType  type,
const std::string &  data = "" 
)
inlineexplicit

Definition at line 53 of file UIEvent.hpp.

Member Function Documentation

◆ getData()

const std::string & UIEvent::getData ( ) const
inline

Definition at line 56 of file UIEvent.hpp.

References _data.

◆ getType()

UIEventType UIEvent::getType ( ) const
inline

Definition at line 55 of file UIEvent.hpp.

References _type.

Referenced by GameLoop::handleUIEvent().

Member Data Documentation

◆ _data

std::string UIEvent::_data
private

Definition at line 60 of file UIEvent.hpp.

Referenced by getData().

◆ _type

UIEventType UIEvent::_type
private

Definition at line 59 of file UIEvent.hpp.

Referenced by getType().


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