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

#include <Finishline.h>

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

Public Member Functions

 AFinishline (const SpawnParams &params)
 
 ~AFinishline ()
 
virtual void Tick () override
 
virtual void Draw (Camera *) override
 
virtual void BeginPlay () 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 SetSpawnParams (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)
 
virtual void DrawEditorProperties ()
 

Static Public Member Functions

static AFinishlineSpawn (FVector pos, IRotator rot)
 
static AFinishlineSpawn ()
 

Data Fields

bool bIsFinishline = false
 
bool PickedUp = false
 
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
 

Static Public Attributes

static size_t _count = 0
 

Constructor & Destructor Documentation

◆ AFinishline()

AFinishline::AFinishline ( const SpawnParams & params)

Default behaviour places the finishline at the first waypoint.

  • pos, optional. Sets a custom position
Here is the call graph for this function:
Here is the caller graph for this function:

◆ ~AFinishline()

AFinishline::~AFinishline ( )
inline

Member Function Documentation

◆ BeginPlay()

void AFinishline::BeginPlay ( )
overridevirtual

Reimplemented from AActor.

Here is the call graph for this function:

◆ Collision()

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

Reimplemented from AActor.

Here is the call graph for this function:

◆ Draw()

void AFinishline::Draw ( Camera * camera)
overridevirtual

Reimplemented from AActor.

Here is the call graph for this function:

◆ IsMod()

bool AFinishline::IsMod ( )
overridevirtual

Reimplemented from AActor.

◆ Spawn() [1/2]

static AFinishline * AFinishline::Spawn ( )
inlinestatic
Here is the call graph for this function:

◆ Spawn() [2/2]

static AFinishline * AFinishline::Spawn ( FVector pos,
IRotator rot )
inlinestatic
Here is the call graph for this function:

◆ Tick()

void AFinishline::Tick ( )
overridevirtual

Reimplemented from AActor.

Field Documentation

◆ _count

size_t AFinishline::_count = 0
static

◆ _player

Player* AFinishline::_player = NULL

◆ bIsFinishline

bool AFinishline::bIsFinishline = false

◆ Gravity

f32 AFinishline::Gravity = 200.0f

◆ Hop

f32 AFinishline::Hop = 3.0f

◆ OldGravity

f32 AFinishline::OldGravity = 0

◆ OldHop

f32 AFinishline::OldHop = 0

◆ PickedUp

bool AFinishline::PickedUp = false

◆ Timer

uint32_t AFinishline::Timer = 0

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