#include "EventButtonCollection.h" using namespace Oyster::Event; EventButtonCollection::EventButtonCollection() : collectionState(EventCollectionState_Enabled) { } EventButtonCollection::~EventButtonCollection() { } void EventButtonCollection::Update(InputClass* inputObject) { if(this->collectionState == EventCollectionState_Enabled) { for(int i = 0; i < buttons.size(); i++) { buttons.at(i)->CheckCollision(inputObject); } } } EventCollectionState EventButtonCollection::GetState() const { return collectionState; } void EventButtonCollection::SetState(const EventCollectionState state) { collectionState = state; } void EventButtonCollection::Clear() { buttons.clear(); collectionState = EventCollectionState_Enabled; }