GameObject * m_owner
Pointer to the GameObject that owns this component.
void setName(std::string name)
Sets the name of the component.
virtual void render()
Virtual method for rendering, intended to be overridden by derived components.
virtual void update()
Virtual method for updating the component's state, intended to be overridden by derived components.
Component()
Default constructor for the Component.
std::string m_name
Name of the component, useful for identification or debugging.
virtual ~Component()
Virtual destructor for safe polymorphic use.
std::string getName()
Retrieves the name of the component.
virtual void input()
Virtual method for handling input, intended to be overridden by derived components.
GameObject * getOwner()
Retrieves the GameObject that owns this component.
void setOwner(GameObject *owner)
Sets the GameObject owner of this component.
Core class representing an entity in the game world.
Defines the Component base class for all components in the game engine.