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

#include <FallingRock.h>

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

Public Member Functions

 AFallingRock (SpawnParams params)
 
 ~AFallingRock ()
 
virtual void SetSpawnParams (SpawnParams &params) override
 
virtual bool IsMod () override
 
virtual void Tick () override
 Updates the falling rock actor. Actor used in Choco Mountain.
 
virtual void Draw (Camera *) override
 Renders the falling rock actor. Actor used in Choco Mountain.
 
virtual void DrawEditorProperties () override
 
void Reset ()
 
- Public Member Functions inherited from AActor
virtual ~AActor ()=default
 
 AActor ()
 
 AActor (SpawnParams params)
 
virtual void BeginPlay ()
 
virtual void Collision (Player *player, AActor *actor)
 
virtual void VehicleCollision (s32 playerId, Player *player)
 
void SetLocation (FVector pos)
 
virtual void Destroy ()
 
FVector GetLocation () const
 
IRotator GetRotation () const
 
FVector GetScale () const
 
void Translate (FVector pos)
 
void Rotate (IRotator rot)
 
void SetScale (FVector scale)
 

Static Public Member Functions

static AFallingRockSpawn (FVector pos, int16_t respawnTimer)
 

Data Fields

int16_t TimerLength = 80
 
- Data Fields inherited from AActor
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
 

Private Attributes

uint32_t RespawnTimer = 0
 

Static Private Attributes

static size_t _count = 0
 

Constructor & Destructor Documentation

◆ AFallingRock()

AFallingRock::AFallingRock ( SpawnParams params)
explicit
Here is the call graph for this function:
Here is the caller graph for this function:

◆ ~AFallingRock()

AFallingRock::~AFallingRock ( )
inline

Member Function Documentation

◆ Draw()

void AFallingRock::Draw ( Camera * camera)
overridevirtual

Renders the falling rock actor. Actor used in Choco Mountain.

Parameters
camera
rock

Reimplemented from AActor.

Here is the call graph for this function:

◆ DrawEditorProperties()

void AFallingRock::DrawEditorProperties ( )
overridevirtual

Reimplemented from AActor.

Here is the call graph for this function:

◆ IsMod()

bool AFallingRock::IsMod ( )
overridevirtual

Reimplemented from AActor.

◆ Reset()

void AFallingRock::Reset ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ SetSpawnParams()

void AFallingRock::SetSpawnParams ( SpawnParams & params)
overridevirtual

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

Reimplemented from AActor.

Here is the call graph for this function:

◆ Spawn()

static AFallingRock * AFallingRock::Spawn ( FVector pos,
int16_t respawnTimer )
inlinestatic
Here is the call graph for this function:

◆ Tick()

void AFallingRock::Tick ( )
overridevirtual

Updates the falling rock actor. Actor used in Choco Mountain.

Parameters
rock

Reimplemented from AActor.

Here is the call graph for this function:

Field Documentation

◆ _count

size_t AFallingRock::_count = 0
staticprivate

◆ RespawnTimer

uint32_t AFallingRock::RespawnTimer = 0
private

◆ TimerLength

int16_t AFallingRock::TimerLength = 80

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