mirror of
https://github.com/zoriya/Bomberman.git
synced 2026-05-26 07:49:33 +00:00
timer added to speedup bonus (15s)
This commit is contained in:
@@ -9,14 +9,17 @@
|
||||
#include "Component/Controllable/ControllableComponent.hpp"
|
||||
#include "System/System.hpp"
|
||||
|
||||
using namespace std::chrono_literals;
|
||||
|
||||
namespace BBM
|
||||
{
|
||||
//! @brief A system to handle Controllable entities.
|
||||
class ControllableSystem : public WAL::System<ControllableComponent, MovableComponent>
|
||||
{
|
||||
public:
|
||||
|
||||
//! @inherit
|
||||
void onFixedUpdate(WAL::ViewEntity<ControllableComponent, MovableComponent> &entity) override;
|
||||
void onUpdate(WAL::ViewEntity<ControllableComponent, MovableComponent> &entity, std::chrono::nanoseconds dtime) override;
|
||||
|
||||
//! @brief A default constructor
|
||||
explicit ControllableSystem(WAL::Wal &wal);
|
||||
|
||||
Reference in New Issue
Block a user