#ifndef CapturePointSystem_h__ #define CapturePointSystem_h__ #include #include #include "Common.h" #include "Core/System.h" #include "Engine/Collision/ETrigger.h" #include "Core/ECaptured.h" #include "Core/EWin.h" #include #include class CapturePointSystem : public PureSystem { public: //TODO: on new map, destroy all info in the vectors CapturePointSystem(EventBroker* eventBroker); //updatecomponent virtual void UpdateComponent(World* world, ComponentWrapper& capturePoint, double dt) override; private: //methods which will take care of specific events EventRelay m_ETriggerTouch; bool CapturePointSystem::OnTriggerTouch(const Events::TriggerTouch& e); EventRelay m_ETriggerLeave; bool CapturePointSystem::OnTriggerLeave(const Events::TriggerLeave& e); bool WinnerWasFound = false; //vectors which will keep track of enter/leave changes std::vector> m_ETriggerTouchVector; std::vector> m_ETriggerLeaveVector; }; #endif