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

#include <BombKart.h>

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

Public Types

enum  States : uint16_t {
  DISABLED , COUNTERCLOCKWISE , CLOCKWISE , STATIONARY ,
  CHASE , EXPLODE , PODIUM_CEREMONY
}
 

Public Member Functions

 OBombKart (const SpawnParams &params)
 
 ~OBombKart ()
 
virtual void Tick () override
 
virtual void Draw (s32 cameraId) override
 
virtual void Translate (FVector pos) override
 
virtual void DrawEditorProperties () override
 
void DrawBattle (s32 cameraId)
 
void func_800563DC (s32 cameraId, s32 arg2)
 
void func_800562E4 (s32 cameraId, s32 arg0, s32 arg1, s32 arg2, s32 id)
 
void SomeRender (s32 cameraId, Vec3f arg1)
 
void LoadMtx (s32 cameraId)
 
void Waypoint (s32 screenId)
 
- Public Member Functions inherited from OObject
virtual ~OObject ()=default
 
 OObject ()
 
 OObject (SpawnParams params)
 
virtual void SetSpawnParams (SpawnParams &params)
 
virtual void Tick60fps ()
 
virtual void Expire ()
 
virtual void Destroy ()
 
virtual void Reset ()
 
FVector GetLocation () const
 
IRotator GetRotation () const
 
FVector GetScale () const
 
void Rotate (IRotator rot)
 
void SetScale (FVector scale)
 

Static Public Member Functions

static OBombKartSpawn (FVector pos, uint16_t behaviour, f32 unk_3C)
 
static OBombKartSpawn (uint32_t pathIndex, uint32_t pathPoint, uint16_t behaviour, f32 unk_3C)
 
static size_t GetCount ()
 

Data Fields

const char * Type
 
Vec3f Pos
 
Vec3f WheelPos [4]
 
f32 Unk_3C
 
u16 SomeRot
 
u16 WaypointIndex
 
States State = States::DISABLED
 
u16 BounceTimer = 0
 
u16 CircleTimer = 0
 
u16 Unk_4A = 0
 
s16 Unk_4C = 1
 
f32 CenterY
 
Collision _Collision
 
OBombKart::States Behaviour = OBombKart::States::COUNTERCLOCKWISE
 
float SpeedB = 2.7f
 
- Data Fields inherited from OObject
uint8_t uuid [16]
 
Object o
 
const char * Name = ""
 
const char * ResourceName = ""
 
bool bPendingDestroy = false
 
s32 _objectIndex = -1
 
const char * Model = ""
 
FVector SpawnPos = {0.0f, 0.0f, 0.0f}
 
IRotator SpawnRot = {0, 0, 0}
 
FVector SpawnScale = {1.0f, 1.0f, 1.0f}
 
float Speed = 0.0f
 
std::vector< TriangleTriangles
 

Private Member Functions

PlayerFindTarget ()
 
void Chase (Player *, Vec3f pos)
 

Private Attributes

s32 _idx
 
Player_target = NULL
 

Static Private Attributes

static u32 vec [3][3]
 
static size_t _count = 0
 

Detailed Description

Used in VS mode

This differs from the other vehicle classes in that it does not get added to the standard actor list So this is sort of its own thing. Draw call in different place too.

Member Enumeration Documentation

◆ States

enum OBombKart::States : uint16_t
Enumerator
DISABLED 
COUNTERCLOCKWISE 
CLOCKWISE 
STATIONARY 
CHASE 
EXPLODE 
PODIUM_CEREMONY 

Constructor & Destructor Documentation

◆ OBombKart()

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

◆ ~OBombKart()

OBombKart::~OBombKart ( )
inline

Member Function Documentation

◆ Chase()

void OBombKart::Chase ( Player * player,
Vec3f pos )
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ Draw()

void OBombKart::Draw ( s32 cameraId)
overridevirtual

Reimplemented from OObject.

Here is the call graph for this function:

◆ DrawBattle()

void OBombKart::DrawBattle ( s32 cameraId)

◆ DrawEditorProperties()

void OBombKart::DrawEditorProperties ( )
overridevirtual

Reimplemented from OObject.

Here is the call graph for this function:

◆ FindTarget()

Player * OBombKart::FindTarget ( )
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ func_800562E4()

void OBombKart::func_800562E4 ( s32 cameraId,
s32 arg0,
s32 arg1,
s32 arg2,
s32 id )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ func_800563DC()

void OBombKart::func_800563DC ( s32 cameraId,
s32 arg2 )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetCount()

static size_t OBombKart::GetCount ( )
inlinestatic

◆ LoadMtx()

void OBombKart::LoadMtx ( s32 cameraId)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ SomeRender()

void OBombKart::SomeRender ( s32 cameraId,
Vec3f arg1 )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ Spawn() [1/2]

static OBombKart * OBombKart::Spawn ( FVector pos,
uint16_t behaviour,
f32 unk_3C )
inlinestatic
Here is the call graph for this function:

◆ Spawn() [2/2]

static OBombKart * OBombKart::Spawn ( uint32_t pathIndex,
uint32_t pathPoint,
uint16_t behaviour,
f32 unk_3C )
inlinestatic
Here is the call graph for this function:

◆ Tick()

void OBombKart::Tick ( void )
overridevirtual

Reimplemented from OObject.

Here is the call graph for this function:

◆ Translate()

void OBombKart::Translate ( FVector pos)
overridevirtual

Reimplemented from OObject.

Here is the caller graph for this function:

◆ Waypoint()

void OBombKart::Waypoint ( s32 screenId)

Field Documentation

◆ _Collision

Collision OBombKart::_Collision

◆ _count

size_t OBombKart::_count = 0
staticprivate

◆ _idx

s32 OBombKart::_idx
private

◆ _target

Player* OBombKart::_target = NULL
private

◆ Behaviour

◆ BounceTimer

u16 OBombKart::BounceTimer = 0

◆ CenterY

f32 OBombKart::CenterY

◆ CircleTimer

u16 OBombKart::CircleTimer = 0

◆ Pos

Vec3f OBombKart::Pos

◆ SomeRot

u16 OBombKart::SomeRot

◆ SpeedB

float OBombKart::SpeedB = 2.7f

◆ State

States OBombKart::State = States::DISABLED

◆ Type

const char* OBombKart::Type

◆ Unk_3C

f32 OBombKart::Unk_3C
Todo
Turn WheelPos into a struct

◆ Unk_4A

u16 OBombKart::Unk_4A = 0

◆ Unk_4C

s16 OBombKart::Unk_4C = 1

◆ vec

u32 OBombKart::vec
staticprivate
Initial value:
= {
{ 255, 255, 255 },
{ 255, 255, 0 },
{ 255, 0, 0 },
}

◆ WaypointIndex

u16 OBombKart::WaypointIndex

◆ WheelPos

Vec3f OBombKart::WheelPos[4]

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