XII Release 0.1.0
Loading...
Searching...
No Matches
xiiActor Class Reference
Inheritance diagram for xiiActor:
[legend]

Public Member Functions

 xiiActor (xiiStringView sActorName, const void *pCreatedBy)
 
xiiStringView GetName () const
 Returns the name of this actor.
 
const void * GetCreatedBy () const
 Returns the 'created by' pointer of the actor.
 
void AddPlugin (xiiUniquePtr< xiiActorPlugin > &&pPlugin)
 Transfers ownership of the xiiActorPlugin to the xiiActor.
 
xiiActorPluginGetPlugin (const xiiRTTI *pType) const
 Queries the xiiActor for a xiiActorPlugin of the given type. Returns null if no such plugin was added to the actor.
 
template<typename Type>
Type * GetPlugin () const
 Templated overload of GetPlugin() that automatically casts to the desired class type.
 
void DestroyPlugin (xiiActorPlugin *pPlugin)
 Deletes the given plugin from the actor.
 
void GetAllPlugins (xiiHybridArray< xiiActorPlugin *, 8 > &out_allPlugins)
 Fills the list with all plugins that have been added to the actor.
 
bool IsActorQueuedForDestruction () const
 Checks whether the actor is queued for destruction at the end of the frame.
 
- Public Member Functions inherited from xiiReflectedClass
virtual const xiiRTTIGetDynamicRTTI () const
 
bool IsInstanceOf (const xiiRTTI *pType) const
 Returns whether the type of this instance is of the given type or derived from it.
 
template<typename T>
XII_ALWAYS_INLINE bool IsInstanceOf () const
 Returns whether the type of this instance is of the given type or derived from it.
 

Protected Member Functions

void UpdateAllPlugins ()
 
virtual void Activate ()
 Called shortly before the first call to Update()
 
virtual void Update ()
 Called once per frame to update the actor state.
 

Friends

class xiiActorManager
 

Additional Inherited Members

- Static Public Member Functions inherited from xiiNoBase
static const xiiRTTIGetStaticRTTI ()
 

Member Function Documentation

◆ Update()

void xiiActor::Update ( )
protectedvirtual

Called once per frame to update the actor state.

By default this calls UpdateAllPlugins() internally.


The documentation for this class was generated from the following files: