mirror of
https://github.com/zoriya/Bomberman.git
synced 2025-12-20 13:25:10 +00:00
32 lines
821 B
C++
32 lines
821 B
C++
//
|
|
// Created by Tom Augier on 2021-05-20.
|
|
// Edited by Benjamin Henry on 2021-05-20.
|
|
//
|
|
|
|
#pragma once
|
|
|
|
#include "System/System.hpp"
|
|
|
|
namespace BBM
|
|
{
|
|
//! @brief A system to handle Controllable entities.
|
|
class ControllableSystem : public WAL::System
|
|
{
|
|
public:
|
|
//! @brief The speed applied to every controllable entities.
|
|
static constexpr const float speed = .25f;
|
|
|
|
//! @inherit
|
|
void onFixedUpdate(WAL::Entity &entity) override;
|
|
|
|
//! @brief A default constructor
|
|
ControllableSystem();
|
|
//! @brief A Controllable system is copy constructable
|
|
ControllableSystem(const ControllableSystem &) = default;
|
|
//! @brief A default destructor
|
|
~ControllableSystem() override = default;
|
|
//! @brief A Controllable system is assignable.
|
|
ControllableSystem &operator=(const ControllableSystem &) = default;
|
|
};
|
|
}
|