17 using ComponentManager::ComponentManager;
27 using ComponentManager::ComponentManager;
37 using ComponentManager::ComponentManager;
48 [[nodiscard]]
Vec2f GetPosition(
Entity entity)
const;
49 [[nodiscard]]
const std::vector<Vec2f>& GetAllPositions()
const;
53 [[nodiscard]]
const std::vector<Vec2f>& GetAllScales()
const;
57 [[nodiscard]]
const std::vector<Degree>& GetAllRotations()
const;
60 void AddComponent(
Entity entity);
61 void RemoveComponent(
Entity entity);
ComponentManager is a class that owns Component in a contiguous array. Component indexing is done wit...
Definition: component.h:33
Degree is an utility class that describes degree angles (0 to 360). It can be easily converted to Rad...
Definition: angle.h:56
Manages the entities in an array using bitwise operations to know if it has components.
Definition: entity.h:35
PositionManager is a ComponentManager that holds positions in 2d space. Positions are in physics spac...
Definition: transform.h:15
RotationManager is a ComponentManager that holds the Degree angle.
Definition: transform.h:35
ScaleManager is a ComponentManager that holds the scale ratio in x and y. By default,...
Definition: transform.h:25
void AddComponent(Entity entity) override
AddComponent is a method that sets the flag C in the EntityManager and resize if need the components_...
Definition: transform.cpp:5
std::uint32_t Entity
Entity is the type used to define an game world entity. An Entity is just an index,...
Definition: entity.h:17
Vec2f is a utility class that represents a mathematical 2d vector.
Definition: vec2.h:12