2023-06-29 04:10:08 -04:00
|
|
|
#ifndef LEGOPATHACTOR_H
|
|
|
|
#define LEGOPATHACTOR_H
|
|
|
|
|
|
|
|
#include "legoactor.h"
|
2024-04-07 08:36:58 -04:00
|
|
|
#include "misc/legounknown.h"
|
2024-05-03 12:19:12 -04:00
|
|
|
#include "mxgeometry/mxmatrix.h"
|
2023-08-03 14:10:54 -04:00
|
|
|
#include "mxtypes.h"
|
2023-06-29 04:10:08 -04:00
|
|
|
|
2024-05-03 12:19:12 -04:00
|
|
|
struct LegoEdge;
|
2024-04-25 10:00:58 -04:00
|
|
|
class LegoPathBoundary;
|
2024-03-23 10:09:20 -04:00
|
|
|
class LegoPathController;
|
2024-05-20 11:34:31 -04:00
|
|
|
struct LegoPathEdgeContainer;
|
2024-05-11 13:45:13 -04:00
|
|
|
struct LegoUnknown100db7f4;
|
2024-05-19 14:22:53 -04:00
|
|
|
class LegoWEEdge;
|
2024-03-23 10:09:20 -04:00
|
|
|
|
2023-12-06 07:10:45 -05:00
|
|
|
// VTABLE: LEGO1 0x100d6e28
|
2024-03-22 21:30:58 -04:00
|
|
|
// SIZE 0x154
|
2023-10-24 19:38:27 -04:00
|
|
|
class LegoPathActor : public LegoActor {
|
2023-06-29 04:10:08 -04:00
|
|
|
public:
|
2024-05-12 15:10:26 -04:00
|
|
|
enum {
|
|
|
|
c_bit3 = 0x04
|
|
|
|
};
|
|
|
|
|
2023-10-24 19:38:27 -04:00
|
|
|
LegoPathActor();
|
2024-02-01 15:42:10 -05:00
|
|
|
~LegoPathActor() override;
|
2023-06-29 04:10:08 -04:00
|
|
|
|
2023-12-06 07:10:45 -05:00
|
|
|
// FUNCTION: LEGO1 0x1000c430
|
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 0x100f0114
|
2023-10-24 19:38:27 -04:00
|
|
|
return "LegoPathActor";
|
|
|
|
}
|
2023-06-29 04:10:08 -04:00
|
|
|
|
2023-12-06 07:10:45 -05:00
|
|
|
// FUNCTION: LEGO1 0x1000c440
|
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, LegoPathActor::ClassName()) || LegoActor::IsA(p_name);
|
2023-10-24 19:38:27 -04:00
|
|
|
}
|
|
|
|
|
2024-05-19 14:22:53 -04:00
|
|
|
void ParseAction(char* p_extra) override; // vtable+0x20
|
|
|
|
virtual MxS32 VTable0x68(Vector3& p_v1, Vector3& p_v2, Vector3& p_v3); // vtable+0x68
|
2024-04-17 06:34:21 -04:00
|
|
|
virtual MxU32 VTable0x6c(
|
|
|
|
LegoPathBoundary* p_boundary,
|
|
|
|
Vector3& p_v1,
|
|
|
|
Vector3& p_v2,
|
|
|
|
float p_f1,
|
|
|
|
float p_f2,
|
|
|
|
Vector3& p_v3
|
|
|
|
); // vtable+0x6c
|
|
|
|
virtual void VTable0x70(float p_time); // vtable+0x70
|
|
|
|
virtual void VTable0x74(Matrix4& p_transform); // vtable+0x74
|
2024-03-16 14:20:44 -04:00
|
|
|
|
2023-12-14 11:50:29 -05:00
|
|
|
// FUNCTION: LEGO1 0x10002d20
|
2024-03-26 13:51:52 -04:00
|
|
|
virtual void SetUserNavFlag(MxBool p_userNavFlag) { m_userNavFlag = p_userNavFlag; } // vtable+0x78
|
2024-03-16 14:20:44 -04:00
|
|
|
|
2023-12-14 11:50:29 -05:00
|
|
|
// FUNCTION: LEGO1 0x10002d30
|
2024-05-20 14:27:00 -04:00
|
|
|
virtual MxBool GetUserNavFlag() { return m_userNavFlag; } // vtable+0x7c
|
2024-03-16 14:20:44 -04:00
|
|
|
|
2024-04-07 08:03:21 -04:00
|
|
|
virtual MxResult VTable0x80(
|
|
|
|
Vector3& p_point1,
|
|
|
|
Vector3& p_point2,
|
|
|
|
Vector3& p_point3,
|
|
|
|
Vector3& p_point4
|
2024-04-13 08:05:20 -04:00
|
|
|
); // vtable+0x80
|
|
|
|
virtual MxResult VTable0x84(
|
|
|
|
LegoPathBoundary* p_boundary,
|
|
|
|
float p_time,
|
|
|
|
Vector3& p_p1,
|
|
|
|
Vector3& p_p4,
|
|
|
|
LegoUnknown100db7f4& p_destEdge,
|
|
|
|
float p_destScale
|
|
|
|
); // vtable+0x84
|
2024-04-11 07:35:15 -04:00
|
|
|
virtual MxResult VTable0x88(
|
|
|
|
LegoPathBoundary* p_boundary,
|
|
|
|
float p_time,
|
|
|
|
LegoEdge& p_srcEdge,
|
|
|
|
float p_srcScale,
|
|
|
|
LegoUnknown100db7f4& p_destEdge,
|
|
|
|
float p_destScale
|
2024-04-14 10:43:07 -04:00
|
|
|
); // vtable+0x88
|
|
|
|
virtual MxS32 VTable0x8c(float p_time, Matrix4& p_transform); // vtable+0x8c
|
2024-03-16 14:20:44 -04:00
|
|
|
|
2023-12-14 11:50:29 -05:00
|
|
|
// FUNCTION: LEGO1 0x10002d40
|
2024-03-27 15:38:13 -04:00
|
|
|
virtual MxU32 VTable0x90(float, Matrix4&) { return FALSE; } // vtable+0x90
|
2024-03-16 14:20:44 -04:00
|
|
|
|
2023-12-14 11:50:29 -05:00
|
|
|
// FUNCTION: LEGO1 0x10002d50
|
2024-03-30 12:18:15 -04:00
|
|
|
virtual MxResult VTable0x94(LegoPathActor*, MxBool) { return 0; } // vtable+0x94
|
2024-03-16 14:20:44 -04:00
|
|
|
|
2024-05-20 14:27:00 -04:00
|
|
|
virtual void SwitchBoundary(
|
2024-05-20 12:27:54 -04:00
|
|
|
LegoPathBoundary*& p_boundary,
|
|
|
|
LegoUnknown100db7f4*& p_edge,
|
|
|
|
float& p_unk0xe4
|
|
|
|
); // vtable+0x98
|
2024-05-20 11:34:31 -04:00
|
|
|
virtual MxResult VTable0x9c(); // vtable+0x9c
|
2024-03-16 14:20:44 -04:00
|
|
|
|
2023-12-14 11:50:29 -05:00
|
|
|
// FUNCTION: LEGO1 0x10002d60
|
|
|
|
virtual MxS32 VTable0xa0() { return 0; } // vtable+0xa0
|
2024-03-16 14:20:44 -04:00
|
|
|
|
2024-05-22 14:09:06 -04:00
|
|
|
virtual void VTable0xa4(MxBool& p_und1, MxS32& p_und2); // vtable+0xa4
|
|
|
|
virtual void VTable0xa8(); // vtable+0xa8
|
2024-03-16 14:20:44 -04:00
|
|
|
|
2023-12-14 11:50:29 -05:00
|
|
|
// FUNCTION: LEGO1 0x10002d70
|
2024-06-06 11:45:37 -04:00
|
|
|
virtual void SetMaxLinearVel(MxFloat p_maxLinearVel) { m_maxLinearVel = p_maxLinearVel; } // vtable+0xac
|
2024-03-16 14:20:44 -04:00
|
|
|
|
2023-12-14 11:50:29 -05:00
|
|
|
// FUNCTION: LEGO1 0x10002d80
|
2024-06-06 11:45:37 -04:00
|
|
|
virtual MxFloat GetMaxLinearVel() { return m_maxLinearVel; } // vtable+0xb0
|
2024-03-16 14:20:44 -04:00
|
|
|
|
2023-12-14 11:50:29 -05:00
|
|
|
// FUNCTION: LEGO1 0x10002d90
|
|
|
|
virtual MxFloat VTable0xb4() { return m_unk0x140; } // vtable+0xb4
|
2024-03-16 14:20:44 -04:00
|
|
|
|
2023-12-14 11:50:29 -05:00
|
|
|
// FUNCTION: LEGO1 0x10002da0
|
|
|
|
virtual MxFloat VTable0xb8() { return m_unk0x144; } // vtable+0xb8
|
2024-03-16 14:20:44 -04:00
|
|
|
|
2023-12-14 11:50:29 -05:00
|
|
|
// FUNCTION: LEGO1 0x10002db0
|
|
|
|
virtual void VTable0xbc(MxFloat p_unk0x140) { m_unk0x140 = p_unk0x140; } // vtable+0xbc
|
2024-03-16 14:20:44 -04:00
|
|
|
|
2023-12-14 11:50:29 -05:00
|
|
|
// FUNCTION: LEGO1 0x10002dc0
|
|
|
|
virtual void VTable0xc0(MxFloat p_unk0x144) { m_unk0x144 = p_unk0x144; } // vtable+0xc0
|
2024-03-16 14:20:44 -04:00
|
|
|
|
2023-12-14 11:50:29 -05:00
|
|
|
// FUNCTION: LEGO1 0x10002dd0
|
|
|
|
virtual void VTable0xc4() {} // vtable+0xc4
|
2024-03-16 14:20:44 -04:00
|
|
|
|
2023-12-14 11:50:29 -05:00
|
|
|
// FUNCTION: LEGO1 0x10002de0
|
|
|
|
virtual void VTable0xc8(MxU8 p_unk0x148) { m_unk0x148 = p_unk0x148; } // vtable+0xc8
|
|
|
|
|
2024-07-04 19:06:32 -04:00
|
|
|
LegoPathBoundary* GetBoundary() { return m_boundary; }
|
|
|
|
MxU32 GetState() { return m_state; }
|
|
|
|
LegoPathController* GetController() { return m_controller; }
|
|
|
|
MxBool GetCollideBox() { return m_collideBox; }
|
2024-02-26 11:19:16 -05:00
|
|
|
|
2024-07-04 19:06:32 -04:00
|
|
|
void SetBoundary(LegoPathBoundary* p_boundary) { m_boundary = p_boundary; }
|
|
|
|
void SetState(MxU32 p_state) { m_state = p_state; }
|
|
|
|
void SetController(LegoPathController* p_controller) { m_controller = p_controller; }
|
2023-10-24 08:37:02 -04:00
|
|
|
|
2024-01-18 08:34:14 -05:00
|
|
|
// SYNTHETIC: LEGO1 0x1002d800
|
|
|
|
// LegoPathActor::`scalar deleting destructor'
|
|
|
|
|
2023-09-10 08:01:39 -04:00
|
|
|
protected:
|
2024-05-19 14:22:53 -04:00
|
|
|
inline MxU32 FUN_1002edd0(
|
|
|
|
list<LegoPathBoundary*>& p_boundaries,
|
|
|
|
LegoPathBoundary* p_boundary,
|
|
|
|
Vector3& p_v1,
|
|
|
|
Vector3& p_v2,
|
|
|
|
float p_f1,
|
|
|
|
float p_f2,
|
|
|
|
Vector3& p_v3,
|
|
|
|
MxS32 p_und
|
|
|
|
);
|
|
|
|
|
2024-03-26 13:51:52 -04:00
|
|
|
MxFloat m_BADuration; // 0x78
|
2024-04-14 10:43:07 -04:00
|
|
|
MxFloat m_unk0x7c; // 0x7c
|
2024-03-27 15:38:13 -04:00
|
|
|
MxFloat m_actorTime; // 0x80
|
|
|
|
MxFloat m_lastTime; // 0x84
|
2024-03-26 13:51:52 -04:00
|
|
|
LegoPathBoundary* m_boundary; // 0x88
|
2024-04-07 08:36:58 -04:00
|
|
|
LegoUnknown m_unk0x8c; // 0x8c
|
2024-03-30 12:18:15 -04:00
|
|
|
MxU32 m_state; // 0xdc
|
2024-05-20 11:34:31 -04:00
|
|
|
LegoUnknown100db7f4* m_destEdge; // 0xe0
|
2024-04-11 07:35:15 -04:00
|
|
|
MxFloat m_unk0xe4; // 0xe4
|
2024-05-24 13:07:45 -04:00
|
|
|
MxBool m_collideBox; // 0xe8
|
2024-04-06 06:49:22 -04:00
|
|
|
undefined m_unk0xe9; // 0xe9
|
2024-03-26 13:51:52 -04:00
|
|
|
MxBool m_userNavFlag; // 0xea
|
|
|
|
MxMatrix m_unk0xec; // 0xec
|
2024-05-20 11:34:31 -04:00
|
|
|
LegoPathEdgeContainer* m_grec; // 0x134
|
2024-03-23 10:09:20 -04:00
|
|
|
LegoPathController* m_controller; // 0x138
|
2024-06-06 11:45:37 -04:00
|
|
|
MxFloat m_maxLinearVel; // 0x13c
|
2024-03-23 10:09:20 -04:00
|
|
|
MxFloat m_unk0x140; // 0x140
|
|
|
|
MxFloat m_unk0x144; // 0x144
|
|
|
|
MxU8 m_unk0x148; // 0x148
|
|
|
|
MxS32 m_unk0x14c; // 0x14c
|
|
|
|
MxFloat m_unk0x150; // 0x150
|
2023-06-29 04:10:08 -04:00
|
|
|
};
|
|
|
|
|
2024-05-20 11:34:31 -04:00
|
|
|
// TEMPLATE: LEGO1 0x10018b70
|
|
|
|
// List<LegoBoundaryEdge>::~List<LegoBoundaryEdge>
|
|
|
|
|
|
|
|
// TEMPLATE: LEGO1 0x10018bc0
|
|
|
|
// list<LegoBoundaryEdge,allocator<LegoBoundaryEdge> >::~list<LegoBoundaryEdge,allocator<LegoBoundaryEdge> >
|
|
|
|
|
2024-05-19 14:22:53 -04:00
|
|
|
// TEMPLATE: LEGO1 0x1002ef10
|
|
|
|
// list<LegoPathBoundary *,allocator<LegoPathBoundary *> >::~list<LegoPathBoundary *,allocator<LegoPathBoundary *> >
|
|
|
|
|
|
|
|
// TEMPLATE: LEGO1 0x1002ef80
|
|
|
|
// list<LegoPathBoundary *,allocator<LegoPathBoundary *> >::insert
|
|
|
|
|
|
|
|
// TEMPLATE: LEGO1 0x1002efd0
|
|
|
|
// List<LegoPathBoundary *>::~List<LegoPathBoundary *>
|
|
|
|
|
2023-06-29 04:10:08 -04:00
|
|
|
#endif // LEGOPATHACTOR_H
|