Bomberman
BombSystem.hpp
Go to the documentation of this file.
1 //
2 // Created by Zoe Roux on 6/9/21.
3 //
4 
5 #pragma once
6 
7 #include <System/System.hpp>
10 
11 namespace BBM
12 {
13  class BombSystem : public WAL::System<BasicBombComponent, PositionComponent>
14  {
15  public:
17  void onUpdate(WAL::ViewEntity<BasicBombComponent, PositionComponent> &entity, std::chrono::nanoseconds dtime) override;
18 
20  explicit BombSystem(WAL::Wal &wal);
22  BombSystem(const BombSystem &) = default;
24  ~BombSystem() override = default;
26  BombSystem operator=(const BombSystem &) = delete;
27  };
28 }
WAL::ViewEntity
Definition: View.hpp:19
System.hpp
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
BBM::BombSystem::~BombSystem
~BombSystem() override=default
A default destructor.
BBM::BombSystem::onUpdate
void onUpdate(WAL::ViewEntity< BasicBombComponent, PositionComponent > &entity, std::chrono::nanoseconds dtime) override
Definition: BombSystem.cpp:14
BBM::BombSystem::operator=
BombSystem operator=(const BombSystem &)=delete
A bomb system can't be assigned.
BBM::BombSystem
Definition: BombSystem.hpp:13
BasicBombComponent.hpp
WAL::System
A base system of WAL.
Definition: System.hpp:22
BBM::BombSystem::BombSystem
BombSystem(WAL::Wal &wal)
Construct a new bomb system.
Definition: BombSystem.cpp:10