mirror of
https://github.com/zoriya/Bomberman.git
synced 2026-05-06 21:27:37 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user