bonus has been done, just need to remove comments when bombholder will be push + decide the time before they got remove

This commit is contained in:
EternalRat
2021-06-02 16:13:18 +02:00
parent 1cb90f9ac3
commit 8b7a24ff1f
7 changed files with 186 additions and 5 deletions

View File

@@ -5,6 +5,9 @@
#pragma once
#include <Component/Bonus/BonusComponent.hpp>
#include "Models/Vector3.hpp"
#include "Wal.hpp"
#include "System/System.hpp"
namespace BBM
@@ -12,12 +15,18 @@ namespace BBM
//! @brief A system to handle Health entities.
class HealthSystem : public WAL::System
{
private:
//! @brief A reference to the engine to spawn new entities.
WAL::Wal &_wal;
//! @brief Spawn a bonus at the specified position.
void _createBonus(Vector3f position, BonusComponent::BonusType bonusType, std::chrono::nanoseconds timer);
public:
//! @inherit
void onFixedUpdate(WAL::Entity &entity) override;
//! @brief A default constructor
HealthSystem();
HealthSystem(WAL::Wal &wal);
//! @brief A Health system is copy constructable
HealthSystem(const HealthSystem &) = default;
//! @brief A default destructor