Files
Bomberman/sources/System/Keyboard/KeyboardSystem.hpp
2021-06-05 18:42:10 +02:00

32 lines
903 B
C++

//
// Created by Tom Augier on 2021-05-20.
// Edited by Benjamin Henry on 2021-05-20.
//
#pragma once
#include "System/System.hpp"
#include <map>
#include "Component/Keyboard/KeyboardComponent.hpp"
#include "Component/Controllable/ControllableComponent.hpp"
namespace BBM
{
//! @brief A system to handle keyboard entities.
class KeyboardSystem : public WAL::System<KeyboardComponent, ControllableComponent>
{
public:
//! @inherit
void onFixedUpdate(WAL::ViewEntity<KeyboardComponent, ControllableComponent> &entity) override;
//! @brief A default constructor
explicit KeyboardSystem(WAL::Wal &wal);
//! @brief A keyboard system is copy constructable
KeyboardSystem(const KeyboardSystem &) = default;
//! @brief A default destructor
~KeyboardSystem() override = default;
//! @brief A system is not assignable.
KeyboardSystem &operator=(const KeyboardSystem &) = delete;
};
}