Fix size annotations for legoomni

Fix structure and add placeholder annotations for LegoAnimActor and subclasses
This commit is contained in:
Nathan 2024-03-22 11:09:26 -04:00
parent 96f7219811
commit a45706a854
42 changed files with 460 additions and 37 deletions

View file

@ -282,6 +282,8 @@ add_library(lego1 SHARED
LEGO1/lego/legoomni/src/act2/legoact2state.cpp LEGO1/lego/legoomni/src/act2/legoact2state.cpp
LEGO1/lego/legoomni/src/act3/act3shark.cpp LEGO1/lego/legoomni/src/act3/act3shark.cpp
LEGO1/lego/legoomni/src/act3/act3state.cpp LEGO1/lego/legoomni/src/act3/act3state.cpp
LEGO1/lego/legoomni/src/actors/act2actor.cpp
LEGO1/lego/legoomni/src/actors/act3actor.cpp
LEGO1/lego/legoomni/src/actors/ambulance.cpp LEGO1/lego/legoomni/src/actors/ambulance.cpp
LEGO1/lego/legoomni/src/actors/bike.cpp LEGO1/lego/legoomni/src/actors/bike.cpp
LEGO1/lego/legoomni/src/actors/bumpbouy.cpp LEGO1/lego/legoomni/src/actors/bumpbouy.cpp
@ -373,7 +375,9 @@ add_library(lego1 SHARED
LEGO1/lego/legoomni/src/race/legorace.cpp LEGO1/lego/legoomni/src/race/legorace.cpp
LEGO1/lego/legoomni/src/race/legoraceactor.cpp LEGO1/lego/legoomni/src/race/legoraceactor.cpp
LEGO1/lego/legoomni/src/race/legoracecar.cpp LEGO1/lego/legoomni/src/race/legoracecar.cpp
LEGO1/lego/legoomni/src/race/legoracemap.cpp
LEGO1/lego/legoomni/src/race/racestandsentity.cpp LEGO1/lego/legoomni/src/race/racestandsentity.cpp
LEGO1/lego/legoomni/src/race/raceskel.cpp
LEGO1/lego/legoomni/src/race/racestate.cpp LEGO1/lego/legoomni/src/race/racestate.cpp
LEGO1/lego/legoomni/src/towtrack/towtrackmissionstate.cpp LEGO1/lego/legoomni/src/towtrack/towtrackmissionstate.cpp
LEGO1/lego/legoomni/src/unknown/legounknown100d7c88.cpp LEGO1/lego/legoomni/src/unknown/legounknown100d7c88.cpp

View file

@ -0,0 +1,16 @@
#include "legoanimactor.h"
/*
VTABLE: LEGO1 0x100d6078 LegoPathActor
VTABLE: LEGO1 0x100d6148 LegoAnimActor
*/
// SIZE 0x1a8
class Act2Actor : public LegoAnimActor {
Act2Actor();
// SYNTHETIC: LEGO1 0x1001a090
// Act2Actor::`scalar deleting destructor'
private:
undefined m_unk0x1c[0x34]; // 0x1c
};

View file

@ -1,13 +1,18 @@
#ifndef ACT3ACTOR_H #ifndef ACT3ACTOR_H
#define ACT3ACTOR_H #define ACT3ACTOR_H
#include "mxcore.h" #include "legoanimactor.h"
// FIXME: Uncertain location. There are three vtables which eventually call this /*
// class' ClassName() function, but none of them call it directly. VTABLE : LEGO1 0x100d7668 LegoPathActor
class Act3Actor : public MxCore { VTABLE : LEGO1 0x100d7738 LegoAnimActor
*/
// SIZE 0x178
class Act3Actor : public LegoAnimActor {
public: public:
// FUNCTION: LEGO1 0x100431b0 Act3Actor();
// FUNCTION: LEGO1 0x100433b0
inline const char* ClassName() const override inline const char* ClassName() const override
{ {
// STRING: LEGO1 0x100f03ac // STRING: LEGO1 0x100f03ac

View file

@ -3,9 +3,15 @@
#include "legoanimactor.h" #include "legoanimactor.h"
// VTABLE: LEGO1 0x100d7920 /*
VTABLE : LEGO1 0x100d7920 LegoPathActor
VTABLE : LEGO1 0x100d79f0 LegoAnimActor
*/
// SIZE 0x1a8
class Act3Shark : public LegoAnimActor { class Act3Shark : public LegoAnimActor {
public: public:
Act3Shark();
// FUNCTION: LEGO1 0x100430c0 // FUNCTION: LEGO1 0x100430c0
inline const char* ClassName() const override // vtable+0x0c inline const char* ClassName() const override // vtable+0x0c
{ {
@ -24,6 +30,8 @@ class Act3Shark : public LegoAnimActor {
void VTable0x70(float p_float) override; // vtable+0x70 void VTable0x70(float p_float) override; // vtable+0x70
void VTable0x74(Matrix4& p_transform) override; // vtable+0x74 void VTable0x74(Matrix4& p_transform) override; // vtable+0x74
virtual MxResult FUN_10042ce0(void*);
// SYNTHETIC: LEGO1 0x10043020 // SYNTHETIC: LEGO1 0x10043020
// Act3Shark::`scalar deleting destructor' // Act3Shark::`scalar deleting destructor'
}; };

View file

@ -4,7 +4,7 @@
#include "legoentity.h" #include "legoentity.h"
// VTABLE: LEGO1 0x100d5c88 // VTABLE: LEGO1 0x100d5c88
// SIZE <= 0x68, hard to tell because it's always constructed as a derivative // SIZE 0x68
class BuildingEntity : public LegoEntity { class BuildingEntity : public LegoEntity {
public: public:
BuildingEntity(); BuildingEntity();

View file

@ -4,9 +4,14 @@
#include "legoanimactor.h" #include "legoanimactor.h"
#include "mxtypes.h" #include "mxtypes.h"
// VTABLE: LEGO1 0x100d6790 /*
VTABLE : LEGO1 0x100d6790 LegoPathActor
VTABLE : LEGO1 0x100d6860 LegoAnimActor
*/
// SIZE 0x174
class BumpBouy : public LegoAnimActor { class BumpBouy : public LegoAnimActor {
public: public:
BumpBouy();
MxLong Notify(MxParam& p_param) override; // vtable+0x04 MxLong Notify(MxParam& p_param) override; // vtable+0x04
// FUNCTION: LEGO1 0x100274e0 // FUNCTION: LEGO1 0x100274e0

View file

@ -8,7 +8,7 @@
class LegoControlManagerEvent; class LegoControlManagerEvent;
// VTABLE: LEGO1 0x100d5f20 // VTABLE: LEGO1 0x100d5f20
// SIZE: 0xfc (from inlined ctor at 0x1000a8aa) // SIZE 0xfc
class ElevatorBottom : public LegoWorld { class ElevatorBottom : public LegoWorld {
public: public:
ElevatorBottom(); ElevatorBottom();

View file

@ -4,6 +4,7 @@
#include "legoactor.h" #include "legoactor.h"
// VTABLE: LEGO1 0x100d5178 // VTABLE: LEGO1 0x100d5178
// SIZE 0x78
class IsleActor : public LegoActor { class IsleActor : public LegoActor {
public: public:
MxLong Notify(MxParam& p_param) override; // vtable+0x04 MxLong Notify(MxParam& p_param) override; // vtable+0x04

View file

@ -48,7 +48,7 @@ class LegoActor : public LegoEntity {
static const char* GetActorName(MxU8 p_id); static const char* GetActorName(MxU8 p_id);
private: protected:
MxFloat m_unk0x68; // 0x68 MxFloat m_unk0x68; // 0x68
LegoCacheSound* m_sound; // 0x6c LegoCacheSound* m_sound; // 0x6c
MxFloat m_unk0x70; // 0x70 MxFloat m_unk0x70; // 0x70

View file

@ -4,10 +4,39 @@
#include "decomp.h" #include "decomp.h"
#include "legopathactor.h" #include "legopathactor.h"
class LegoAnimActor : public LegoPathActor { /*
VTABLE: LEGO1 0x100d5440 LegoPathActor
VTABLE: LEGO1 0x100d5510 LegoAnimActor
*/
// SIZE 0x174
class LegoAnimActor : public virtual LegoPathActor {
public: public:
LegoAnimActor() {} LegoAnimActor() { m_index = -1; }
LegoAnimActor(undefined4);
// FUNCTION: LEGO1 0x1000fb90
inline const char* ClassName() const override // vtable+0x0c
{
// STRING: LEGO1 0x100f057c
return "LegoAnimActor";
}
// FUNCTION: LEGO1 0x1000fbb0
inline MxBool IsA(const char* p_name) const override // vtable+0x10
{
return !strcmp(p_name, LegoAnimActor::ClassName()) || LegoPathActor::IsA(p_name);
}
virtual MxResult FUN_1001c1f0(float& p_out);
virtual MxResult FUN_1001c360(float, undefined4);
virtual MxResult FUN_1001c450(undefined4, undefined4, undefined4, undefined4);
virtual void FUN_1001c800();
// SYNTHETIC: LEGO1 0x1000fb50
// LegoAnimActor::`scalar deleting destructor'
private:
vector<void*> m_vector; // 0x00
MxU16 m_index; // 0x14
}; };
#endif // LEGOANIMACTOR_H #endif // LEGOANIMACTOR_H

View file

@ -3,9 +3,16 @@
#include "legoraceactor.h" #include "legoraceactor.h"
// VTABLE: LEGO1 0x100da0d8 /*
class LegoCarRaceActor : public LegoRaceActor { VTABLE: LEGO1 0x100da0c0 LegoRaceActor
VTABLE: LEGO1 0x100da0c8 LegoAnimActor
VTABLE: LEGO1 0x100da0d8 LegoPathActor
VTABLE: LEGO1 0x100da1a8 LegoCarRaceActor
*/
// SIZE 0x1a0
class LegoCarRaceActor : public virtual LegoRaceActor {
public: public:
LegoCarRaceActor();
// FUNCTION: LEGO1 0x10081650 // FUNCTION: LEGO1 0x10081650
inline const char* ClassName() const override // vtable+0x0c inline const char* ClassName() const override // vtable+0x0c
{ {
@ -27,8 +34,31 @@ class LegoCarRaceActor : public LegoRaceActor {
void VTable0x98() override; // vtable+0x98 void VTable0x98() override; // vtable+0x98
void VTable0x9c() override; // vtable+0x9c void VTable0x9c() override; // vtable+0x9c
virtual void FUN_10080590();
// FUNCTION: LEGO1 0x10012bb0
virtual void FUN_10012bb0(float p_unk0x14) { m_unk0x14 = p_unk0x14; }
// FUNCTION: LEGO1 0x10012bc0
virtual float FUN_10012bc0() { return m_unk0x14; }
// FUNCTION: LEGO1 0x10012bd0
virtual void FUN_10012bd0(float p_unk0x10) { m_unk0x10 = p_unk0x10; }
// FUNCTION: LEGO1 0x10012be0
virtual float FUN_10012be0() { return m_unk0x10; }
// FUNCTION: LEGO1 0x10012bf0
virtual void FUN_10012bf0(float p_unk0x18) { m_unk0x18 = p_unk0x18; }
// FUNCTION: LEGO1 0x10012c00
virtual float FUN_10012c00() { return m_unk0x18; }
virtual void FUN_10080740();
// SYNTHETIC: LEGO1 0x10081610 // SYNTHETIC: LEGO1 0x10081610
// LegoCarRaceActor::`scalar deleting destructor' // LegoCarRaceActor::`scalar deleting destructor'
protected:
float m_unk0x08; // 0x08
MxU8 m_unk0x0c; // 0x0c
float m_unk0x10; // 0x10
float m_unk0x14; // 0x14
float m_unk0x18; // 0x18
undefined4 m_unk0x1c; // 0x1c
}; };
#endif // LEGOCARRACEACTOR_H #endif // LEGOCARRACEACTOR_H

View file

@ -3,9 +3,16 @@
#include "legoanimactor.h" #include "legoanimactor.h"
// VTABLE: LEGO1 0x100d6c10 /*
class LegoExtraActor : public LegoAnimActor { VTABLE : LEGO1 0x100d6c00 LegoAnimActor
VTABLE : LEGO1 0x100d6c10 LegoPathActor
VTABLE : LEGO1 0x100d6cdc LegoExtraActor
*/
// SIZE 0x1dc
class LegoExtraActor : public virtual LegoAnimActor {
public: public:
LegoExtraActor();
// FUNCTION: LEGO1 0x1002b7a0 // FUNCTION: LEGO1 0x1002b7a0
inline const char* ClassName() const override // vtable+0x0c inline const char* ClassName() const override // vtable+0x0c
{ {
@ -18,6 +25,19 @@ class LegoExtraActor : public LegoAnimActor {
{ {
return !strcmp(p_name, LegoExtraActor::ClassName()) || LegoAnimActor::IsA(p_name); return !strcmp(p_name, LegoExtraActor::ClassName()) || LegoAnimActor::IsA(p_name);
} }
virtual MxResult FUN_1002aae0();
private:
undefined4 m_unk0x08; // 0x08
undefined m_unk0x0c; // 0x0c
undefined m_unk0x0d; // 0x0d
undefined m_unk0x0e; // 0x0e
undefined4 m_unk0x10; // 0x10
undefined m_unk0x14; // 0x14
MxMatrix m_unk0x18; // 0x18
undefined4 m_unk0x60; // 0x60
undefined4 m_unk0x64; // 0x64
}; };
#endif // LEGOEXTRAACTOR_H #endif // LEGOEXTRAACTOR_H

View file

@ -13,6 +13,7 @@ class LegoState;
class MxVariable; class MxVariable;
class MxString; class MxString;
// SIZE 0x08
struct ColorStringStruct { struct ColorStringStruct {
const char* m_targetName; const char* m_targetName;
const char* m_colorName; const char* m_colorName;

View file

@ -2,10 +2,19 @@
#define LEGOJETSKI_H #define LEGOJETSKI_H
#include "legojetskiraceactor.h" #include "legojetskiraceactor.h"
#include "legoracemap.h"
// VTABLE: LEGO1 0x100d5a40 /*
class LegoJetski : public LegoJetskiRaceActor { VTABLE: LEGO1 0x100d5a08 LegoJetskiRaceActor
VTABLE: LEGO1 0x100d5a28 LegoRaceActor
VTABLE: LEGO1 0x100d5a30 LegoAnimActor
VTABLE: LEGO1 0x100d5a40 LegoPathActor
VTABLE: LEGO1 0x100d5b10 LegoRaceMap
*/
// SIZE 0x1dc
class LegoJetski : public LegoJetskiRaceActor, public LegoRaceMap {
public: public:
LegoJetski();
MxLong Notify(MxParam& p_param) override; // vtable+0x04 MxLong Notify(MxParam& p_param) override; // vtable+0x04
// FUNCTION: LEGO1 0x10013e80 // FUNCTION: LEGO1 0x10013e80
@ -29,6 +38,8 @@ class LegoJetski : public LegoJetskiRaceActor {
void VTable0x98() override; // vtable+0x98 void VTable0x98() override; // vtable+0x98
void VTable0x9c() override; // vtable+0x9c void VTable0x9c() override; // vtable+0x9c
virtual void FUN_100136f0(float p_worldSpeed);
// SYNTHETIC: LEGO1 0x10013e20 // SYNTHETIC: LEGO1 0x10013e20
// LegoJetski::`scalar deleting destructor' // LegoJetski::`scalar deleting destructor'
}; };

View file

@ -3,9 +3,16 @@
#include "legocarraceactor.h" #include "legocarraceactor.h"
// VTABLE: LEGO1 0x100da240 /*
class LegoJetskiRaceActor : public LegoCarRaceActor { VTABLE: LEGO1 0x100da208 LegoCarRaceActor
VTABLE: LEGO1 0x100da228 LegoRaceActor
VTABLE: LEGO1 0x100da230 LegoAnimActor
VTABLE: LEGO1 0x100da240 LegoPathActor
*/
// SIZE 0x1a8
class LegoJetskiRaceActor : public virtual LegoCarRaceActor {
public: public:
LegoJetskiRaceActor();
// FUNCTION: LEGO1 0x10081d80 // FUNCTION: LEGO1 0x10081d80
inline const char* ClassName() const override // vtable+0x0c inline const char* ClassName() const override // vtable+0x0c
{ {

View file

@ -4,7 +4,7 @@
#include "legoanimpresenter.h" #include "legoanimpresenter.h"
// VTABLE: LEGO1 0x100d4900 // VTABLE: LEGO1 0x100d4900
// SIZE 0xc0 (discovered through inlined constructor at 0x10009ecd) // SIZE 0xc0
class LegoLoopingAnimPresenter : public LegoAnimPresenter { class LegoLoopingAnimPresenter : public LegoAnimPresenter {
public: public:
// FUNCTION: LEGO1 0x1000c9a0 // FUNCTION: LEGO1 0x1000c9a0

View file

@ -4,7 +4,7 @@
#include "mxstillpresenter.h" #include "mxstillpresenter.h"
// VTABLE: LEGO1 0x100d7ac8 // VTABLE: LEGO1 0x100d7ac8
// SIZE 0x94 (from 0x1000a163) // SIZE 0x94
class LegoMeterPresenter : public MxStillPresenter { class LegoMeterPresenter : public MxStillPresenter {
public: public:
LegoMeterPresenter(); LegoMeterPresenter();

View file

@ -9,7 +9,7 @@ class LegoEntity;
class MxDSChunk; class MxDSChunk;
// VTABLE: LEGO1 0x100d4e50 // VTABLE: LEGO1 0x100d4e50
// SIZE 0x6c (discovered through inline constructor at 0x10009ae6) // SIZE 0x6c
class LegoModelPresenter : public MxVideoPresenter { class LegoModelPresenter : public MxVideoPresenter {
public: public:
LegoModelPresenter() { Reset(); } LegoModelPresenter() { Reset(); }

View file

@ -102,6 +102,7 @@
X(AnimState) X(AnimState)
// VTABLE: LEGO1 0x100d4768 // VTABLE: LEGO1 0x100d4768
// SIZE 0x1c8
class LegoObjectFactory : public MxObjectFactory { class LegoObjectFactory : public MxObjectFactory {
public: public:
LegoObjectFactory(); LegoObjectFactory();

View file

@ -5,7 +5,7 @@
#include "mxmediapresenter.h" #include "mxmediapresenter.h"
// VTABLE: LEGO1 0x100d4df0 // VTABLE: LEGO1 0x100d4df0
// SIZE 0x54 (from inlined construction at 0x10009fac) // SIZE 0x54
class LegoPartPresenter : public MxMediaPresenter { class LegoPartPresenter : public MxMediaPresenter {
public: public:
LegoPartPresenter() { Reset(); } LegoPartPresenter() { Reset(); }

View file

@ -6,7 +6,7 @@
#include "realtime/matrix.h" #include "realtime/matrix.h"
// VTABLE: LEGO1 0x100d6e28 // VTABLE: LEGO1 0x100d6e28
// SIZE 0x154 (from inlined construction at 0x1000a346) // SIZE 0x154
class LegoPathActor : public LegoActor { class LegoPathActor : public LegoActor {
public: public:
LegoPathActor(); LegoPathActor();

View file

@ -4,9 +4,15 @@
#include "legoanimactor.h" #include "legoanimactor.h"
#include "realtime/matrix.h" #include "realtime/matrix.h"
// VTABLE: LEGO1 0x100d5b88 /*
class LegoRaceActor : public LegoAnimActor { VTABLE: LEGO1 0x100d5b78 LegoAnimActor
VTABLE: LEGO1 0x100d5b88 LegoPathActor
VTABLE: LEGO1 0x100d5c54 LegoRaceActor
*/
// SIZE 0x180
class LegoRaceActor : public virtual LegoAnimActor {
public: public:
LegoRaceActor();
// FUNCTION: LEGO1 0x10014af0 // FUNCTION: LEGO1 0x10014af0
inline const char* ClassName() const override // vtable+0x0c inline const char* ClassName() const override // vtable+0x0c
{ {
@ -28,8 +34,14 @@ class LegoRaceActor : public LegoAnimActor {
MxS32 VTable0x90() override; // vtable+0x90 MxS32 VTable0x90() override; // vtable+0x90
MxS32 VTable0x94() override; // vtable+0x94 MxS32 VTable0x94() override; // vtable+0x94
// FUNCTION: LEGO1 0x10014aa0
virtual MxResult FUN_10014aa0() { return SUCCESS; }
// SYNTHETIC: LEGO1 0x10014ab0 // SYNTHETIC: LEGO1 0x10014ab0
// LegoRaceActor::`scalar deleting destructor' // LegoRaceActor::`scalar deleting destructor'
private:
undefined4 m_unk0x08; // 0x08
}; };
#endif // LEGORACEACTOR_H #endif // LEGORACEACTOR_H

View file

@ -3,11 +3,19 @@
#include "legocarraceactor.h" #include "legocarraceactor.h"
#include "legopathactor.h" #include "legopathactor.h"
#include "legoracemap.h"
// VTABLE: LEGO1 0x100d58b8 /*
VTABLE: LEGO1 0x100d58a0 LegoRaceActor
VTABLE: LEGO1 0x100d58a8 LegoAnimActor
VTABLE: LEGO1 0x100d58b8 LegoPathActor
VTABLE: LEGO1 0x100d5894 LegoRaceMap
VTABLE: LEGO1 0x100d5898 LegoCarRaceActor
*/
// SIZE 0x200 // SIZE 0x200
class LegoRaceCar : public LegoCarRaceActor { class LegoRaceCar : public LegoCarRaceActor, public LegoRaceMap {
public: public:
LegoRaceCar();
MxLong Notify(MxParam& p_param) override; // vtable+0x04 MxLong Notify(MxParam& p_param) override; // vtable+0x04
// FUNCTION: LEGO1 0x10014290 // FUNCTION: LEGO1 0x10014290
@ -31,8 +39,19 @@ class LegoRaceCar : public LegoCarRaceActor {
void VTable0x98() override; // vtable+0x98 void VTable0x98() override; // vtable+0x98
void VTable0x9c() override; // vtable+0x9c void VTable0x9c() override; // vtable+0x9c
virtual void FUN_10012ea0(float p_worldSpeed);
virtual void FUN_10012bf0(float);
virtual MxBool FUN_10013130(float);
// SYNTHETIC: LEGO1 0x10014230 // SYNTHETIC: LEGO1 0x10014230
// LegoRaceCar::`scalar deleting destructor' // LegoRaceCar::`scalar deleting destructor'
byte m_unk0x54; // 0x54
undefined4 m_unk0x58; // 0x58
Mx3DPointFloat m_unk0x5c; // 0x5c
undefined4 m_unk0x70; // 0x70
undefined4 m_unk0x74; // 0x74
undefined4 m_unk0x78; // 0x78
undefined4 m_unk0x7c; // 0x7c
}; };
#endif // LEGOCARRACE_H #endif // LEGOCARRACE_H

View file

@ -0,0 +1,35 @@
#ifndef LEGORACEMAP_H
#define LEGORACEMAP_H
#include "legoraceactor.h"
/*
VTABLE: LEGO1 0x100d5510 LegoRaceActor
VTABLE: LEGO1 0x100d5510 LegoAnimActor
VTABLE: LEGO1 0x100d5440 LegoPathActor
VTABLE: LEGO1 0x100d5510 LegoRaceMap
*/
// SIZE 0x1b4
class LegoRaceMap : public virtual LegoRaceActor {
public:
LegoRaceMap();
virtual void FUN_1005d4b0();
// SYNTHETIC: LEGO1 0x1005d5c0
// LegoRaceMap::`scalar deleting destructor'
private:
MxBool m_unk0x08; // 0x08
void* m_unk0x0c; // 0x0c
undefined4 m_unk0x10; // 0x10
float m_unk0x14; // 0x14
float m_unk0x18; // 0x18
float m_unk0x1c; // 0x1c
float m_unk0x20; // 0x20
float m_unk0x24; // 0x24
float m_unk0x28; // 0x28
float m_unk0x2c; // 0x2c
undefined4 m_unk0x30; // 0x30
};
#endif // LEGORACEMAP_H

View file

@ -5,7 +5,7 @@
#include "mxmediapresenter.h" #include "mxmediapresenter.h"
// VTABLE: LEGO1 0x100d4d90 // VTABLE: LEGO1 0x100d4d90
// SIZE 0x54 (from inlined construction at 0x10009bb5) // SIZE 0x54
class LegoTexturePresenter : public MxMediaPresenter { class LegoTexturePresenter : public MxMediaPresenter {
public: public:
LegoTexturePresenter() : m_textures(NULL) {} LegoTexturePresenter() : m_textures(NULL) {}

View file

@ -5,6 +5,7 @@
#include "mxstring.h" #include "mxstring.h"
// VTABLE: LEGO1 0x100d7c88 // VTABLE: LEGO1 0x100d7c88
// SIZE 0x18
class LegoUnknown100d7c88 { class LegoUnknown100d7c88 {
public: public:
~LegoUnknown100d7c88(); ~LegoUnknown100d7c88();

View file

@ -12,7 +12,6 @@ class PoliceState;
// VTABLE: LEGO1 0x100d8a80 // VTABLE: LEGO1 0x100d8a80
// SIZE 0x110 // SIZE 0x110
// Radio at 0xf8
class Police : public LegoWorld { class Police : public LegoWorld {
public: public:
Police(); Police();

View file

@ -0,0 +1,16 @@
#ifndef RACESKEL_H
#define RACESKEL_H
#include "legoanimactor.h"
/*
VTABLE : LEGO1 0x100d7668 LegoPathActor
VTABLE : LEGO1 0x100d7738 LegoAnimActor
*/
// SIZE 0x178
class RaceSkel : public LegoAnimActor {
public:
RaceSkel();
};
#endif // RACESKEL_H

View file

@ -6,6 +6,19 @@ void Act3Shark::VTable0x74(Matrix4& p_transform)
// TODO // TODO
} }
// STUB: LEGO1 0x10042ab0
Act3Shark::Act3Shark()
{
// TODO
}
// STUB: LEGO1 0x10042ce0
MxResult Act3Shark::FUN_10042ce0(void*)
{
// TODO
return SUCCESS;
}
// STUB: LEGO1 0x100430e0 // STUB: LEGO1 0x100430e0
void Act3Shark::ParseAction(char*) void Act3Shark::ParseAction(char*)
{ {

View file

@ -0,0 +1,7 @@
#include "act2actor.h"
// STUB: LEGO1 0x100187e0
Act2Actor::Act2Actor()
{
// TODO
}

View file

@ -0,0 +1,7 @@
#include "act3actor.h"
// STUB: LEGO1 0x1003fa50
Act3Actor::Act3Actor()
{
// TODO
}

View file

@ -24,6 +24,11 @@ void BumpBouy::VTable0x74(Matrix4& p_transform)
// TODO // TODO
} }
// STUB: LEGO1 0x10027220
BumpBouy::BumpBouy()
{
}
// STUB: LEGO1 0x100274d0 // STUB: LEGO1 0x100274d0
MxLong BumpBouy::Notify(MxParam& p_param) MxLong BumpBouy::Notify(MxParam& p_param)
{ {

View file

@ -170,7 +170,7 @@ LegoROI* LegoCharacterManager::GetROI(const char* p_key, MxBool p_createEntity)
if (character != NULL) { if (character != NULL) {
if (p_createEntity && character->m_roi->GetEntity() == NULL) { if (p_createEntity && character->m_roi->GetEntity() == NULL) {
// TODO: Match // TODO: Match
LegoAnimActor* actor = new LegoAnimActor(1); LegoAnimActor* actor = new LegoAnimActor();
actor->SetROI(character->m_roi, FALSE, FALSE); actor->SetROI(character->m_roi, FALSE, FALSE);
actor->FUN_100114e0(0); actor->FUN_100114e0(0);

View file

@ -1,5 +1,30 @@
#include "legocarraceactor.h" #include "legocarraceactor.h"
#include "mxmisc.h"
#include "mxvariabletable.h"
// GLOBAL: LEGO1 0x100f7af0
// STRING: LEGO1 0x100f7ae4
const char* g_fuel = "FUEL";
// FUNCTION: LEGO1 0x10080350
LegoCarRaceActor::LegoCarRaceActor()
{
m_unk0x08 = 1.0f;
m_unk0x70 = 0.0f;
m_unk0x0c = 0;
m_unk0x13c = 0.0f;
m_unk0x68 = 1.0f;
m_unk0x1c = 0.65f;
m_unk0x10 = 0.65f;
m_unk0x14 = 0.03f;
m_unk0x18 = 0.6f;
m_unk0x140 = 0.1f;
m_unk0x150 = -5.0f;
m_unk0x148 = 1;
VariableTable()->SetVariable(g_fuel, "0.8");
}
// STUB: LEGO1 0x10014130 // STUB: LEGO1 0x10014130
void LegoCarRaceActor::VTable0x68() void LegoCarRaceActor::VTable0x68()
{ {
@ -20,6 +45,16 @@ MxS32 LegoCarRaceActor::VTable0x94()
return 0; return 0;
} }
// STUB: LEGO1 0x10080590
void LegoCarRaceActor::FUN_10080590()
{
}
// STUB: LEGO1 0x10080740
void LegoCarRaceActor::FUN_10080740()
{
}
// STUB: LEGO1 0x10081830 // STUB: LEGO1 0x10081830
void LegoCarRaceActor::VTable0x6c() void LegoCarRaceActor::VTable0x6c()
{ {

View file

@ -1,5 +1,27 @@
#include "legojetski.h" #include "legojetski.h"
#include "mxmisc.h"
#include "mxnotificationmanager.h"
// FUNCTION: LEGO1 0x100136f0
void LegoJetski::FUN_100136f0(float p_worldSpeed)
{
if (p_worldSpeed < 0) {
LegoCarRaceActor::m_unk0x0c = 2;
m_unk0x13c = 0;
SetWorldSpeed(0);
}
else {
m_unk0x13c = p_worldSpeed;
}
}
// FUNCTION: LEGO1 0x10013820
LegoJetski::LegoJetski()
{
NotificationManager()->Register(this);
}
// STUB: LEGO1 0x10013e70 // STUB: LEGO1 0x10013e70
MxLong LegoJetski::Notify(MxParam& p_param) MxLong LegoJetski::Notify(MxParam& p_param)
{ {

View file

@ -1,5 +1,14 @@
#include "legojetskiraceactor.h" #include "legojetskiraceactor.h"
// FUNCTION: LEGO1 0x10080ef0
LegoJetskiRaceActor::LegoJetskiRaceActor()
{
m_unk0x10 = 0.95f;
m_unk0x14 = 0.04f;
m_unk0x18 = 0.5f;
m_unk0x150 = 1.5f;
}
// STUB: LEGO1 0x10081fc0 // STUB: LEGO1 0x10081fc0
void LegoJetskiRaceActor::VTable0x6c() void LegoJetskiRaceActor::VTable0x6c()
{ {

View file

@ -1,9 +1,25 @@
#include "legoanimactor.h" #include "legoanimactor.h"
// TODO: This might not be the actual constructor of this class, // STUB: LEGO1 0x1001c1f0
// it only exists temporarily to match other code MxResult LegoAnimActor::FUN_1001c1f0(float& p_out)
// STUB: LEGO1 0x1002a500
LegoAnimActor::LegoAnimActor(undefined4)
{ {
// TODO // TODO
return SUCCESS;
}
// STUB: LEGO1 0x1001c360
MxResult LegoAnimActor::FUN_1001c360(float, undefined4)
{
return FAILURE;
}
// STUB: LEGO1 0x1001c450
MxResult LegoAnimActor::FUN_1001c450(undefined4, undefined4, undefined4, undefined4)
{
return SUCCESS;
}
// STUB: LEGO1 0x1001c800
void LegoAnimActor::FUN_1001c800()
{
} }

View file

@ -0,0 +1,14 @@
#include "legoextraactor.h"
// STUB : LEGO1 0x1002a500
LegoExtraActor::LegoExtraActor()
{
}
// STUB: LEGO1 0x1002aae0
MxResult LegoExtraActor::FUN_1002aae0()
{
// TODO
VTable0x9c();
return SUCCESS;
}

View file

@ -6,6 +6,13 @@ void LegoRaceActor::VTable0x74(Matrix4& p_transform)
// TODO // TODO
} }
// FUNCTION: LEGO1 0x100145d0
LegoRaceActor::LegoRaceActor()
{
m_unk0x70 = 0;
m_unk0x08 = 0;
}
// STUB: LEGO1 0x10014ca0 // STUB: LEGO1 0x10014ca0
void LegoRaceActor::ParseAction(char*) void LegoRaceActor::ParseAction(char*)
{ {

View file

@ -1,5 +1,47 @@
#include "legoracecar.h" #include "legoracecar.h"
#include "mxmisc.h"
#include "mxnotificationmanager.h"
// FUNCTION: LEGO1 0x10012950
LegoRaceCar::LegoRaceCar()
{
m_unk0x54 = 0;
m_unk0x70 = 0;
m_unk0x74 = 0;
m_unk0x5c.Clear();
m_unk0x58 = 0;
m_unk0x78 = 0;
m_unk0x7c = 0;
NotificationManager()->Register(this);
}
// FUNCTION: LEGO1 0x10012ea0
void LegoRaceCar::FUN_10012ea0(float p_worldSpeed)
{
if (p_worldSpeed < 0) {
LegoCarRaceActor::m_unk0x0c = 2;
m_unk0x13c = 0;
SetWorldSpeed(0);
}
else {
m_unk0x13c = p_worldSpeed;
}
}
// STUB: LEGO1 0x10012ff0
void LegoRaceCar::FUN_10012bf0(float)
{
// TODO
}
// STUB: LEGO1 0x10013130
MxBool LegoRaceCar::FUN_10013130(float)
{
// TODO
return TRUE;
}
// STUB: LEGO1 0x10014280 // STUB: LEGO1 0x10014280
MxLong LegoRaceCar::Notify(MxParam& p_param) MxLong LegoRaceCar::Notify(MxParam& p_param)
{ {

View file

@ -0,0 +1,19 @@
#include "legoracemap.h"
#include "legocontrolmanager.h"
#include "misc.h"
// FUNCTION: LEGO1 0x1005d0d0
LegoRaceMap::LegoRaceMap()
{
m_unk0x08 = FALSE;
m_unk0x0c = NULL;
m_unk0x10 = 0;
ControlManager()->Register(this);
}
// FUNCTION: LEGO1 0x1005d4b0
void LegoRaceMap::FUN_1005d4b0()
{
// TODO
}

View file

@ -0,0 +1,7 @@
#include "raceskel.h"
// STUB: LEGO1 0x100719b0
RaceSkel::RaceSkel()
{
// TODO
}