mirror of
https://github.com/isledecomp/isle-portable.git
synced 2026-05-01 18:13:57 +00:00
182 lines
5.2 KiB
C++
182 lines
5.2 KiB
C++
#ifndef LEGOCARRACEACTOR_H
|
|
#define LEGOCARRACEACTOR_H
|
|
|
|
#include "legoraceactor.h"
|
|
|
|
extern const char* g_raceState;
|
|
extern const char* g_fuel;
|
|
extern const char* g_racing;
|
|
|
|
// VTABLE: LEGO1 0x100da0c0 LegoRaceActor
|
|
// VTABLE: LEGO1 0x100da0c8 LegoAnimActor
|
|
// VTABLE: LEGO1 0x100da0d8 LegoPathActor
|
|
// VTABLE: LEGO1 0x100da1a8 LegoCarRaceActor
|
|
// VTABLE: BETA10 0x101bea74 LegoRaceActor
|
|
// VTABLE: BETA10 0x101bea78 LegoAnimActor
|
|
// VTABLE: BETA10 0x101bea90 LegoPathActor
|
|
// VTABLE: BETA10 0x101beb80 LegoCarRaceActor
|
|
// SIZE 0x1a0
|
|
class LegoCarRaceActor : public virtual LegoRaceActor {
|
|
public:
|
|
LegoCarRaceActor();
|
|
|
|
// FUNCTION: LEGO1 0x10081660
|
|
// FUNCTION: BETA10 0x100aab10
|
|
const char* ClassName() const override // vtable+0x0c
|
|
{
|
|
// STRING: LEGO1 0x100f0568
|
|
return "LegoCarRaceActor";
|
|
}
|
|
|
|
// FUNCTION: LEGO1 0x10081680
|
|
// FUNCTION: BETA10 0x100aa9e0
|
|
MxBool IsA(const char* p_name) const override // vtable+0x10
|
|
{
|
|
return !strcmp(p_name, LegoCarRaceActor::ClassName()) || LegoRaceActor::IsA(p_name);
|
|
}
|
|
|
|
inline MxU32 CheckPresenterAndActorIntersections(
|
|
LegoPathBoundary* p_boundary,
|
|
Vector3& p_rayOrigin,
|
|
Vector3& p_rayDirection,
|
|
float p_rayLength,
|
|
float p_radius,
|
|
Vector3& p_intersectionPoint
|
|
) override; // vtable+0x6c
|
|
void Animate(float p_time) override; // vtable+0x70
|
|
void SwitchBoundary(
|
|
LegoPathBoundary*& p_boundary,
|
|
LegoOrientedEdge*& p_edge,
|
|
float& p_unk0xe4
|
|
) override; // vtable+0x98
|
|
MxResult CalculateSpline() override; // vtable+0x9c
|
|
|
|
// LegoCarRaceActor vtable
|
|
|
|
virtual void UpdateWorldSpeed(float p_time); // vtable+0x00
|
|
|
|
// FUNCTION: LEGO1 0x10012bb0
|
|
virtual void SetAcceleration(float p_acceleration) { m_acceleration = p_acceleration; } // vtable+0x04
|
|
|
|
// FUNCTION: LEGO1 0x10012bc0
|
|
virtual float GetAcceleration() { return m_acceleration; } // vtable+0x08
|
|
|
|
// FUNCTION: LEGO1 0x10012bd0
|
|
virtual void SetCurveSpeedFactor(float p_curveSpeedFactor)
|
|
{
|
|
m_curveSpeedFactor = p_curveSpeedFactor;
|
|
} // vtable+0x0c
|
|
|
|
// FUNCTION: LEGO1 0x10012be0
|
|
virtual float GetCurveSpeedFactor() { return m_curveSpeedFactor; } // vtable+0x10
|
|
|
|
// FUNCTION: LEGO1 0x10012bf0
|
|
virtual void SetRubberBandFactor(float p_rubberBandFactor)
|
|
{
|
|
m_rubberBandFactor = p_rubberBandFactor;
|
|
} // vtable+0x14
|
|
|
|
// FUNCTION: LEGO1 0x10012c00
|
|
virtual float GetRubberBandFactor() { return m_rubberBandFactor; } // vtable+0x18
|
|
|
|
virtual MxS32 HandleJump(LegoPathBoundary* p_boundary, LegoEdge* p_edge); // vtable+0x1c
|
|
|
|
// SYNTHETIC: LEGO1 0x10012c30
|
|
// LegoCarRaceActor::`vbase destructor'
|
|
|
|
// SYNTHETIC: LEGO1 0x10081620
|
|
// LegoCarRaceActor::`scalar deleting destructor'
|
|
|
|
// SYNTHETIC: LEGO1 0x10012d80
|
|
// LegoCarRaceActor::~LegoCarRaceActor
|
|
|
|
protected:
|
|
MxFloat m_unk0x08; // 0x08
|
|
MxU8 m_animState; // 0x0c
|
|
|
|
// A multiplier for the maximum speed when going around a curve
|
|
MxFloat m_curveSpeedFactor; // 0x10
|
|
|
|
// Could be the acceleration
|
|
MxFloat m_acceleration; // 0x14
|
|
|
|
MxFloat m_rubberBandFactor; // 0x18
|
|
|
|
// Could be the current timestamp for time-based movement
|
|
MxFloat m_lastAcceleration; // 0x1c
|
|
|
|
static MxFloat g_maxSpeed;
|
|
};
|
|
|
|
// VTABLE: LEGO1 0x100da208 LegoCarRaceActor
|
|
// VTABLE: LEGO1 0x100da228 LegoRaceActor
|
|
// VTABLE: LEGO1 0x100da230 LegoAnimActor
|
|
// VTABLE: LEGO1 0x100da240 LegoPathActor
|
|
// VTABLE: BETA10 0x101bd348 LegoCarRaceActor
|
|
// VTABLE: BETA10 0x101bd370 LegoRaceActor
|
|
// VTABLE: BETA10 0x101bd378 LegoAnimActor
|
|
// VTABLE: BETA10 0x101bd390 LegoPathActor
|
|
// SIZE 0x1a8
|
|
class LegoJetskiRaceActor : public virtual LegoCarRaceActor {
|
|
public:
|
|
LegoJetskiRaceActor();
|
|
|
|
// FUNCTION: LEGO1 0x10081d90
|
|
// FUNCTION: BETA10 0x100aa920
|
|
const char* ClassName() const override // vtable+0x0c
|
|
{
|
|
// STRING: LEGO1 0x100f0554
|
|
return "LegoJetskiRaceActor";
|
|
}
|
|
|
|
// FUNCTION: LEGO1 0x10081db0
|
|
// FUNCTION: BETA10 0x100aa960
|
|
MxBool IsA(const char* p_name) const override // vtable+0x10
|
|
{
|
|
return !strcmp(p_name, LegoJetskiRaceActor::ClassName()) || LegoCarRaceActor::IsA(p_name);
|
|
}
|
|
|
|
inline MxU32 CheckPresenterAndActorIntersections(
|
|
LegoPathBoundary* p_boundary,
|
|
Vector3& p_rayOrigin,
|
|
Vector3& p_rayDirection,
|
|
float p_rayLength,
|
|
float p_radius,
|
|
Vector3& p_intersectionPoint
|
|
) override; // vtable+0x6c
|
|
void Animate(float p_time) override; // vtable+0x70
|
|
MxS32 HandleJump(LegoPathBoundary* p_boundary, LegoEdge* p_edge) override; // vtable+0x1c
|
|
|
|
// SYNTHETIC: LEGO1 0x10013a80
|
|
// LegoJetskiRaceActor::`vbase destructor'
|
|
|
|
// SYNTHETIC: LEGO1 0x10081d50
|
|
// LegoJetskiRaceActor::`scalar deleting destructor'
|
|
|
|
// SYNTHETIC: LEGO1 0x10013ba0
|
|
// LegoJetskiRaceActor::~LegoJetskiRaceActor
|
|
};
|
|
|
|
// GLOBAL: LEGO1 0x100da0b0
|
|
// LegoCarRaceActor::`vbtable'
|
|
|
|
// GLOBAL: LEGO1 0x100da0a8
|
|
// LegoCarRaceActor::`vbtable'{for `LegoAnimActor'}
|
|
|
|
// GLOBAL: LEGO1 0x100da098
|
|
// LegoCarRaceActor::`vbtable'{for `LegoRaceActor'}
|
|
|
|
// GLOBAL: LEGO1 0x100da1f0
|
|
// LegoJetskiRaceActor::`vbtable'{for `LegoJetskiRaceActor'}
|
|
|
|
// GLOBAL: LEGO1 0x100da1e8
|
|
// LegoJetskiRaceActor::`vbtable'{for `LegoAnimActor'}
|
|
|
|
// GLOBAL: LEGO1 0x100da1d8
|
|
// LegoJetskiRaceActor::`vbtable'{for `LegoRaceActor'}
|
|
|
|
// GLOBAL: LEGO1 0x100da1c8
|
|
// LegoJetskiRaceActor::`vbtable'{for `LegoCarRaceActor'}
|
|
|
|
#endif // LEGOCARRACEACTOR_H
|