Bomberman
sources
Component
Shaders
Items
BombExplosionShaderComponent.hpp
Go to the documentation of this file.
1
//
2
// Created by cbihan on 16/06/2021.
3
//
4
5
#pragma once
6
7
#include "
Component/Component.hpp
"
8
#include "
Entity/Entity.hpp
"
9
#include <chrono>
10
11
using namespace
std::chrono_literals;
12
13
namespace
BBM
14
{
15
class
BombExplosionShaderComponent
:
public
WAL::Component
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
39
BombExplosionShaderComponent
(
const
BombExplosionShaderComponent
&) =
default
;
40
42
~
BombExplosionShaderComponent
()
override
=
default
;
43
45
BombExplosionShaderComponent
&operator=(
const
BombExplosionShaderComponent
&) =
delete
;
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
Generated by
1.8.17