mirror of
https://github.com/zoriya/Bomberman.git
synced 2025-12-20 21:35:12 +00:00
30 lines
756 B
C++
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;
|
|
};
|
|
}
|