mirror of
https://github.com/zoriya/Bomberman.git
synced 2026-05-06 13:18:31 +00:00
Add basic controls components and system
KeyboardComponents/System + ControllableComponents/ControllableSystem
This commit is contained in:
30
sources/System/Keyboard/KeyboardSystem.hpp
Normal file
30
sources/System/Keyboard/KeyboardSystem.hpp
Normal file
@@ -0,0 +1,30 @@
|
||||
//
|
||||
// Created by Tom Augier on 2021-05-20.
|
||||
// Edited by Benjamin Henry on 2021-05-20.
|
||||
//
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "lib/wal/sources/System/System.hpp"
|
||||
|
||||
namespace BBM
|
||||
{
|
||||
//! @brief A system to handle keyboard entities.
|
||||
class KeyboardSystem : public WAL::System
|
||||
{
|
||||
public:
|
||||
//! @inherit
|
||||
const std::type_info &getComponent() const override;
|
||||
//! @inherit
|
||||
void onFixedUpdate(WAL::Entity &entity) override;
|
||||
|
||||
//! @brief A default constructor
|
||||
KeyboardSystem() = default;
|
||||
//! @brief A keyboard system is copy constructable
|
||||
KeyboardSystem(const KeyboardSystem &) = default;
|
||||
//! @brief A default destructor
|
||||
~KeyboardSystem() override = default;
|
||||
//! @brief A keyboard system is assignable.
|
||||
KeyboardSystem &operator=(const KeyboardSystem &) = default;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user