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