2024-07-07 08:10:46 -04:00
|
|
|
#ifndef LEGORACERS_H
|
|
|
|
#define LEGORACERS_H
|
2023-12-26 18:10:28 -05:00
|
|
|
|
2024-03-22 21:30:58 -04:00
|
|
|
#include "legoracemap.h"
|
2024-08-04 15:13:12 -04:00
|
|
|
#include "legoracespecial.h"
|
2023-12-26 18:10:28 -05:00
|
|
|
|
2024-07-18 16:20:59 -04:00
|
|
|
#define LEGORACECAR_UNKNOWN_0 0
|
|
|
|
#define LEGORACECAR_UNKNOWN_1 1
|
2024-07-17 10:03:02 -04:00
|
|
|
#define LEGORACECAR_KICK1 2 // name guessed
|
|
|
|
#define LEGORACECAR_KICK2 4 // name validated by BETA10 0x100cb659
|
|
|
|
|
2024-07-01 14:39:31 -04:00
|
|
|
// SIZE 0x08
|
|
|
|
struct EdgeReference {
|
2024-07-27 12:24:36 -04:00
|
|
|
const char* m_name; // 0x00
|
|
|
|
// name verified by BETA10 0x100cbee6
|
|
|
|
LegoPathBoundary* m_b; // 0x04
|
2024-07-01 14:39:31 -04:00
|
|
|
};
|
|
|
|
|
2024-07-17 10:03:02 -04:00
|
|
|
// SIZE 0x10
|
|
|
|
struct SkeletonKickPhase {
|
|
|
|
EdgeReference* m_edgeRef; // 0x00
|
|
|
|
float m_lower; // 0x04
|
|
|
|
float m_upper; // 0x08
|
|
|
|
MxU8 m_userState; // 0x0c
|
|
|
|
};
|
|
|
|
|
2024-06-10 13:04:40 -04:00
|
|
|
// VTABLE: LEGO1 0x100d58a0 LegoRaceActor
|
|
|
|
// VTABLE: LEGO1 0x100d58a8 LegoAnimActor
|
|
|
|
// VTABLE: LEGO1 0x100d58b8 LegoPathActor
|
|
|
|
// VTABLE: LEGO1 0x100d5984 LegoRaceMap
|
|
|
|
// VTABLE: LEGO1 0x100d5988 LegoCarRaceActor
|
2024-07-07 08:10:46 -04:00
|
|
|
// VTABLE: BETA10 0x101be6ec LegoRaceActor
|
|
|
|
// VTABLE: BETA10 0x101be6f0 LegoAnimActor
|
|
|
|
// VTABLE: BETA10 0x101be708 LegoPathActor
|
|
|
|
// VTABLE: BETA10 0x101be7f8 LegoRaceMap
|
|
|
|
// VTABLE: BETA10 0x101be800 LegoCarRaceActor
|
2023-12-28 11:56:54 -05:00
|
|
|
// SIZE 0x200
|
2024-03-22 21:30:58 -04:00
|
|
|
class LegoRaceCar : public LegoCarRaceActor, public LegoRaceMap {
|
2023-12-26 18:10:28 -05:00
|
|
|
public:
|
2024-03-22 21:30:58 -04:00
|
|
|
LegoRaceCar();
|
2024-06-10 13:04:40 -04:00
|
|
|
~LegoRaceCar() override;
|
|
|
|
|
2024-02-01 15:42:10 -05:00
|
|
|
MxLong Notify(MxParam& p_param) override; // vtable+0x04
|
2024-01-20 18:04:46 -05:00
|
|
|
|
2024-06-10 13:04:40 -04:00
|
|
|
// FUNCTION: LEGO1 0x100142a0
|
2024-11-19 10:20:27 -05:00
|
|
|
// FUNCTION: BETA10 0x100cd500
|
2024-07-04 19:06:32 -04:00
|
|
|
const char* ClassName() const override // vtable+0x0c
|
2023-12-26 18:10:28 -05:00
|
|
|
{
|
2023-12-27 15:59:42 -05:00
|
|
|
// STRING: LEGO1 0x100f0548
|
2023-12-26 18:10:28 -05:00
|
|
|
return "LegoRaceCar";
|
|
|
|
}
|
|
|
|
|
2024-06-10 13:04:40 -04:00
|
|
|
// FUNCTION: LEGO1 0x100142c0
|
2024-07-04 19:06:32 -04:00
|
|
|
MxBool IsA(const char* p_name) const override // vtable+0x10
|
2023-12-26 18:10:28 -05:00
|
|
|
{
|
2024-06-10 13:04:40 -04:00
|
|
|
return !strcmp(p_name, LegoRaceCar::ClassName()) || LegoCarRaceActor::IsA(p_name);
|
2023-12-26 18:10:28 -05:00
|
|
|
}
|
2024-01-18 08:34:14 -05:00
|
|
|
|
2024-07-17 10:03:02 -04:00
|
|
|
void ParseAction(char* p_extra) override; // vtable+0x20
|
2024-04-17 06:34:21 -04:00
|
|
|
void SetWorldSpeed(MxFloat p_worldSpeed) override; // vtable+0x30
|
|
|
|
MxU32 VTable0x6c(
|
|
|
|
LegoPathBoundary* p_boundary,
|
|
|
|
Vector3& p_v1,
|
|
|
|
Vector3& p_v2,
|
|
|
|
float p_f1,
|
|
|
|
float p_f2,
|
|
|
|
Vector3& p_v3
|
|
|
|
) override; // vtable+0x6c
|
2024-03-30 12:18:15 -04:00
|
|
|
void VTable0x70(float p_float) override; // vtable+0x70
|
|
|
|
MxResult VTable0x94(LegoPathActor* p_actor, MxBool p_bool) override; // vtable+0x94
|
2024-05-20 14:27:00 -04:00
|
|
|
void SwitchBoundary(LegoPathBoundary*& p_boundary, LegoUnknown100db7f4*& p_edge, float& p_unk0xe4)
|
2024-05-20 12:27:54 -04:00
|
|
|
override; // vtable+0x98
|
|
|
|
MxResult VTable0x9c() override; // vtable+0x9c
|
2024-01-20 18:04:46 -05:00
|
|
|
|
2024-07-01 14:39:31 -04:00
|
|
|
virtual void SetMaxLinearVelocity(float p_maxLinearVelocity);
|
2024-07-17 10:03:02 -04:00
|
|
|
virtual void FUN_10012ff0(float p_param);
|
|
|
|
virtual MxU32 HandleSkeletonKicks(float p_param1);
|
2024-03-22 21:30:58 -04:00
|
|
|
|
2024-11-14 15:42:38 -05:00
|
|
|
static void FUN_10012de0();
|
2024-11-23 14:33:15 -05:00
|
|
|
static void FUN_10012e00();
|
2024-11-14 15:42:38 -05:00
|
|
|
static void FUN_10013670();
|
|
|
|
|
2024-06-10 13:04:40 -04:00
|
|
|
// SYNTHETIC: LEGO1 0x10014240
|
2024-01-18 08:34:14 -05:00
|
|
|
// LegoRaceCar::`scalar deleting destructor'
|
2024-03-22 21:30:58 -04:00
|
|
|
|
|
|
|
private:
|
2024-07-27 12:24:36 -04:00
|
|
|
undefined m_userState; // 0x54
|
|
|
|
float m_unk0x58; // 0x58
|
|
|
|
Mx3DPointFloat m_unk0x5c; // 0x5c
|
|
|
|
|
|
|
|
// Names verified by BETA10 0x100cb4a9
|
|
|
|
LegoAnimActorStruct* m_skelKick1Anim; // 0x70
|
|
|
|
LegoAnimActorStruct* m_skelKick2Anim; // 0x74
|
|
|
|
|
|
|
|
// Name verified by BETA10 0x100cb4f0
|
|
|
|
LegoPathBoundary* m_kick1B; // 0x78
|
|
|
|
|
|
|
|
// Name verified by BETA10 0x100cb537
|
|
|
|
LegoPathBoundary* m_kick2B; // 0x7c
|
|
|
|
|
|
|
|
// name verified by BETA10 0x100cbee6
|
|
|
|
static EdgeReference g_skBMap[];
|
|
|
|
|
2024-07-18 16:20:59 -04:00
|
|
|
static const SkeletonKickPhase g_skeletonKickPhases[];
|
2024-07-26 13:53:09 -04:00
|
|
|
static const char* g_strSpeed;
|
|
|
|
static const char* g_srtsl18to29[];
|
|
|
|
static const char* g_srtsl6to10[];
|
|
|
|
static const char* g_emptySoundKeyList[];
|
|
|
|
static const char* g_srtrh[];
|
2024-07-18 16:20:59 -04:00
|
|
|
static const char* g_srt001ra;
|
2024-07-17 10:03:02 -04:00
|
|
|
static const char* g_soundSkel3;
|
2024-07-26 13:53:09 -04:00
|
|
|
static MxU32 g_srtsl18to29Index;
|
|
|
|
static MxU32 g_srtsl6to10Index;
|
|
|
|
static MxU32 g_emptySoundKeyListIndex;
|
|
|
|
static MxU32 g_srtrhIndex;
|
2024-11-14 15:42:38 -05:00
|
|
|
static Mx3DPointFloat g_unk0x10102af0;
|
2024-07-26 13:53:09 -04:00
|
|
|
static MxLong g_timeLastSoundPlayed;
|
2024-07-18 16:20:59 -04:00
|
|
|
static MxS32 g_unk0x100f0b88;
|
|
|
|
static MxBool g_unk0x100f0b8c;
|
2024-11-15 16:51:46 -05:00
|
|
|
static undefined4 g_unk0x100f0bac;
|
|
|
|
static undefined4 g_unk0x100f0bb0;
|
2023-12-26 18:10:28 -05:00
|
|
|
};
|
|
|
|
|
2024-07-07 08:10:46 -04:00
|
|
|
#endif // LEGORACERS_H
|
2024-08-21 13:42:49 -04:00
|
|
|
|
|
|
|
// GLOBAL: LEGO1 0x100d5890
|
|
|
|
// LegoRaceCar::`vbtable'{for `LegoCarRaceActor'}
|
|
|
|
|
|
|
|
// GLOBAL: LEGO1 0x100d5880
|
|
|
|
// LegoRaceCar::`vbtable'{for `LegoRaceMap'}
|
|
|
|
|
|
|
|
// GLOBAL: LEGO1 0x100d5878
|
|
|
|
// LegoRaceCar::`vbtable'{for `LegoAnimActor'}
|
|
|
|
|
|
|
|
// GLOBAL: LEGO1 0x100d5868
|
|
|
|
// LegoRaceCar::`vbtable'{for `LegoRaceActor'}
|