Bomberman
HealthSystem.hpp
Go to the documentation of this file.
1 //
2 // Created by Tom Augier on 2021-05-20.
3 // Edited by Benjamin Henry on 2021-05-20.
4 //
5 
6 #pragma once
7 
8 #include "Models/Vector3.hpp"
9 #include "Wal.hpp"
11 #include "System/System.hpp"
12 
13 namespace BBM
14 {
16  class HealthSystem : public WAL::System<HealthComponent>
17  {
18  private:
19  public:
21  void onFixedUpdate(WAL::ViewEntity<HealthComponent> &entity) override;
22 
24  explicit HealthSystem(WAL::Wal &wal);
26  HealthSystem(const HealthSystem &) = default;
28  ~HealthSystem() override = default;
30  HealthSystem &operator=(const HealthSystem &) = delete;
31  };
32 }
BBM::HealthSystem::operator=
HealthSystem & operator=(const HealthSystem &)=delete
A system is not assignable.
WAL::ViewEntity
Definition: View.hpp:19
System.hpp
Vector3.hpp
BBM
Definition: AnimationsComponent.cpp:9
WAL::Wal
The main WAL class, it is used to setup and run the ECS.
Definition: Wal.hpp:27
BBM::HealthSystem::~HealthSystem
~HealthSystem() override=default
A default destructor.
WAL::System
A base system of WAL.
Definition: System.hpp:22
Wal.hpp
BBM::HealthSystem::HealthSystem
HealthSystem(WAL::Wal &wal)
A default constructor.
Definition: HealthSystem.cpp:15
HealthComponent.hpp
BBM::HealthSystem
A system to handle Health entities.
Definition: HealthSystem.hpp:16
BBM::HealthSystem::onFixedUpdate
void onFixedUpdate(WAL::ViewEntity< HealthComponent > &entity) override
Definition: HealthSystem.cpp:19