Bomberman
BombExplosionShaderComponent.hpp
Go to the documentation of this file.
1 //
2 // Created by cbihan on 16/06/2021.
3 //
4 
5 #pragma once
6 
8 #include "Entity/Entity.hpp"
9 #include <chrono>
10 
11 using namespace std::chrono_literals;
12 
13 namespace BBM
14 {
16  {
17  public:
19  float explosionRadius = 4;
21  float frameCounter = 0;
23  float alpha = 1;
24 
26  static constexpr float maxRadius = 1.2;
27 
29  std::chrono::nanoseconds clock = 0ns;
30 
31 
33  WAL::Component *clone(WAL::Entity &entity) const override;
34 
36  explicit BombExplosionShaderComponent(WAL::Entity &entity);
37 
40 
42  ~BombExplosionShaderComponent() override = default;
43 
46  };
47 
48 }
WAL::Component
Represent a single component of WAL.
Definition: Component.hpp:17
BBM
Definition: AnimationsComponent.cpp:9
Entity.hpp
WAL::Entity
An entity of the WAL's ECS.
Definition: Entity.hpp:20
Component.hpp
BBM::BombExplosionShaderComponent
Definition: BombExplosionShaderComponent.hpp:15