PlayerBonus system & component made (containing timer)

This commit is contained in:
HENRY Benjamin
2021-06-09 12:05:33 +02:00
parent 97b7a7d259
commit 5c357af61d
9 changed files with 163 additions and 14 deletions
@@ -27,10 +27,6 @@ namespace BBM
bool pause = false;
//! @brief The speed applied to every controllable entities.
float speed = .25f;
//! @brief The number of seconds before a speedbonus expire. This variable is used to reset the nextSpeedBonusRate value.
std::chrono::nanoseconds speedBonusRate = 15000ms;
//! @brief The number of nanosecond before the expiration of a speed bonus.
std::chrono::nanoseconds nextSpeedBonusRate = speedBonusRate;
//! @inherit
WAL::Component *clone(WAL::Entity &entity) const override;