From 83ca3c2ff23525ca29fbd4c365ae4242c2962600 Mon Sep 17 00:00:00 2001 From: lindaandersson Date: Fri, 31 Jan 2014 16:43:18 +0100 Subject: [PATCH] GL - remove buttons from GL branch --- Code/Misc/EventHandler/EventButton.cpp | 0 Code/Misc/EventHandler/EventButton.h | 0 .../EventHandler/EventButtonCollection.cpp | 25 ------------- .../Misc/EventHandler/EventButtonCollection.h | 31 ---------------- Code/Misc/EventHandler/EventHandler.cpp | 37 ------------------- Code/Misc/EventHandler/EventHandler.h | 35 ------------------ 6 files changed, 128 deletions(-) delete mode 100644 Code/Misc/EventHandler/EventButton.cpp delete mode 100644 Code/Misc/EventHandler/EventButton.h delete mode 100644 Code/Misc/EventHandler/EventButtonCollection.cpp delete mode 100644 Code/Misc/EventHandler/EventButtonCollection.h delete mode 100644 Code/Misc/EventHandler/EventHandler.cpp delete mode 100644 Code/Misc/EventHandler/EventHandler.h diff --git a/Code/Misc/EventHandler/EventButton.cpp b/Code/Misc/EventHandler/EventButton.cpp deleted file mode 100644 index e69de29b..00000000 diff --git a/Code/Misc/EventHandler/EventButton.h b/Code/Misc/EventHandler/EventButton.h deleted file mode 100644 index e69de29b..00000000 diff --git a/Code/Misc/EventHandler/EventButtonCollection.cpp b/Code/Misc/EventHandler/EventButtonCollection.cpp deleted file mode 100644 index b3d37bfe..00000000 --- a/Code/Misc/EventHandler/EventButtonCollection.cpp +++ /dev/null @@ -1,25 +0,0 @@ -#include "EventButtonCollection.h" - -using namespace Oyster::Event; - -EventButtonCollection::EventButtonCollection() -{ - -} - -EventButtonCollection::~EventButtonCollection() -{ -} - -void EventButtonCollection::Update(InputClass* inputObject) -{ - for(int i = 0; i < buttons.size(); i++) - { - buttons.at(i)->Update(inputObject); - } -} - -EventButton* EventButtonCollection::AddButton(EventButton* button) -{ - -} \ No newline at end of file diff --git a/Code/Misc/EventHandler/EventButtonCollection.h b/Code/Misc/EventHandler/EventButtonCollection.h deleted file mode 100644 index 31201f9c..00000000 --- a/Code/Misc/EventHandler/EventButtonCollection.h +++ /dev/null @@ -1,31 +0,0 @@ -#ifndef EVENT_BUTTON_COLLECTION_H -#define EVENT_BUTTON_COLLECTION_H - -#include "../../Input/L_inputClass.h" - -#include "EventButton.h" - -#include - -namespace Oyster -{ - namespace Event - { - class EventButtonCollection - { - public: - EventButtonCollection(); - ~EventButtonCollection(); - - void Update(InputClass* inputObject); - - EventButton* AddButton(EventButton* button); - - private: - std::vector buttons; - - }; - } -} - -#endif \ No newline at end of file diff --git a/Code/Misc/EventHandler/EventHandler.cpp b/Code/Misc/EventHandler/EventHandler.cpp deleted file mode 100644 index 8f6705df..00000000 --- a/Code/Misc/EventHandler/EventHandler.cpp +++ /dev/null @@ -1,37 +0,0 @@ -#include "EventHandler.h" - -using namespace Oyster::Event; - -EventHandler EvtHandler; - -EventHandler& EventHandler::Instance() -{ - return EvtHandler; -} - -EventHandler::EventHandler() -{ - -} - -EventHandler::~EventHandler() -{ -} - -void EventHandler::Update(InputClass* inputObject) -{ - for(int i = 0; i < collections.size(); i++) - { - collections.at(i)->Update(inputObject); - } -} - -EventButtonCollection* EventHandler::CreateCollection() -{ - -} - -EventButtonCollection* EventHandler::GetCollection(/*ID*/); -{ - -} \ No newline at end of file diff --git a/Code/Misc/EventHandler/EventHandler.h b/Code/Misc/EventHandler/EventHandler.h deleted file mode 100644 index c3ecc0a2..00000000 --- a/Code/Misc/EventHandler/EventHandler.h +++ /dev/null @@ -1,35 +0,0 @@ -#ifndef EVENT_HANDLER_H -#define EVENT_HANDLER_H - -#include "../../Input/L_inputClass.h" - -#include "EventButtonCollection.h" -#include "EventButton.h" - -#include - -namespace Oyster -{ - namespace Event - { - class EventHandler - { - EventHandler(); - ~EventHandler(); - - EventHandler& Instance(); - - void Update(InputClass* inputObject); - - EventButtonCollection* CreateCollection(); - EventButtonCollection* GetCollection(/*ID*/); - - - private: - std::vector collections; - - }; - } -} - -#endif \ No newline at end of file