|
R-Type
Distributed multiplayer game engine in C++
|
Base class for all game-related events. More...
#include <GameEvent.hpp>


Public Types | |
| enum class | Type { UNKNOWN , PLAYER_JOINED , PLAYER_LEFT , SCORE_UPDATED , GAME_STARTED , GAME_ENDED , PROJECTILE_CREATED } |
Public Member Functions | |
| GameEvent (Type type) | |
| virtual | ~GameEvent () override=default |
| Type | getType () const |
| Get the type of the event. | |
Public Member Functions inherited from server::IEvent | |
| IEvent ()=default | |
| virtual | ~IEvent ()=default |
Private Attributes | |
| Type | _type {Type::UNKNOWN} |
Base class for all game-related events.
Definition at line 19 of file GameEvent.hpp.
|
strong |
| Enumerator | |
|---|---|
| UNKNOWN | |
| PLAYER_JOINED | |
| PLAYER_LEFT | |
| SCORE_UPDATED | |
| GAME_STARTED | |
| GAME_ENDED | |
| PROJECTILE_CREATED | |
Definition at line 21 of file GameEvent.hpp.
|
explicit |
Definition at line 12 of file GameEvent.cpp.
|
overridevirtualdefault |
| GameEvent::Type server::GameEvent::getType | ( | ) | const |
|
private |
Definition at line 40 of file GameEvent.hpp.
Referenced by getType().