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

#include <Cloud.h>

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

Public Member Functions

 ACloud (const SpawnParams &params)
 
virtual ~ACloud () override=default
 
virtual void Tick () override
 
virtual void Draw (Camera *) override
 
virtual void BeginPlay () override
 
virtual void SetSpawnParams (SpawnParams &params) override
 
virtual void DrawEditorProperties () override
 
virtual void Collision (Player *player, AActor *actor) override
 
virtual bool IsMod () override
 
- Public Member Functions inherited from AActor
virtual ~AActor ()=default
 
 AActor ()
 
 AActor (SpawnParams params)
 
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 ACloudSpawn (FVector pos, uint16_t time, f32 hop, f32 gravity)
 

Data Fields

bool PickedUp = false
 
uint32_t TimerLength = 500
 
uint32_t Timer = 0
 
Player_player = NULL
 
f32 Hop = 3.0f
 
f32 Gravity = 200.0f
 
f32 OldHop = 0
 
f32 OldGravity = 0
 
- 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
 

Constructor & Destructor Documentation

◆ ACloud()

ACloud::ACloud ( const SpawnParams & params)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ ~ACloud()

virtual ACloud::~ACloud ( )
overridevirtualdefault

Member Function Documentation

◆ BeginPlay()

void ACloud::BeginPlay ( )
overridevirtual

Reimplemented from AActor.

Here is the call graph for this function:

◆ Collision()

void ACloud::Collision ( Player * player,
AActor * actor )
overridevirtual

Reimplemented from AActor.

Here is the call graph for this function:

◆ Draw()

void ACloud::Draw ( Camera * camera)
overridevirtual

Reimplemented from AActor.

Here is the call graph for this function:

◆ DrawEditorProperties()

void ACloud::DrawEditorProperties ( )
overridevirtual

Reimplemented from AActor.

Here is the call graph for this function:

◆ IsMod()

bool ACloud::IsMod ( )
overridevirtual

Reimplemented from AActor.

◆ SetSpawnParams()

void ACloud::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 ACloud * ACloud::Spawn ( FVector pos,
uint16_t time,
f32 hop,
f32 gravity )
inlinestatic
Here is the call graph for this function:

◆ Tick()

void ACloud::Tick ( )
overridevirtual

Reimplemented from AActor.

Field Documentation

◆ _player

Player* ACloud::_player = NULL

◆ Gravity

f32 ACloud::Gravity = 200.0f

◆ Hop

f32 ACloud::Hop = 3.0f

◆ OldGravity

f32 ACloud::OldGravity = 0

◆ OldHop

f32 ACloud::OldHop = 0

◆ PickedUp

bool ACloud::PickedUp = false

◆ Timer

uint32_t ACloud::Timer = 0

◆ TimerLength

uint32_t ACloud::TimerLength = 500

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