mirror of
https://github.com/isledecomp/isle-portable.git
synced 2026-02-03 12:31:15 +00:00
* Fix remaining vtordisp issues (#1016) * Fix LegoRaceActor * Fix LegoRaceMap * Fix LegoCarRaceActor * Fix LegoJetskiRaceActor * Fix LegoJetski * Fix LegoRaceCar * Downgrade orig addr unique message to debug * Implement/match Ambulance::HandleEndAction (#1018) * Implement/match Ambulance::HandleClick (#1019) * Implement/match Ambulance::HandleClick * Remove junk * Add Ambulance::FUN_10036e60 * Implement/match Ambulance::Tickle (#1021) * Match LegoMeterPresenter::ParseExtra (#1022) * Match LegoMeterPresenter::ParseExtra * Add LegoMeterPresenter to factory * Add call to parent * Add missing TODO * Implement/match Ambulance::ActivateSceneActions (#1023) * Fix CaveEntity class (#1024) * Fix CaveEntity class * Rename function * Implement/match JailEntity::HandleClick and CaveEntity::HandleClick (#1025) * Implement/match JailEntity::HandleClick and CaveEntity::HandleClick * Fix * Add remaining classes, implement/match LegoObjectFactory (#1026) * Add missing classes * Match LegoObjectFactory * Remove semicolon * Add symbol * Fix * Implement/match Ambulance::VTable0x70 (#1027) * Implement/match Ambulance::HandleButtonDown (#1028) * Implement/match Ambulance::HandlePathStruct (#1029) * Implement/match Ambulance::HandlePathStruct * Add annotation * Implement/match remaining Ambulance functions (#1030) * Fix camera glitch (#1031) * Implement LegoAnimScene::FUN_1009f490 (#1032) * Implement LegoAnimScene::FUN_1009f490 * Update legoanim.cpp * Update legoanim.cpp * Update legoanim.cpp * Bugfix for LegoMeterPresenter::DrawMeter (#1033) * feat: Implement several ::Serialize functions (#1017) * feat: Implement many ::Serialize functions * address review comments, part 1 [skip ci] * address review comments, part 2 [skip ci] * review comments (final part) * refactor: Remove Read/Write duplication * fix merge conflict * Match PizzeriaState::Serialize again * Remove unused variable, add LegoVehicleBuildState::Serialize * Implement AnimState::Serialize * fix: Conform with naming scheme * refactor: change names back * refactor: int to MxS32 --------- Co-authored-by: jonschz <jonschz@users.noreply.github.com> --------- Co-authored-by: MS <disinvite@users.noreply.github.com> Co-authored-by: jonschz <17198703+jonschz@users.noreply.github.com> Co-authored-by: jonschz <jonschz@users.noreply.github.com>
99 lines
2.9 KiB
C++
99 lines
2.9 KiB
C++
#ifndef LEGOACT2_H
|
|
#define LEGOACT2_H
|
|
|
|
#include "act2brick.h"
|
|
#include "legostate.h"
|
|
#include "legoworld.h"
|
|
|
|
class Act2Actor;
|
|
|
|
// VTABLE: LEGO1 0x100d4a70
|
|
// SIZE 0x10
|
|
class LegoAct2State : public LegoState {
|
|
public:
|
|
LegoAct2State()
|
|
{
|
|
m_unk0x08 = 0;
|
|
m_unk0x0c = 0;
|
|
}
|
|
~LegoAct2State() override {}
|
|
|
|
// FUNCTION: LEGO1 0x1000df80
|
|
inline const char* ClassName() const override // vtable+0x0c
|
|
{
|
|
// STRING: LEGO1 0x100f0428
|
|
return "LegoAct2State";
|
|
}
|
|
|
|
// FUNCTION: LEGO1 0x1000df90
|
|
inline MxBool IsA(const char* p_name) const override // vtable+0x10
|
|
{
|
|
return !strcmp(p_name, LegoAct2State::ClassName()) || LegoState::IsA(p_name);
|
|
}
|
|
|
|
// FUNCTION: LEGO1 0x1000df70
|
|
MxBool IsSerializable() override { return FALSE; } // vtable+0x14
|
|
|
|
// SYNTHETIC: LEGO1 0x1000e040
|
|
// LegoAct2State::`scalar deleting destructor'
|
|
|
|
inline undefined4 GetUnknown0x08() { return m_unk0x08; }
|
|
inline void SetUnknown0x0c(undefined p_unk0x0c) { m_unk0x0c = p_unk0x0c; }
|
|
|
|
// TODO: Most likely getters/setters are not used according to BETA.
|
|
|
|
undefined4 m_unk0x08; // 0x08
|
|
undefined m_unk0x0c; // 0x0c
|
|
};
|
|
|
|
// VTABLE: LEGO1 0x100d82e0
|
|
// SIZE 0x1154
|
|
class LegoAct2 : public LegoWorld {
|
|
public:
|
|
LegoAct2();
|
|
~LegoAct2() override;
|
|
|
|
MxLong Notify(MxParam& p_param) override; // vtable+0x04
|
|
MxResult Tickle() override; // vtable+0x08
|
|
MxResult Create(MxDSAction& p_dsAction) override; // vtable+0x18
|
|
void ReadyWorld() override; // vtable+0x50
|
|
MxBool VTable0x5c() override; // vtable+0x5c
|
|
void VTable0x60() override; // vtable+0x60
|
|
MxBool Escape() override; // vtable+0x64
|
|
void Enable(MxBool p_enable) override; // vtable+0x68
|
|
|
|
inline void SetUnknown0x1138(Act2Actor* p_unk0x1138) { m_unk0x1138 = p_unk0x1138; }
|
|
inline void SetUnknown0x1150(undefined4 p_unk0x1150) { m_unk0x1150 = p_unk0x1150; }
|
|
|
|
// SYNTHETIC: LEGO1 0x1004fe20
|
|
// LegoAct2::`scalar deleting destructor'
|
|
|
|
private:
|
|
void FUN_10051900();
|
|
|
|
Act2Brick m_bricks[10]; // 0x00f8
|
|
undefined m_unk0x10c0; // 0x10c0
|
|
undefined m_unk0x10c1; // 0x10c1
|
|
undefined m_unk0x10c2; // 0x10c2
|
|
undefined4 m_unk0x10c4; // 0x10c4
|
|
undefined4 m_unk0x10c8; // 0x10c8
|
|
undefined4 m_unk0x10cc; // 0x10cc
|
|
undefined4 m_unk0x10d0; // 0x10d0
|
|
char* m_unk0x10d4; // 0x10d4
|
|
undefined4 m_unk0x10d8; // 0x10d8
|
|
MxMatrix m_unk0x10dc; // 0x10dc
|
|
undefined4 m_unk0x1124; // 0x1124
|
|
undefined4 m_unk0x1128; // 0x1128
|
|
undefined4 m_unk0x112c; // 0x112c
|
|
undefined4 m_unk0x1130; // 0x1130
|
|
undefined4 m_unk0x1134; // 0x1134
|
|
Act2Actor* m_unk0x1138; // 0x1138
|
|
undefined m_unk0x113c; // 0x113c
|
|
undefined4 m_unk0x1140; // 0x1140
|
|
undefined4 m_unk0x1144; // 0x1144
|
|
undefined m_unk0x1148[0x08]; // 0x1148
|
|
undefined4 m_unk0x1150; // 0x1150
|
|
};
|
|
|
|
#endif // LEGOACT2_H
|