Bomberman
ControllableSystem.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 
10 #include "System/System.hpp"
11 
12 using namespace std::chrono_literals;
13 
14 namespace BBM
15 {
17  class ControllableSystem : public WAL::System<ControllableComponent, MovableComponent>
18  {
19  public:
20 
22  void onFixedUpdate(WAL::ViewEntity<ControllableComponent, MovableComponent> &entity) override;
23 
25  explicit ControllableSystem(WAL::Wal &wal);
27  ControllableSystem(const ControllableSystem &) = default;
29  ~ControllableSystem() override = default;
31  ControllableSystem &operator=(const ControllableSystem &) = delete;
32  };
33 }
WAL::ViewEntity
Definition: View.hpp:19
System.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
ControllableComponent.hpp
MovableComponent.hpp
WAL::System
A base system of WAL.
Definition: System.hpp:22
BBM::ControllableSystem
A system to handle Controllable entities.
Definition: ControllableSystem.hpp:17