Bomberman
sources
System
Bonus
PlayerBonusSystem.hpp
Go to the documentation of this file.
1
//
2
// Created by hbenjamin on 09/06/2021.
3
//
4
5
#pragma once
6
7
#include "
System/System.hpp
"
8
#include "
Wal.hpp
"
9
#include "
Models/Vector3.hpp
"
10
#include "
Component/Bonus/PlayerBonusComponent.hpp
"
11
#include "
Component/Controllable/ControllableComponent.hpp
"
12
#include "
Component/BombHolder/BombHolderComponent.hpp
"
13
14
namespace
BBM
15
{
17
class
PlayerBonusSystem
:
public
WAL::System
<PlayerBonusComponent, ControllableComponent, BombHolderComponent>
18
{
19
private
:
20
public
:
22
void
onUpdate
(
WAL::ViewEntity<PlayerBonusComponent, ControllableComponent, BombHolderComponent>
&entity, std::chrono::nanoseconds dtime)
override
;
23
25
explicit
PlayerBonusSystem
(
WAL::Wal
&wal);
27
PlayerBonusSystem
(
const
PlayerBonusSystem
&) =
default
;
29
~PlayerBonusSystem
()
override
=
default
;
31
PlayerBonusSystem
&
operator=
(
const
PlayerBonusSystem
&) =
delete
;
32
};
33
}
34
WAL::ViewEntity
Definition:
View.hpp:19
System.hpp
BBM::PlayerBonusSystem
The system that allow one to place bombs.
Definition:
PlayerBonusSystem.hpp:17
BombHolderComponent.hpp
BBM::PlayerBonusSystem::~PlayerBonusSystem
~PlayerBonusSystem() override=default
A default destructor.
Vector3.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
BBM::PlayerBonusSystem::operator=
PlayerBonusSystem & operator=(const PlayerBonusSystem &)=delete
A bomb holder system is not assignable.
ControllableComponent.hpp
BBM::PlayerBonusSystem::PlayerBonusSystem
PlayerBonusSystem(WAL::Wal &wal)
A default constructor.
Definition:
PlayerBonusSystem.cpp:15
BBM::PlayerBonusSystem::onUpdate
void onUpdate(WAL::ViewEntity< PlayerBonusComponent, ControllableComponent, BombHolderComponent > &entity, std::chrono::nanoseconds dtime) override
Definition:
PlayerBonusSystem.cpp:19
WAL::System
A base system of WAL.
Definition:
System.hpp:22
Wal.hpp
PlayerBonusComponent.hpp
Generated by
1.8.17