Core class representing an entity in the game world.
Base class for scripting custom behaviors in game objects.
Script()
Default constructor, initializes an empty script.
void setOwner(GameObject *owner)
Sets the owner of this script.
virtual void input()
Virtual method for handling input. Should be overridden by derived classes.
std::string getName()
Retrieves the name of the script.
virtual ~Script()
Virtual destructor to allow for cleanup in derived script classes.
std::string m_name
Name of the script, useful for identification or debugging.
virtual void render()
Virtual method for rendering operations. Should be overridden by derived classes.
GameObject * getOwner()
Retrieves the owner GameObject of this script.
GameObject * m_owner
Pointer to the GameObject that owns this script.
virtual void update()
Virtual method for updating the script's state. Should be overridden by derived classes.