Nymph Game Engine
Chaiscript based Game Engine
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
event.h
Go to the documentation of this file.
1 #ifndef EVENT_H
2 #define EVENT_H
3 #include "event_type.h"
4 //= SCRIPTABLE
5 
6 namespace Events {
10  class Event {
11  private:
12  EventType type;
13  public:
14  //= BEGIN SCRIPTABLE
15 
21  Event(const EventType& type) : type(type) {}
27  EventType getEventType() const { return type; }
28  //= END SCRIPTABLE
29  };
30 }
31 
32 #endif
Class for event.
Definition: event.h:10
EventType
Event type enum that is used when passing events.
Definition: event_type.h:12
EventType getEventType() const
Gets the event type.
Definition: event.h:27
Event(const EventType &type)
Event constructor.
Definition: event.h:21