Bomberman
sources
System
Score
ScoreSystem.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
9
namespace
BBM
10
{
11
class
ScoreSystem
:
public
WAL::System
<ScoreComponent, HealthComponent>
12
{
13
public
:
15
void
onUpdate
(
WAL::ViewEntity<ScoreComponent, HealthComponent>
&entity, std::chrono::nanoseconds dtime)
override
;
16
18
ScoreSystem
(
WAL::Wal
&wal);
20
ScoreSystem
(
const
ScoreSystem
&) =
default
;
22
~ScoreSystem
()
override
=
default
;
24
ScoreSystem
&
operator=
(
const
ScoreSystem
&) =
delete
;
25
};
26
}
WAL::ViewEntity
Definition:
View.hpp:19
System.hpp
BBM::ScoreSystem::ScoreSystem
ScoreSystem(WAL::Wal &wal)
ctor
Definition:
ScoreSystem.cpp:10
BBM::ScoreSystem::operator=
ScoreSystem & operator=(const ScoreSystem &)=delete
A SoundManager screen system can't be assigned.
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
BBM::ScoreSystem
Definition:
ScoreSystem.hpp:11
BBM::ScoreSystem::onUpdate
void onUpdate(WAL::ViewEntity< ScoreComponent, HealthComponent > &entity, std::chrono::nanoseconds dtime) override
Definition:
ScoreSystem.cpp:14
WAL::System
A base system of WAL.
Definition:
System.hpp:22
Wal.hpp
HealthComponent.hpp
BBM::ScoreSystem::~ScoreSystem
~ScoreSystem() override=default
Default dtor.
Generated by
1.8.17