A reimplementation of Mario Kart Wii's physics engine in C++
Loading...
Searching...
No Matches
Kart::KartParam Class Reference

#include <KartParam.hh>

Description

Houses stats regarding a given character/vehicle combo.

Definition at line 51 of file KartParam.hh.

Classes

struct  BikeDisp
 
struct  Stats
 Various character/vehicle-related handling and speed stats. More...
 

Public Member Functions

 STATIC_ASSERT (sizeof(BikeDisp)==0xB0)
 
 STATIC_ASSERT (sizeof(Stats)==0x18c)
 
 KartParam (Character character, Vehicle vehicle, u8 playerIdx)
 

Setters

void setTireCount (u16 tireCount)
 
void setSuspCount (u16 suspCount)
 

Getters

const BSPbsp () const
 
const Statsstats () const
 
const BikeDispbikeDisp () const
 
u8 playerIdx () const
 
bool isBike () const
 
bool isVehicleRelativeBike () const
 
u16 suspCount () const
 
u16 tireCount () const
 

Private Member Functions

void initStats (Character character, Vehicle vehicle)
 
void initBikeDispParams (Vehicle vehicle)
 
void initHitboxes (Vehicle vehicle)
 

Private Attributes

Stats m_stats
 
BikeDisp m_bikeDisp
 
BSP m_bsp
 
u8 m_playerIdx
 
bool m_isBike
 
u16 m_suspCount
 
u16 m_tireCount
 

Constructor & Destructor Documentation

◆ KartParam()

Kart::KartParam::KartParam ( Character character,
Vehicle vehicle,
u8 playerIdx )

Definition at line 7 of file KartParam.cc.

Member Function Documentation

◆ bikeDisp()

const BikeDisp & Kart::KartParam::bikeDisp ( ) const
inlinenodiscard

Definition at line 146 of file KartParam.hh.

◆ bsp()

const BSP & Kart::KartParam::bsp ( ) const
inlinenodiscard

Definition at line 138 of file KartParam.hh.

◆ initBikeDispParams()

void Kart::KartParam::initBikeDispParams ( Vehicle vehicle)
private

Definition at line 30 of file KartParam.cc.

◆ initHitboxes()

void Kart::KartParam::initHitboxes ( Vehicle vehicle)
private

Definition at line 37 of file KartParam.cc.

◆ initStats()

void Kart::KartParam::initStats ( Character character,
Vehicle vehicle )
private0x80591FA4

Definition at line 20 of file KartParam.cc.

◆ isBike()

bool Kart::KartParam::isBike ( ) const
inlinenodiscard

Definition at line 154 of file KartParam.hh.

◆ isVehicleRelativeBike()

bool Kart::KartParam::isVehicleRelativeBike ( ) const
inlinenodiscard

Definition at line 158 of file KartParam.hh.

◆ playerIdx()

u8 Kart::KartParam::playerIdx ( ) const
inlinenodiscard

Definition at line 150 of file KartParam.hh.

◆ setSuspCount()

void Kart::KartParam::setSuspCount ( u16 suspCount)
inline

Definition at line 132 of file KartParam.hh.

◆ setTireCount()

void Kart::KartParam::setTireCount ( u16 tireCount)
inline

Definition at line 128 of file KartParam.hh.

◆ stats()

const Stats & Kart::KartParam::stats ( ) const
inlinenodiscard

Definition at line 142 of file KartParam.hh.

◆ suspCount()

u16 Kart::KartParam::suspCount ( ) const
inlinenodiscard

Definition at line 162 of file KartParam.hh.

◆ tireCount()

u16 Kart::KartParam::tireCount ( ) const
inlinenodiscard

Definition at line 166 of file KartParam.hh.

Member Data Documentation

◆ m_bikeDisp

BikeDisp Kart::KartParam::m_bikeDisp
private

Definition at line 177 of file KartParam.hh.

◆ m_bsp

BSP Kart::KartParam::m_bsp
private

Definition at line 178 of file KartParam.hh.

◆ m_isBike

bool Kart::KartParam::m_isBike
private

Definition at line 180 of file KartParam.hh.

◆ m_playerIdx

u8 Kart::KartParam::m_playerIdx
private

Definition at line 179 of file KartParam.hh.

◆ m_stats

Stats Kart::KartParam::m_stats
private

Definition at line 176 of file KartParam.hh.

◆ m_suspCount

u16 Kart::KartParam::m_suspCount
private

Definition at line 181 of file KartParam.hh.

◆ m_tireCount

u16 Kart::KartParam::m_tireCount
private

Definition at line 182 of file KartParam.hh.