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