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

#include <TankerTruck.h>

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

Public Types

enum  SpawnMode : uint16_t { POINT , AUTO }
 

Public Member Functions

 ATankerTruck (const SpawnParams &params)
 
 ~ATankerTruck ()
 
virtual void SetSpawnParams (SpawnParams &params) override
 
virtual void Tick () override
 
virtual void Draw (Camera *camera) override
 
virtual void VehicleCollision (s32 playerId, Player *player) override
 
virtual bool IsMod () override
 
virtual void DrawEditorProperties () override
 
- Public Member Functions inherited from AActor
virtual ~AActor ()=default
 
 AActor ()
 
 AActor (SpawnParams params)
 
virtual void BeginPlay ()
 
virtual void Collision (Player *player, AActor *actor)
 
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 ATankerTruckSpawn (f32 speedA, f32 speedB, uint32_t pathIndex, uint32_t pathPoint, ATankerTruck::SpawnMode spawnMode)
 
static size_t GetCount ()
 

Data Fields

const char * Type
 
size_t Index
 
f32 Speed
 
s16 ActorIndex
 
Vec3f Position
 
Vec3f Velocity
 
Vec3s Rotation
 
f32 SomeMultiplierTheSequel
 
s8 SomeFlagsTheSequel = 0
 
u16 WaypointIndex
 
s8 SomeFlags = 0
 
s16 SomeType
 
f32 SomeArg3 = 55.0f
 
f32 SomeArg4 = 12.5f
 
u32 SoundBits = SOUND_ARG_LOAD(0x51, 0x01, 0x80, 0x03)
 
ATankerTruck::SpawnMode SpawnType = ATankerTruck::SpawnMode::AUTO
 
float SpeedB = 0.0f
 
uint32_t PathIndex = 0
 
uint32_t PathPoint = 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 Private Attributes

static size_t _count = 0
 
static std::map< uint32_t, std::vector< uint32_t > > TruckCounts
 

Member Enumeration Documentation

◆ SpawnMode

enum ATankerTruck::SpawnMode : uint16_t
Enumerator
POINT 
AUTO 

Constructor & Destructor Documentation

◆ ATankerTruck()

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

◆ ~ATankerTruck()

ATankerTruck::~ATankerTruck ( )
inline

Member Function Documentation

◆ Draw()

void ATankerTruck::Draw ( Camera * camera)
overridevirtual

Reimplemented from AActor.

Here is the call graph for this function:

◆ DrawEditorProperties()

void ATankerTruck::DrawEditorProperties ( )
overridevirtual

Reimplemented from AActor.

◆ GetCount()

static size_t ATankerTruck::GetCount ( )
inlinestatic

◆ IsMod()

bool ATankerTruck::IsMod ( )
overridevirtual

Reimplemented from AActor.

◆ SetSpawnParams()

void ATankerTruck::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.

◆ Spawn()

static ATankerTruck * ATankerTruck::Spawn ( f32 speedA,
f32 speedB,
uint32_t pathIndex,
uint32_t pathPoint,
ATankerTruck::SpawnMode spawnMode )
inlinestatic
Here is the call graph for this function:

◆ Tick()

void ATankerTruck::Tick ( )
overridevirtual

Reimplemented from AActor.

Here is the call graph for this function:

◆ VehicleCollision()

void ATankerTruck::VehicleCollision ( s32 playerId,
Player * player )
overridevirtual

Reimplemented from AActor.

Here is the call graph for this function:

Field Documentation

◆ _count

size_t ATankerTruck::_count = 0
staticprivate

◆ ActorIndex

s16 ATankerTruck::ActorIndex

◆ Index

size_t ATankerTruck::Index

◆ PathIndex

uint32_t ATankerTruck::PathIndex = 0

◆ PathPoint

uint32_t ATankerTruck::PathPoint = 0

◆ Position

Vec3f ATankerTruck::Position

◆ Rotation

Vec3s ATankerTruck::Rotation

◆ SomeArg3

f32 ATankerTruck::SomeArg3 = 55.0f

◆ SomeArg4

f32 ATankerTruck::SomeArg4 = 12.5f

◆ SomeFlags

s8 ATankerTruck::SomeFlags = 0

◆ SomeFlagsTheSequel

s8 ATankerTruck::SomeFlagsTheSequel = 0

◆ SomeMultiplierTheSequel

f32 ATankerTruck::SomeMultiplierTheSequel

◆ SomeType

s16 ATankerTruck::SomeType

◆ SoundBits

u32 ATankerTruck::SoundBits = SOUND_ARG_LOAD(0x51, 0x01, 0x80, 0x03)

◆ SpawnType

◆ Speed

f32 ATankerTruck::Speed

◆ SpeedB

float ATankerTruck::SpeedB = 0.0f

◆ TruckCounts

std::map< uint32_t, std::vector< uint32_t > > ATankerTruck::TruckCounts
staticprivate

◆ Type

const char* ATankerTruck::Type

◆ Velocity

Vec3f ATankerTruck::Velocity

◆ WaypointIndex

u16 ATankerTruck::WaypointIndex

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