2023-06-29 04:10:08 -04:00
|
|
|
#ifndef HELICOPTER_H
|
|
|
|
#define HELICOPTER_H
|
|
|
|
|
|
|
|
#include "islepathactor.h"
|
2024-06-03 12:53:25 -04:00
|
|
|
#include "legostate.h"
|
2023-11-19 09:38:07 -05:00
|
|
|
#include "realtime/matrix.h"
|
2023-06-29 04:10:08 -04:00
|
|
|
|
2024-06-03 12:53:25 -04:00
|
|
|
// VTABLE: LEGO1 0x100d5418
|
|
|
|
// SIZE 0x0c
|
|
|
|
class HelicopterState : public LegoState {
|
|
|
|
public:
|
2024-06-12 20:02:47 -04:00
|
|
|
HelicopterState() : m_unk0x08(0) {}
|
|
|
|
|
2024-06-03 12:53:25 -04:00
|
|
|
// FUNCTION: LEGO1 0x1000e0d0
|
2024-07-04 19:06:32 -04:00
|
|
|
const char* ClassName() const override // vtable+0x0c
|
2024-06-03 12:53:25 -04:00
|
|
|
{
|
|
|
|
// STRING: LEGO1 0x100f0144
|
|
|
|
return "HelicopterState";
|
|
|
|
}
|
|
|
|
|
|
|
|
// FUNCTION: LEGO1 0x1000e0e0
|
2024-07-04 19:06:32 -04:00
|
|
|
MxBool IsA(const char* p_name) const override // vtable+0x10
|
2024-06-03 12:53:25 -04:00
|
|
|
{
|
|
|
|
return !strcmp(p_name, HelicopterState::ClassName()) || LegoState::IsA(p_name);
|
|
|
|
}
|
|
|
|
|
|
|
|
// FUNCTION: LEGO1 0x1000e0b0
|
|
|
|
MxBool IsSerializable() override { return FALSE; } // vtable+0x14
|
|
|
|
|
|
|
|
// FUNCTION: LEGO1 0x1000e0c0
|
2024-11-03 13:06:09 -05:00
|
|
|
MxBool Reset() override
|
2024-06-03 12:53:25 -04:00
|
|
|
{
|
|
|
|
m_unk0x08 = 0;
|
|
|
|
return TRUE;
|
|
|
|
} // vtable+0x18
|
|
|
|
|
2024-07-04 19:06:32 -04:00
|
|
|
void SetUnknown8(MxU32 p_unk0x08) { m_unk0x08 = p_unk0x08; }
|
|
|
|
MxU32 GetUnkown8() { return m_unk0x08; }
|
2024-06-03 12:53:25 -04:00
|
|
|
|
|
|
|
// SYNTHETIC: LEGO1 0x1000e190
|
|
|
|
// HelicopterState::`scalar deleting destructor'
|
|
|
|
|
|
|
|
// TODO: Most likely getters/setters are not used according to BETA.
|
|
|
|
|
|
|
|
MxU32 m_unk0x08; // 0x08
|
|
|
|
};
|
2024-05-03 12:19:12 -04:00
|
|
|
|
2023-12-06 07:10:45 -05:00
|
|
|
// VTABLE: LEGO1 0x100d40f8
|
2023-06-29 04:10:08 -04:00
|
|
|
// SIZE 0x230
|
2023-10-24 19:38:27 -04:00
|
|
|
class Helicopter : public IslePathActor {
|
2023-06-29 04:10:08 -04:00
|
|
|
public:
|
2023-10-24 19:38:27 -04:00
|
|
|
Helicopter();
|
2024-02-01 15:42:10 -05:00
|
|
|
~Helicopter() override; // vtable+0x00
|
2023-06-29 04:10:08 -04:00
|
|
|
|
2023-12-06 07:10:45 -05:00
|
|
|
// FUNCTION: LEGO1 0x10003070
|
2024-07-04 19:06:32 -04:00
|
|
|
const char* ClassName() const override // vtable+0x0c
|
2023-10-24 19:38:27 -04:00
|
|
|
{
|
2023-12-27 15:59:42 -05:00
|
|
|
// STRING: LEGO1 0x100f0130
|
2023-10-24 19:38:27 -04:00
|
|
|
return "Helicopter";
|
|
|
|
}
|
2023-06-29 04:10:08 -04:00
|
|
|
|
2023-12-06 07:10:45 -05:00
|
|
|
// FUNCTION: LEGO1 0x10003080
|
2024-07-04 19:06:32 -04:00
|
|
|
MxBool IsA(const char* p_name) const override // vtable+0x10
|
2023-10-24 19:38:27 -04:00
|
|
|
{
|
2023-12-13 05:48:14 -05:00
|
|
|
return !strcmp(p_name, Helicopter::ClassName()) || IslePathActor::IsA(p_name);
|
2023-10-24 19:38:27 -04:00
|
|
|
}
|
2023-06-29 04:10:08 -04:00
|
|
|
|
2024-06-16 10:47:53 -04:00
|
|
|
MxResult Create(MxDSAction& p_dsAction) override; // vtable+0x18
|
|
|
|
void VTable0x70(float p_float) override; // vtable+0x70
|
|
|
|
void VTable0x74(Matrix4& p_transform) override; // vtable+0x74
|
|
|
|
MxLong HandleClick() override; // vtable+0xcc
|
|
|
|
MxLong HandleControl(LegoControlManagerNotificationParam& p_param) override; // vtable+0xd4
|
|
|
|
MxLong HandleEndAnim(LegoEndAnimNotificationParam& p_param) override; // vtable+0xd8
|
|
|
|
void Exit() override; // vtable+0xe4
|
2023-10-24 04:14:45 -04:00
|
|
|
|
2023-12-06 07:10:45 -05:00
|
|
|
// SYNTHETIC: LEGO1 0x10003210
|
2023-10-24 19:38:27 -04:00
|
|
|
// Helicopter::`scalar deleting destructor'
|
2023-10-24 04:14:45 -04:00
|
|
|
|
2024-05-24 14:07:36 -04:00
|
|
|
void CreateState();
|
|
|
|
|
2023-10-24 04:14:45 -04:00
|
|
|
protected:
|
2024-03-12 13:21:58 -04:00
|
|
|
MxMatrix m_unk0x160; // 0x160
|
|
|
|
MxMatrix m_unk0x1a8; // 0x1a8
|
|
|
|
float m_unk0x1f0; // 0x1f0
|
|
|
|
UnknownMx4DPointFloat m_unk0x1f4; // 0x1f4
|
|
|
|
HelicopterState* m_state; // 0x228
|
|
|
|
MxAtomId m_script; // 0x22c
|
2023-06-29 04:10:08 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // HELICOPTER_H
|