Bomberman
sources
Component
BumperTimer
BumperTimerComponent.hpp
Go to the documentation of this file.
1
//
2
// Created by Tom Augier on 2021-05-20.
3
//
4
5
#pragma once
6
7
#include <chrono>
8
#include "
Component/Component.hpp
"
9
#include "
Entity/Entity.hpp
"
10
11
using namespace
std::chrono_literals;
12
13
namespace
BBM
14
{
15
class
BumperTimerComponent
:
public
WAL::Component
16
{
17
public
:
18
19
20
bool
_isReseting =
false
;
22
std::chrono::nanoseconds resetRate = 1500ms;
24
std::chrono::nanoseconds nextReset = resetRate;
25
27
WAL::Component
*clone(
WAL::Entity
&entity)
const override
;
28
30
BumperTimerComponent
(
WAL::Entity
&entity);
31
33
BumperTimerComponent
(
const
BumperTimerComponent
&) =
default
;
34
36
~
BumperTimerComponent
()
override
=
default
;
37
39
BumperTimerComponent
&operator=(
const
BumperTimerComponent
&) =
delete
;
40
};
41
}
BBM::BumperTimerComponent
Definition:
BumperTimerComponent.hpp:15
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
Generated by
1.8.17