Bomberman
sources
System
EndCondition
EndConditionSystem.hpp
Go to the documentation of this file.
1
2
#pragma once
3
4
#include "
System/System.hpp
"
5
#include "
Component/Score/ScoreComponent.hpp
"
6
#include "
Component/Health/HealthComponent.hpp
"
7
#include "
Wal.hpp
"
8
#include <chrono>
9
10
using namespace
std::chrono_literals;
11
12
namespace
BBM
13
{
14
class
EndConditionSystem
:
public
WAL::System
<ScoreComponent, HealthComponent>
15
{
16
public
:
17
std::chrono::nanoseconds endConditionRate = 500ms;
18
20
void
onSelfUpdate(std::chrono::nanoseconds dtime)
override
;
21
23
EndConditionSystem
(
WAL::Wal
&wal);
25
EndConditionSystem
(
const
EndConditionSystem
&) =
default
;
27
~
EndConditionSystem
()
override
=
default
;
29
EndConditionSystem
&operator=(
const
EndConditionSystem
&) =
delete
;
30
};
31
}
System.hpp
BBM
Definition:
AnimationsComponent.cpp:9
WAL::Wal
The main WAL class, it is used to setup and run the ECS.
Definition:
Wal.hpp:27
ScoreComponent.hpp
WAL::System
A base system of WAL.
Definition:
System.hpp:22
Wal.hpp
HealthComponent.hpp
BBM::EndConditionSystem
Definition:
EndConditionSystem.hpp:14
Generated by
1.8.17