Base interface for all ECS components.
Component representing movement direction and speed.
Vector2 getDirection() const
Get the direction vector.
float _baseSpeed
Base speed (before buffs)
void setSpeed(float speed)
Set the movement speed.
float _speed
Movement speed in units per second.
float getSpeed() const
Get the movement speed.
Velocity(float dirX, float dirY, float speed)
Constructor with direction and speed.
Vector2 _direction
Movement direction vector.
ComponentType getType() const override
Get the component type ID.
void setDirection(float dirX, float dirY)
Set the direction vector.
~Velocity() override=default
float getBaseSpeed() const
Get the base movement speed (before buffs).
Maximum number of distinct component types supported by the Registry.
std::size_t ComponentType
Type alias for component identification.