6#include "Component.hpp"
18 void Input(
float deltaTime)
override;
20 void Update(
float deltaTime)
override;
22 void Render(SDL_Renderer* renderer)
override;
26 void SetWH(
float w,
float h);
33 void SetXY(
float x,
float y);
38 SDL_FRect GetRectangle()
const;
A component that represents a 2D collision box.
Definition Collision2DComponent.hpp:12
void Update(float deltaTime) override
Update the game state.
ComponentType GetType() override
Get the type of the component.
void Render(SDL_Renderer *renderer) override
Render the game.
void Input(float deltaTime) override
Handle input.
Base class for all components.
Definition Component.hpp:15