blob: 89636ad7738f9876d107f2f0b53682964341d89f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
//=============================================================================
// Copyright (C) 2002 Radical Entertainment Ltd. All rights reserved.
//
// File: eventlistener.h
//
// Description: EventManager class declaration.
//
// History: + Created -- Darwin Chau
//
//=============================================================================
#ifndef EVENTLISTENER_H
#define EVENTLISTENER_H
//========================================
// System Includes
//========================================
//========================================
// Project Includes
//========================================
#ifdef WORLD_BUILDER
#include "eventenum.h"
#else
#include <events/eventenum.h>
#endif
//========================================
// Forward References
//========================================
//==============================================================================
//
// Synopsis: Abstract base class for all classes that want to be notified
// of events.
//
//==============================================================================
class EventListener
{
public:
EventListener();
virtual ~EventListener();
// Derived classes must implement this method to receive
// event notification.
virtual void HandleEvent( EventEnum id, void* pEventData ) = 0;
private:
// Declared but not defined to prevent copying and assignment.
EventListener( const EventListener& );
EventListener& operator=( const EventListener& );
};
#endif // EVENTLISTENER_H
|