Plasma Engine  2.0
Loading...
Searching...
No Matches
plActor Class Reference
Inheritance diagram for plActor:

Public Member Functions

 plActor (plStringView sActorName, const void *pCreatedBy)
 
plStringView GetName () const
 Returns the name of this actor.
 
const void * GetCreatedBy () const
 Returns the 'created by' pointer of the actor.
 
void AddPlugin (plUniquePtr< plActorPlugin > &&pPlugin)
 Transfers ownership of the plActorPlugin to the plActor.
 
plActorPluginGetPlugin (const plRTTI *pType) const
 Queries the plActor for an plActorPlugin 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 (plActorPlugin *pPlugin)
 Deletes the given plugin from the actor.
 
void GetAllPlugins (plHybridArray< plActorPlugin *, 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 plReflectedClass
virtual const plRTTIGetDynamicRTTI () const
 
bool IsInstanceOf (const plRTTI *pType) const
 Returns whether the type of this instance is of the given type or derived from it.
 
template<typename T >
PL_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 plActorManager
 

Additional Inherited Members

- Static Public Member Functions inherited from plNoBase
static const plRTTIGetStaticRTTI ()
 

Member Function Documentation

◆ Update()

void plActor::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: