Spinning Topp Logo BlackTopp Studios
inc
Public Types | Public Member Functions | List of all members
Mezzanine::EventBase Class Referenceabstract

The base class for all events. More...

#include <eventbase.h>

+ Inheritance diagram for Mezzanine::EventBase:

Public Types

enum  EventType { GameWindow, QuitMessage, UserInput, Other }
 A listing of values that can be used to identify Events. More...
 

Public Member Functions

virtual ~EventBase ()
 Virtual Deconstructor.
 
virtual EventBase::EventType GetType () const =0
 This will aid in identifying all classes that inherit from this class. More...
 

Detailed Description

The base class for all events.

All Events used in the Event Manager, will inherit from this. While not absolutely required by the game programmer to write their own events, it it could be useful. Instances of this class cannot be made, and all classes that inherit from this are expected to implement getEventType().

Definition at line 61 of file eventbase.h.

Member Enumeration Documentation

A listing of values that can be used to identify Events.

A listing of values that can be used to identify Events.

Enumerator
GameWindow 

Indicates the Event is a Game Window Management Event.

QuitMessage 

Indicates the Event is a Mezzanine::EventQuit.

UserInput 

Indicates the Event is a EventUserInput.

Definition at line 66 of file eventbase.h.

Member Function Documentation

virtual EventBase::EventType Mezzanine::EventBase::GetType ( ) const
pure virtual

This will aid in identifying all classes that inherit from this class.

All Classes derived form this calls will return an Event::EventType that correspond the the data/class type they actually are.

Returns
This returns an eventype that will correspend with the actual event type. This can be used on all Mezzanine provided class to safely cast a pointer to the correct event type.

Implemented in Mezzanine::EventUserInput, Mezzanine::EventGameWindow, and Mezzanine::EventQuit.


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