Files
Bomberman/sources/System/Health/HealthSystem.hpp
2021-06-05 18:42:10 +02:00

30 lines
756 B
C++

//
// Created by Tom Augier on 2021-05-20.
// Edited by Benjamin Henry on 2021-05-20.
//
#pragma once
#include "Component/Health/HealthComponent.hpp"
#include "System/System.hpp"
namespace BBM
{
//! @brief A system to handle Health entities.
class HealthSystem : public WAL::System<HealthComponent>
{
public:
//! @inherit
void onFixedUpdate(WAL::ViewEntity<HealthComponent> &entity) override;
//! @brief A default constructor
explicit HealthSystem(WAL::Wal &wal);
//! @brief A Health system is copy constructable
HealthSystem(const HealthSystem &) = default;
//! @brief A default destructor
~HealthSystem() override = default;
//! @brief A system is not assignable.
HealthSystem &operator=(const HealthSystem &) = delete;
};
}