R-TYPE
BonusSystem.hpp
Go to the documentation of this file.
1 /*
2 ** EPITECH PROJECT, 2022
3 ** r-type
4 ** File description:
5 ** BonusSystem
6 */
7 
8 #ifndef BONUSSYSTEM_HPP_
9 #define BONUSSYSTEM_HPP_
10 
11 #include "./System.hpp"
12 
13 namespace ECS
14 {
15  class BonusSystem : public System {
16  public:
17  BonusSystem(const std::shared_ptr<ComponentManager>& componentsManager, const std::shared_ptr<EntityManager>& entityManager);
18  ~BonusSystem() = default;
19 
20  void update();
21  void setSfml(std::shared_ptr<InitSfml> sfml);
22  void setClock(std::shared_ptr<Clock> clock);
23  bool checkIsValidEntity(Entity entity);
24 
25  protected:
26  private:
27  std::shared_ptr<InitSfml> _sfml;
28  std::shared_ptr<Clock> _clock;
29 };
30 } // namespace ECS
31 
32 #endif /* !BONUSSYSTEM_HPP_ */
Definition: BonusSystem.hpp:15
void setSfml(std::shared_ptr< InitSfml > sfml)
Definition: BonusSystem.cpp:85
~BonusSystem()=default
bool checkIsValidEntity(Entity entity)
Definition: BonusSystem.cpp:108
void update()
Definition: BonusSystem.cpp:25
BonusSystem(const std::shared_ptr< ComponentManager > &componentsManager, const std::shared_ptr< EntityManager > &entityManager)
Definition: BonusSystem.cpp:18
void setClock(std::shared_ptr< Clock > clock)
Definition: BonusSystem.cpp:96
Definition: Entity.hpp:30
Definition: System.hpp:18
Definition: ComponentManager.hpp:14