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

#include <Actor.h>

Inheritance diagram for AActor:
[legend]
Collaboration diagram for AActor:
[legend]

Public Member Functions

virtual ~AActor ()=default
 
 AActor ()
 
 AActor (SpawnParams params)
 
virtual void SetSpawnParams (SpawnParams &params)
 
virtual void BeginPlay ()
 
virtual void Tick ()
 
virtual void Draw (Camera *camera)
 
virtual void Collision (Player *player, AActor *actor)
 
virtual void VehicleCollision (s32 playerId, Player *player)
 
void SetLocation (FVector pos)
 
virtual void Destroy ()
 
virtual bool IsMod ()
 
FVector GetLocation () const
 
IRotator GetRotation () const
 
FVector GetScale () const
 
void Translate (FVector pos)
 
void Rotate (IRotator rot)
 
void SetScale (FVector scale)
 
virtual void DrawEditorProperties ()
 

Data Fields

s16 Type = 0
 
s16 Flags
 
s16 Unk_04
 
s16 State
 
f32 Unk_08
 
f32 BoundingBoxSize
 
Vec3s Rot = {0, 0, 0}
 
s16 Unk_16
 
Vec3f Pos
 
Vec3f Velocity = {0, 0, 0}
 
Collision Unk30
 
const char * Model = ""
 
uint8_t uuid [16]
 
const char * Name = ""
 
const char * ResourceName = ""
 
FVector SpawnPos = {0.0f, 0.0f, 0.0f}
 
IRotator SpawnRot = {0, 0, 0}
 
FVector SpawnScale = {1.0f, 1.0f, 1.0f}
 
FVector Scale = {1, 1, 1}
 
float Speed = 0.0f
 
std::vector< TriangleTriangles
 
bool bPendingDestroy = false
 

Constructor & Destructor Documentation

◆ ~AActor()

virtual AActor::~AActor ( )
virtualdefault
Here is the call graph for this function:

◆ AActor() [1/2]

AActor::AActor ( )
explicit
Here is the caller graph for this function:

◆ AActor() [2/2]

AActor::AActor ( SpawnParams params)
explicit

Member Function Documentation

◆ BeginPlay()

void AActor::BeginPlay ( )
virtual

Reimplemented in ACloud, AFinishline, AShip, and AStarship.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Collision()

void AActor::Collision ( Player * player,
AActor * actor )
virtual

Reimplemented in ABanana, ACloud, AFinishline, and ATree.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Destroy()

void AActor::Destroy ( )
virtual

Reimplemented in ABanana, and ATree.

◆ Draw()

void AActor::Draw ( Camera * camera)
virtual

Reimplemented in ABanana, ABoat, ABowserStatue, ABus, ACar, ACloud, AFallingRock, AFinishline, AMarioSign, ASpaghettiShip, ATankerTruck, AText, ATrain, ATree, ATruck, and AWarioSign.

Here is the call graph for this function:

◆ DrawEditorProperties()

virtual void AActor::DrawEditorProperties ( )
inlinevirtual

Reimplemented in ABoat, ABus, ACar, ACloud, AFallingRock, AShip, AStarship, ATankerTruck, AText, ATrain, and ATruck.

Here is the call graph for this function:

◆ GetLocation()

FVector AActor::GetLocation ( ) const

Editor functions

Here is the caller graph for this function:

◆ GetRotation()

IRotator AActor::GetRotation ( ) const
Here is the caller graph for this function:

◆ GetScale()

FVector AActor::GetScale ( ) const
Here is the caller graph for this function:

◆ IsMod()

bool AActor::IsMod ( )
virtual

Reimplemented in ABoat, ABowserStatue, ABus, ACar, ACloud, AFallingRock, AFinishline, AMarioSign, AShip, ASpaghettiShip, AStarship, ATankerTruck, AText, ATrain, ATruck, and AWarioSign.

Here is the caller graph for this function:

◆ Rotate()

void AActor::Rotate ( IRotator rot)
Here is the caller graph for this function:

◆ SetLocation()

void AActor::SetLocation ( FVector pos)
Here is the caller graph for this function:

◆ SetScale()

void AActor::SetScale ( FVector scale)
Here is the caller graph for this function:

◆ SetSpawnParams()

void AActor::SetSpawnParams ( SpawnParams & params)
virtual

Make sure you call this in derived classes! Usage: MyActor::SetSpawnParams(SetSpawnParams& params) { AActor::SetSpawnParams(params); // Calls default implementation }

Reimplemented in ABoat, ABus, ACar, ACloud, AFallingRock, AMarioSign, AShip, AStarship, ATankerTruck, AText, ATrain, and ATruck.

Here is the caller graph for this function:

◆ Tick()

◆ Translate()

void AActor::Translate ( FVector pos)
Here is the caller graph for this function:

◆ VehicleCollision()

void AActor::VehicleCollision ( s32 playerId,
Player * player )
virtual

Reimplemented in ABoat, ABus, ACar, ATankerTruck, ATrain, and ATruck.

Field Documentation

◆ BoundingBoxSize

f32 AActor::BoundingBoxSize

◆ bPendingDestroy

bool AActor::bPendingDestroy = false

◆ Flags

s16 AActor::Flags

◆ Model

const char* AActor::Model = ""

◆ Name

const char* AActor::Name = ""

◆ Pos

Vec3f AActor::Pos

◆ ResourceName

const char* AActor::ResourceName = ""

◆ Rot

Vec3s AActor::Rot = {0, 0, 0}

◆ Scale

FVector AActor::Scale = {1, 1, 1}

◆ SpawnPos

FVector AActor::SpawnPos = {0.0f, 0.0f, 0.0f}

◆ SpawnRot

IRotator AActor::SpawnRot = {0, 0, 0}

◆ SpawnScale

FVector AActor::SpawnScale = {1.0f, 1.0f, 1.0f}

◆ Speed

float AActor::Speed = 0.0f

◆ State

s16 AActor::State

◆ Triangles

std::vector<Triangle> AActor::Triangles

◆ Type

s16 AActor::Type = 0

◆ Unk30

Collision AActor::Unk30

◆ Unk_04

s16 AActor::Unk_04

◆ Unk_08

f32 AActor::Unk_08

◆ Unk_16

s16 AActor::Unk_16

◆ uuid

uint8_t AActor::uuid[16]

◆ Velocity

Vec3f AActor::Velocity = {0, 0, 0}

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