class Component
Base class from which all components inherit.
File location: framework/cauldron/framework/inc/core/component.h
Methods
Return type |
Description |
---|---|
Entity * |
GetOwner () const
Gets the component’s owner “Entity“ instance.
|
GetManager () const
Get the “ComponentMgr“ associated with this component type.
|
|
const wchar_t* |
GetType () const
Gets the component’s type.
|
void |
Update (double deltaTime) = 0
Component Update function. Must be overridden by each derived component class.
|
void |
OnFocusLost ()
Component focus lost event.
|
void |
Component focus gained event.
|
Detailed description
Base class from which all components inherit.
Methods
GetOwner
Entity * GetOwner () const
Gets the component’s owner Entity
instance.
GetManager
ComponentMgr * GetManager () const
Get the ComponentMgr
associated with this component type.
GetType
Gets the component’s type.
Update
Component Update function. Must be overridden by each derived component class.
OnFocusLost
Component focus lost event.
OnFocusGained
Component focus gained event.