2023-06-29 04:10:08 -04:00
|
|
|
#ifndef ACT1STATE_H
|
|
|
|
#define ACT1STATE_H
|
|
|
|
|
|
|
|
#include "legostate.h"
|
2024-05-03 12:19:12 -04:00
|
|
|
|
|
|
|
class LegoNamedTexture;
|
2023-06-29 04:10:08 -04:00
|
|
|
|
2023-12-06 07:10:45 -05:00
|
|
|
// VTABLE: LEGO1 0x100d7028
|
2023-06-29 04:10:08 -04:00
|
|
|
// SIZE 0x26c
|
2023-10-24 19:38:27 -04:00
|
|
|
class Act1State : public LegoState {
|
2023-06-29 04:10:08 -04:00
|
|
|
public:
|
2024-03-18 12:31:22 -04:00
|
|
|
enum ElevatorFloor {
|
|
|
|
c_floor1 = 1,
|
|
|
|
c_floor2,
|
|
|
|
c_floor3
|
|
|
|
};
|
|
|
|
|
2024-02-02 20:03:52 -05:00
|
|
|
enum {
|
|
|
|
e_unk953 = 953,
|
|
|
|
e_unk954 = 954,
|
|
|
|
e_unk955 = 955,
|
|
|
|
};
|
|
|
|
|
|
|
|
// SIZE 0x4c
|
|
|
|
class NamedPlane {
|
|
|
|
public:
|
|
|
|
// FUNCTION: LEGO1 0x10033800
|
|
|
|
NamedPlane() {}
|
|
|
|
|
|
|
|
inline void SetName(const char* p_name) { m_name = p_name; }
|
|
|
|
inline const MxString* GetName() const { return &m_name; }
|
|
|
|
|
|
|
|
// FUNCTION: LEGO1 0x100344d0
|
|
|
|
MxResult Serialize(LegoFile* p_file)
|
|
|
|
{
|
|
|
|
if (p_file->IsWriteMode()) {
|
2024-04-21 09:42:08 -04:00
|
|
|
p_file->WriteString(m_name);
|
2024-02-02 20:03:52 -05:00
|
|
|
p_file->WriteVector3(m_point1);
|
|
|
|
p_file->WriteVector3(m_point2);
|
|
|
|
p_file->WriteVector3(m_point3);
|
|
|
|
}
|
|
|
|
else if (p_file->IsReadMode()) {
|
|
|
|
p_file->ReadString(m_name);
|
|
|
|
p_file->ReadVector3(m_point1);
|
|
|
|
p_file->ReadVector3(m_point2);
|
|
|
|
p_file->ReadVector3(m_point3);
|
|
|
|
}
|
|
|
|
|
|
|
|
return SUCCESS;
|
|
|
|
}
|
|
|
|
|
|
|
|
private:
|
|
|
|
MxString m_name; // 0x00
|
|
|
|
Mx3DPointFloat m_point1; // 0x10
|
|
|
|
Mx3DPointFloat m_point2; // 0x24
|
|
|
|
Mx3DPointFloat m_point3; // 0x38
|
|
|
|
};
|
|
|
|
|
2024-03-16 14:20:44 -04:00
|
|
|
Act1State();
|
|
|
|
|
|
|
|
// FUNCTION: LEGO1 0x100338a0
|
|
|
|
inline const char* ClassName() const override // vtable+0x0c
|
|
|
|
{
|
|
|
|
// STRING: LEGO1 0x100f0154
|
|
|
|
return "Act1State";
|
|
|
|
}
|
|
|
|
|
|
|
|
// FUNCTION: LEGO1 0x100338b0
|
|
|
|
inline MxBool IsA(const char* p_name) const override // vtable+0x10
|
|
|
|
{
|
|
|
|
return !strcmp(p_name, Act1State::ClassName()) || LegoState::IsA(p_name);
|
|
|
|
}
|
|
|
|
|
2024-04-21 09:42:08 -04:00
|
|
|
MxBool SetFlag() override; // vtable+0x18
|
|
|
|
MxResult Serialize(LegoFile* p_legoFile) override; // vtable+0x1c
|
2024-03-16 14:20:44 -04:00
|
|
|
|
2024-03-18 12:31:22 -04:00
|
|
|
void FUN_10034660();
|
|
|
|
void FUN_100346a0();
|
2024-03-16 14:20:44 -04:00
|
|
|
void FUN_10034b60();
|
|
|
|
void FUN_10034d00();
|
|
|
|
|
2024-06-03 07:00:38 -04:00
|
|
|
// TODO: Most likely getters/setters are not used according to BETA.
|
|
|
|
|
2024-03-16 14:20:44 -04:00
|
|
|
inline MxU32 GetUnknown18() { return m_unk0x018; }
|
2024-03-18 12:31:22 -04:00
|
|
|
inline ElevatorFloor GetElevatorFloor() { return (ElevatorFloor) m_elevFloor; }
|
2024-05-01 07:36:58 -04:00
|
|
|
inline MxU8 GetUnknown21() { return m_unk0x021; }
|
2024-03-16 14:20:44 -04:00
|
|
|
|
|
|
|
inline void SetUnknown18(MxU32 p_unk0x18) { m_unk0x018 = p_unk0x18; }
|
2024-03-18 12:31:22 -04:00
|
|
|
inline void SetElevatorFloor(ElevatorFloor p_elevFloor) { m_elevFloor = p_elevFloor; }
|
2024-05-01 07:36:58 -04:00
|
|
|
inline void SetUnknown21(MxU8 p_unk0x21) { m_unk0x021 = p_unk0x21; }
|
2024-03-16 14:20:44 -04:00
|
|
|
|
|
|
|
// SYNTHETIC: LEGO1 0x10033960
|
|
|
|
// Act1State::`scalar deleting destructor'
|
|
|
|
|
|
|
|
MxS32* m_unk0x008; // 0x008 FIXME: count for m_unk0x008
|
2024-03-09 10:49:13 -05:00
|
|
|
MxS16 m_unk0x00c; // 0x00c
|
|
|
|
undefined2 m_unk0x00e; // 0x00e
|
|
|
|
undefined2 m_unk0x010; // 0x010
|
|
|
|
undefined m_unk0x012; // 0x012
|
|
|
|
MxS32 m_unk0x014; // 0x014
|
|
|
|
MxU32 m_unk0x018; // 0x018
|
2024-03-18 12:31:22 -04:00
|
|
|
MxS16 m_elevFloor; // 0x01c
|
2024-03-18 15:00:58 -04:00
|
|
|
MxBool m_unk0x01e; // 0x01e
|
2024-03-17 13:26:41 -04:00
|
|
|
MxBool m_unk0x01f; // 0x01f
|
2024-03-18 12:31:22 -04:00
|
|
|
MxBool m_planeActive; // 0x020
|
2024-03-09 10:49:13 -05:00
|
|
|
undefined m_unk0x021; // 0x021
|
2024-05-01 07:36:58 -04:00
|
|
|
MxBool m_unk0x022; // 0x022
|
2024-03-09 10:49:13 -05:00
|
|
|
undefined m_unk0x023; // 0x023
|
|
|
|
NamedPlane m_unk0x024; // 0x024
|
|
|
|
NamedPlane m_unk0x070; // 0x070
|
|
|
|
NamedPlane m_unk0x0bc; // 0x0bc
|
|
|
|
NamedPlane m_unk0x108; // 0x108
|
|
|
|
LegoNamedTexture* m_unk0x154; // 0x154
|
|
|
|
LegoNamedTexture* m_unk0x158; // 0x158
|
|
|
|
LegoNamedTexture* m_unk0x15c; // 0x15c
|
|
|
|
MxCore* m_unk0x160; // 0x160
|
|
|
|
NamedPlane m_unk0x164; // 0x164
|
|
|
|
LegoNamedTexture* m_unk0x1b0; // 0x1b0
|
|
|
|
LegoNamedTexture* m_unk0x1b4; // 0x1b4
|
|
|
|
MxCore* m_unk0x1b8; // 0x1b8
|
|
|
|
NamedPlane m_unk0x1bc; // 0x1bc
|
|
|
|
LegoNamedTexture* m_unk0x208; // 0x208
|
|
|
|
MxCore* m_unk0x20c; // 0x20c
|
|
|
|
NamedPlane m_unk0x210; // 0x210
|
|
|
|
LegoNamedTexture* m_unk0x25c; // 0x25c
|
|
|
|
LegoNamedTexture* m_unk0x260; // 0x260
|
|
|
|
LegoNamedTexture* m_unk0x264; // 0x264
|
|
|
|
MxCore* m_unk0x268; // 0x268
|
2023-06-29 04:10:08 -04:00
|
|
|
};
|
|
|
|
|
2024-02-02 20:03:52 -05:00
|
|
|
// FUNCTION: LEGO1 0x10033a70
|
|
|
|
// Act1State::NamedPlane::~NamedPlane
|
|
|
|
|
2023-06-29 04:10:08 -04:00
|
|
|
#endif // ACT1STATE_H
|