mirror of
https://github.com/zoriya/Bomberman.git
synced 2025-12-20 21:35:12 +00:00
32 lines
903 B
C++
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;
|
|
};
|
|
}
|