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

#include <Boat.h>

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

Public Types

enum  SpawnMode : uint16_t { POINT , AUTO }
 

Public Member Functions

 ABoat (const SpawnParams &params)
 
 ~ABoat ()
 
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 s32 AddSmoke (size_t, Vec3f, f32)
 
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 size_t GetCount ()
 
static ABoatSpawn (f32 speed, uint32_t pathIndex, uint32_t pathPoint, ABoat::SpawnMode spawnMode)
 

Data Fields

const char * Type = "mk:paddle_boat"
 
size_t Index
 
bool IsActive
 
Vec3f Position
 
Vec3f Velocity
 
u16 WaypointIndex
 
s16 ActorIndex
 
f32 Speed
 
s16 RotY = 0
 
s32 SomeFlags
 
int32_t SmokeParticles [128]
 
int32_t NextParticlePtr = 0
 
int16_t AnotherSmokeTimer = 0
 
int16_t SmokeTimer = 0
 
ABoat::SpawnMode SpawnType = ABoat::SpawnMode::AUTO
 
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 > > BoatCounts
 

Member Enumeration Documentation

◆ SpawnMode

enum ABoat::SpawnMode : uint16_t
Enumerator
POINT 
AUTO 

Constructor & Destructor Documentation

◆ ABoat()

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

◆ ~ABoat()

ABoat::~ABoat ( )
inline

Member Function Documentation

◆ AddSmoke()

s32 ABoat::AddSmoke ( size_t ferryIndex,
Vec3f pos,
f32 velocity )
virtual
Here is the call graph for this function:
Here is the caller graph for this function:

◆ Draw()

void ABoat::Draw ( Camera * camera)
overridevirtual

Reimplemented from AActor.

◆ DrawEditorProperties()

void ABoat::DrawEditorProperties ( )
overridevirtual

Reimplemented from AActor.

◆ GetCount()

static size_t ABoat::GetCount ( )
inlinestatic

◆ IsMod()

bool ABoat::IsMod ( )
overridevirtual

Reimplemented from AActor.

◆ SetSpawnParams()

void ABoat::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 ABoat * ABoat::Spawn ( f32 speed,
uint32_t pathIndex,
uint32_t pathPoint,
ABoat::SpawnMode spawnMode )
inlinestatic
Here is the call graph for this function:

◆ Tick()

void ABoat::Tick ( )
overridevirtual

Reimplemented from AActor.

Here is the call graph for this function:

◆ VehicleCollision()

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

Reimplemented from AActor.

Here is the call graph for this function:

Field Documentation

◆ _count

size_t ABoat::_count = 0
staticprivate

◆ ActorIndex

s16 ABoat::ActorIndex

◆ AnotherSmokeTimer

int16_t ABoat::AnotherSmokeTimer = 0

◆ BoatCounts

std::map< uint32_t, std::vector< uint32_t > > ABoat::BoatCounts
staticprivate

◆ Index

size_t ABoat::Index

◆ IsActive

bool ABoat::IsActive

◆ NextParticlePtr

int32_t ABoat::NextParticlePtr = 0

◆ PathIndex

uint32_t ABoat::PathIndex = 0

◆ PathPoint

uint32_t ABoat::PathPoint = 0

◆ Position

Vec3f ABoat::Position

◆ RotY

s16 ABoat::RotY = 0

◆ SmokeParticles

int32_t ABoat::SmokeParticles[128]

◆ SmokeTimer

int16_t ABoat::SmokeTimer = 0

◆ SomeFlags

s32 ABoat::SomeFlags

◆ SpawnType

◆ Speed

f32 ABoat::Speed

◆ Type

const char* ABoat::Type = "mk:paddle_boat"

◆ Velocity

Vec3f ABoat::Velocity

◆ WaypointIndex

u16 ABoat::WaypointIndex

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