Created an Event abstract class

This commit is contained in:
2006-10-12 13:21:46 -04:00
parent e9b37ae371
commit fd74cbce0f

30
src/Events/Event.h Normal file
View File

@@ -0,0 +1,30 @@
#ifndef __OpenArena_Event_h__
#define __OpenArena_Event_h__
namespace OpenArena
{
class Event
{
public:
enum EventType
{
InputEventType,
DrawEventType
};
class EventHandler
{
public:
virtual bool Handles(Event::EventType eventType) = 0;
virtual void HandleEvent(Event* event) = 0;
// virtual ~EventHandler(){};
};
virtual EventType GetEventType() = 0;
//remove this
Event(){};
virtual ~Event(){};
};
};
#endif //__OpenArena_Event_h__