Bomberman
BumperTimerSystem.hpp
Go to the documentation of this file.
1 //
2 // Created by Tom Augier on 2021-06-09.
3 //
4 
5 #pragma once
6 
10 #include "System/System.hpp"
11 
12 namespace BBM
13 {
15  class BumperTimerSystem : public WAL::System<BumperTimerComponent>
16  {
17  public:
19  void onUpdate(WAL::ViewEntity<BumperTimerComponent> &entity, std::chrono::nanoseconds dtime) override;
21  explicit BumperTimerSystem(WAL::Wal &wal);
23  BumperTimerSystem(const BumperTimerSystem &) = default;
25  ~BumperTimerSystem() override = default;
28  };
29 }
WAL::ViewEntity
Definition: View.hpp:19
System.hpp
BBM::BumperTimerSystem::BumperTimerSystem
BumperTimerSystem(WAL::Wal &wal)
A default constructor.
Definition: BumperTimerSystem.cpp:9
BBM
Definition: AnimationsComponent.cpp:9
PositionComponent.hpp
WAL::Wal
The main WAL class, it is used to setup and run the ECS.
Definition: Wal.hpp:27
MovableComponent.hpp
BBM::BumperTimerSystem::onUpdate
void onUpdate(WAL::ViewEntity< BumperTimerComponent > &entity, std::chrono::nanoseconds dtime) override
Definition: BumperTimerSystem.cpp:13
BBM::BumperTimerSystem
A system to handle BumperTimer entities.
Definition: BumperTimerSystem.hpp:15
BBM::BumperTimerSystem::~BumperTimerSystem
~BumperTimerSystem() override=default
A default destructor.
BumperTimerComponent.hpp
WAL::System
A base system of WAL.
Definition: System.hpp:22
BBM::BumperTimerSystem::operator=
BumperTimerSystem & operator=(const BumperTimerSystem &)=delete
A system is not assignable.