#ifndef HealthSystem_h__ #define HealthSystem_h__ #include #include #include "Common.h" #include "Core/System.h" #include "Core/EPlayerDamage.h" #include "Core/EPlayerHealthPickup.h" #include "Core/EPlayerDeath.h" #include "Core/ConfigFile.h" #include "Input/EInputCommand.h" #include #include #include class HealthSystem : public PureSystem { public: HealthSystem(SystemParams params); //updatecomponent virtual void UpdateComponent(EntityWrapper& entity, ComponentWrapper& component, double dt) override; private: bool m_NetworkEnabled; // methods which will take care of specific events EventRelay m_EPlayerDamage; bool HealthSystem::OnPlayerDamaged(Events::PlayerDamage& e); EventRelay m_EPlayerHealthPickup; bool HealthSystem::OnPlayerHealthPickup(Events::PlayerHealthPickup& e); EventRelay m_InputCommand; bool HealthSystem::OnInputCommand(Events::InputCommand& e); //vector which will keep track of health changes std::vector> m_DeltaHealthVector; }; #endif