Bomberman
sources
System
Keyboard
KeyboardSystem.hpp
Go to the documentation of this file.
1
//
2
// Created by Tom Augier on 2021-05-20.
3
// Edited by Benjamin Henry on 2021-05-20.
4
//
5
6
#pragma once
7
8
#include "
System/System.hpp
"
9
#include <map>
10
#include "
Component/Keyboard/KeyboardComponent.hpp
"
11
#include "
Component/Controllable/ControllableComponent.hpp
"
12
13
namespace
BBM
14
{
16
class
KeyboardSystem
:
public
WAL::System
<KeyboardComponent, ControllableComponent>
17
{
18
public
:
20
void
onUpdate
(
WAL::ViewEntity<KeyboardComponent, ControllableComponent>
&entity, std::chrono::nanoseconds)
override
;
21
23
explicit
KeyboardSystem
(
WAL::Wal
&wal);
25
KeyboardSystem
(
const
KeyboardSystem
&) =
default
;
27
~KeyboardSystem
()
override
=
default
;
29
KeyboardSystem
&
operator=
(
const
KeyboardSystem
&) =
delete
;
30
};
31
}
BBM::KeyboardSystem::~KeyboardSystem
~KeyboardSystem() override=default
A default destructor.
WAL::ViewEntity
Definition:
View.hpp:19
System.hpp
BBM::KeyboardSystem::KeyboardSystem
KeyboardSystem(WAL::Wal &wal)
A default constructor.
Definition:
KeyboardSystem.cpp:15
BBM::KeyboardSystem::onUpdate
void onUpdate(WAL::ViewEntity< KeyboardComponent, ControllableComponent > &entity, std::chrono::nanoseconds) override
Definition:
KeyboardSystem.cpp:19
BBM::KeyboardSystem::operator=
KeyboardSystem & operator=(const KeyboardSystem &)=delete
A system is not assignable.
BBM
Definition:
AnimationsComponent.cpp:9
WAL::Wal
The main WAL class, it is used to setup and run the ECS.
Definition:
Wal.hpp:27
ControllableComponent.hpp
WAL::System
A base system of WAL.
Definition:
System.hpp:22
KeyboardComponent.hpp
BBM::KeyboardSystem
A system to handle keyboard entities.
Definition:
KeyboardSystem.hpp:16
Generated by
1.8.17