My Project
MoveSystem.hpp
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  /* Ecs */
12  #include "Registry.hpp"
13 
14  /* Component */
15  #include "Component/CDirection.hpp"
16  #include "Component/CPosition.hpp"
17  #include "Component/CVelocity.hpp"
18  #include "Component/CTimer.hpp"
19 
23 namespace System {
27  class MoveSystem {
28  public:
32  MoveSystem();
33  ~MoveSystem() = default;
34 
44  void operator()(
45  Registry &registry,
50  );
51 
52  protected:
53  private:
54  };
55 }
56 
57 #endif /* !MOVESYSTEM_HPP_ */
Sparse_array
Class that handle Element of type Component like a vector which can be holed.
Definition: SparseArray.hpp:22
System
Namespace for systems.
Definition: DirectionSystem.hpp:24
Registry
Class that handle ECS.
Definition: Registry.hpp:22
System::MoveSystem::MoveSystem
MoveSystem()
Construct a new Move System object.
Definition: MoveSystem.cpp:21
System::MoveSystem::operator()
void operator()(Registry &registry, Sparse_array< component::cnetwork_queue_t > &netqueue, Sparse_array< component::cdirection_t > &direction, Sparse_array< component::cposition_t > &position, Sparse_array< component::cvelocity_t > &velocity, Sparse_array< component::ctimer_t > &timer, Sparse_array< component::clobby_id_t > &LobbyId, Sparse_array< component::clobbies_status_t > &lobbiesStatus)
The main handler for the Move System.