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.

ComponentMgr *

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

Component focus lost event.

void

Component focus gained event.

Detailed description

Base class from which all components inherit.

Methods

GetOwner

Copied!

Entity * GetOwner () const

Gets the component’s owner Entity instance.


GetManager

Copied!

ComponentMgr * GetManager () const

Get the ComponentMgr associated with this component type.


GetType

Copied!

const wchar_t* GetType () const

Gets the component’s type.


Update

Copied!

virtual void Update (double deltaTime) = 0

Component Update function. Must be overridden by each derived component class.


OnFocusLost

Copied!

virtual void OnFocusLost ()

Component focus lost event.


OnFocusGained

Copied!

virtual void OnFocusGained ()

Component focus gained event.