Bomberman
TimerUISystem.hpp
Go to the documentation of this file.
1 //
2 // Created by Zoe Roux on 5/31/21.
3 //
4 
5 #pragma once
6 
7 #include <System/System.hpp>
8 #include <Wal.hpp>
12 
13 namespace BBM
14 {
15  class TimerUISystem : public WAL::System<TimerComponent, Drawable2DComponent, TagComponent<Timer>>
16  {
17  public:
19  void onUpdate(WAL::ViewEntity<TimerComponent, Drawable2DComponent, TagComponent<Timer>> &entity, std::chrono::nanoseconds dtime) override;
20 
22  explicit TimerUISystem(WAL::Wal &);
24  TimerUISystem(const TimerUISystem &) = default;
26  ~TimerUISystem() override = default;
28  TimerUISystem &operator=(const TimerUISystem &) = delete;
29  };
30 }
BBM::TimerUISystem::TimerUISystem
TimerUISystem(WAL::Wal &)
A default constructor.
Definition: TimerUISystem.cpp:14
BBM::TimerUISystem::operator=
TimerUISystem & operator=(const TimerUISystem &)=delete
@breief A timer system is assignable.
BBM::Drawable2DComponent
Definition: Drawable2DComponent.hpp:14
WAL::ViewEntity
Definition: View.hpp:19
System.hpp
BBM::TimerComponent
Definition: TimerComponent.hpp:15
BBM::TimerUISystem::onUpdate
void onUpdate(WAL::ViewEntity< TimerComponent, Drawable2DComponent, TagComponent< Timer >> &entity, std::chrono::nanoseconds dtime) override
Definition: TimerUISystem.cpp:18
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::TagComponent
Definition: TagComponent.hpp:33
TimerComponent.hpp
WAL::System
A base system of WAL.
Definition: System.hpp:22
Wal.hpp
Drawable2DComponent.hpp
BBM::TimerUISystem::~TimerUISystem
~TimerUISystem() override=default
A default destructor.
TagComponent.hpp
BBM::TimerUISystem
Definition: TimerUISystem.hpp:15