R-Type
Entity.hpp
Go to the documentation of this file.
1 /*
2 ** EPITECH PROJECT, 2023
3 ** R-Type
4 ** File description:
5 ** Entity
6 */
7 
8 #ifndef ENTITY_HPP_
9 #define ENTITY_HPP_
10 #include <cstdlib>
11 
12 namespace GameEngine
13 {
14  class Registry;
15 
17  class Entity
18  {
19  public:
20  friend class Registry;
22  ~Entity() = default;
23 
25  operator std::size_t() const { return _entity; };
26 
27  private:
30  explicit Entity(std::size_t entity) : _entity(entity){};
31 
33  std::size_t _entity;
34  };
35 } // namespace GameEngine
36 
37 #endif /* !ENTITY_HPP_ */
Entity class for the game engine.
Definition: Entity.hpp:18
~Entity()=default
Default destructor.
Entity component system, handling entities, components and systems.
Definition: Registry.hpp:31
Definition: AssetManager.hpp:15