Danbias/Code/Misc/EventHandler/EventHandler.h

41 lines
740 B
C
Raw Normal View History

2014-02-11 09:16:01 +01:00
//////////////////////////////////////
// Created by Pontus Fransson 2014 //
//////////////////////////////////////
#ifndef MISC_EVENT_HANDLER_H
#define MISC_EVENT_HANDLER_H
2014-01-31 13:06:11 +01:00
#include "../../Input/L_inputClass.h"
#include "EventButtonCollection.h"
#include "EventButton.h"
2014-02-11 09:16:01 +01:00
#include "EventButtonCircle.h"
#include "EventButtonRectangle.h"
2014-01-31 13:06:11 +01:00
#include <vector>
namespace Oyster
{
namespace Event
{
class EventHandler
{
2014-01-31 15:38:12 +01:00
public:
2014-01-31 13:06:11 +01:00
EventHandler();
~EventHandler();
2014-01-31 14:31:27 +01:00
static EventHandler& Instance();
2014-01-31 13:06:11 +01:00
void Update(InputClass* inputObject);
void AddCollection(EventButtonCollection& collection);
EventButtonCollection& CreateCollection();
2014-01-31 13:06:11 +01:00
private:
std::vector<EventButtonCollection*> collections;
};
}
}
#endif