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