Jungle_Week1_Team2
Loading...
Searching...
No Matches
AActor Class Reference

#include <Actor.h>

Inheritance diagram for AActor:
UObject ACubeActor ASphereActor

Public Member Functions

 AActor (UClass *InClass, const FString &InName, UObject *InOuter=nullptr)
 ~AActor () override=default
USceneGetScene () const
void SetScene (UScene *InScene)
USceneComponentGetRootComponent () const
void SetRootComponent (USceneComponent *InRootComponent)
const TArray< UActorComponent * > & GetComponents () const
void AddOwnedComponent (UActorComponent *InComponent)
void RemoveOwnedComponent (UActorComponent *InComponent)
template<typename T>
T * GetComponentByClass () const
virtual void PostSpawnInitialize ()
virtual void BeginPlay ()
virtual void Tick (float DeltaTime)
virtual void EndPlay ()
virtual void Destroy ()
bool HasBegunPlay () const
bool IsPendingDestroy () const
bool CanTick () const
void SetActorTickEnabled (bool bEnabled)
const FVectorGetActorLocation () const
void SetActorLocation (const FVector &InLocation)
Public Member Functions inherited from UObject
 UObject (uint32 InUUID, size_t InObjectType)
virtual ~UObject ()=default
 UObject (UClass *InClass, FString InName, UObject *InOuter=nullptr)
void * operator new (size_t InSize)
void operator delete (void *InAddress, std::size_t size)
UClassGetClass () const
const FStringGetName () const
UObjectGetOuter () const
bool IsA (const UClass *InClass) const
template<typename T>
T * GetTypedOuter () const
FString GetPathName () const
bool HasAnyFlags (EObjectFlags InFlags) const
bool HasAllFlags (EObjectFlags InFlags) const
void AddFlags (EObjectFlags InFlags)
void ClearFlags (EObjectFlags InFlags)
void MarkPendingKill ()
bool IsPendingKill () const

Static Public Member Functions

static UClassStaticClass ()
Static Public Member Functions inherited from UObject
static int32 GetTotalBytes ()
static int32 GetTotalCounts ()
static UClassStaticClass ()

Protected Attributes

USceneScene = nullptr
USceneComponentRootComponent = nullptr
TArray< UActorComponent * > OwnedComponents
bool bCanEverTick = true
bool bTickEnabled = true
bool bActorBegunPlay = false
bool bPendingDestroy = false

Additional Inherited Members

Static Public Attributes inherited from UObject
static int32 TotalAllocationBytes = 0
static int32 TotalAllocationCounts = 0

Constructor & Destructor Documentation

◆ AActor()

AActor::AActor ( UClass * InClass,
const FString & InName,
UObject * InOuter = nullptr )

◆ ~AActor()

AActor::~AActor ( )
overridedefault

Member Function Documentation

◆ AddOwnedComponent()

void AActor::AddOwnedComponent ( UActorComponent * InComponent)

◆ BeginPlay()

void AActor::BeginPlay ( )
virtual

◆ CanTick()

bool AActor::CanTick ( ) const
inline

◆ Destroy()

void AActor::Destroy ( )
virtual

◆ EndPlay()

void AActor::EndPlay ( )
virtual

◆ GetActorLocation()

const FVector & AActor::GetActorLocation ( ) const

◆ GetComponentByClass()

template<typename T>
T * AActor::GetComponentByClass ( ) const
inline

◆ GetComponents()

const TArray< UActorComponent * > & AActor::GetComponents ( ) const
inline

◆ GetRootComponent()

USceneComponent * AActor::GetRootComponent ( ) const
inline

◆ GetScene()

UScene * AActor::GetScene ( ) const
inline

◆ HasBegunPlay()

bool AActor::HasBegunPlay ( ) const
inline

◆ IsPendingDestroy()

bool AActor::IsPendingDestroy ( ) const
inline

◆ PostSpawnInitialize()

void AActor::PostSpawnInitialize ( )
virtual

Reimplemented in ACubeActor, and ASphereActor.

◆ RemoveOwnedComponent()

void AActor::RemoveOwnedComponent ( UActorComponent * InComponent)

◆ SetActorLocation()

void AActor::SetActorLocation ( const FVector & InLocation)

◆ SetActorTickEnabled()

void AActor::SetActorTickEnabled ( bool bEnabled)
inline

◆ SetRootComponent()

void AActor::SetRootComponent ( USceneComponent * InRootComponent)
inline

◆ SetScene()

void AActor::SetScene ( UScene * InScene)
inline

◆ StaticClass()

UClass * AActor::StaticClass ( )
static

◆ Tick()

void AActor::Tick ( float DeltaTime)
virtual

Member Data Documentation

◆ bActorBegunPlay

bool AActor::bActorBegunPlay = false
protected

◆ bCanEverTick

bool AActor::bCanEverTick = true
protected

◆ bPendingDestroy

bool AActor::bPendingDestroy = false
protected

◆ bTickEnabled

bool AActor::bTickEnabled = true
protected

◆ OwnedComponents

TArray<UActorComponent*> AActor::OwnedComponents
protected

◆ RootComponent

USceneComponent* AActor::RootComponent = nullptr
protected

◆ Scene

UScene* AActor::Scene = nullptr
protected

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