Etterna 0.74.4
Loading...
Searching...
No Matches
Public Member Functions | Protected Attributes | List of all members
AutoActor Class Reference

A smart pointer for Actor. More...

#include <AutoActor.h>

Collaboration diagram for AutoActor:
Collaboration graph
[legend]

Public Member Functions

 AutoActor (const AutoActor &cpy)
 
auto operator= (const AutoActor &cpy) -> AutoActor &
 
 operator const Actor * () const
 
 operator Actor * ()
 
auto operator-> () const -> const Actor *
 
auto operator-> () -> Actor *
 
void Unload ()
 
auto IsLoaded () const -> bool
 Determine if this actor is presently loaded.
 
void Load (Actor *pActor)
 
void Load (const std::string &sPath)
 
void LoadB (const std::string &sMetricsGroup, const std::string &sElement)
 
void LoadActorFromNode (const XNode *pNode, Actor *pParent)
 
void LoadAndSetName (const std::string &sScreenName, const std::string &sActorName)
 

Protected Attributes

Actorm_pActor { nullptr }
 the Actor for which there is a smart pointer to.
 

Detailed Description

A smart pointer for Actor.

This creates the appropriate Actor derivative on load and automatically deletes the Actor on deconstruction.

Member Function Documentation

◆ IsLoaded()

auto AutoActor::IsLoaded ( ) const -> bool
inline

Determine if this actor is presently loaded.

Returns
true if it is loaded, or false otherwise.

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