GPR5100 - Rollback
Loading...
Searching...
No Matches
Classes | Typedefs | Variables
entity.h File Reference
#include <cstdint>
#include <vector>
#include <limits>
Include dependency graph for entity.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  core::EntityManager
 Manages the entities in an array using bitwise operations to know if it has components. More...
 

Typedefs

using core::Entity = std::uint32_t
 Entity is the type used to define an game world entity. An Entity is just an index, it means that if you have access to a ComponentManager, you can get the Component by giving the index of the Entity.
 
using core::EntityMask = std::uint32_t
 EntityMask is the type used to define the bitwise mask of an Entity. It is used to know what Component an Entity has.
 

Variables

constexpr Entity core::INVALID_ENTITY = std::numeric_limits<Entity>::max()
 INVALID_ENTITY is a constant that define an invalid Entity.
 
constexpr EntityMask core::INVALID_ENTITY_MASK = 0u
 INVALID_ENTITY_MASK is a constant that define an invalid or empty entity mask.