Simple C++ Game
Public Member Functions | List of all members
Event Class Reference

A class representing an event that has occurred. More...

#include <Event.hpp>

Public Member Functions

 Event (std::string type)
 Construct a new Event object. More...
 
std::string getType () const
 Get the Type of the event. More...
 

Detailed Description

A class representing an event that has occurred.

Constructor & Destructor Documentation

◆ Event()

Event::Event ( std::string  type)

Construct a new Event object.

Constructs a new event of the specified type.

Parameters
typeThe type of the event, typically declared as a static member of the class creating the event.

Member Function Documentation

◆ getType()

std::string Event::getType ( ) const

Get the Type of the event.

Returns
The std::string indicating what type of event is being provided.

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