WoW Model Viewer
Your premiere tool for viewing, equipping and animating World of Warcraft models.
Loading...
Searching...
No Matches
Event.h
Go to the documentation of this file.
1#pragma once
2
3class Observable;
4
8class Event
9{
10public:
12 {
13 DESTROYED = 0x00000000
14 };
15
17
18 virtual ~Event() = default;
19
20 EventType type() const { return m_type; }
22
24
25private:
28};
Lightweight event object carrying a type tag and sender reference.
Definition Event.h:9
virtual ~Event()=default
EventType type() const
Definition Event.h:20
EventType m_type
Definition Event.h:26
Observable * sender()
Definition Event.h:23
void setType(EventType type)
Definition Event.h:21
EventType
Definition Event.h:12
@ DESTROYED
Definition Event.h:13
Observable * m_p_sender
Definition Event.h:27
Subject in the Observer pattern; maintains a list of Observer subscribers.
Definition Observable.h:12