2023-06-29 04:10:08 -04:00
|
|
|
#ifndef LEGOPATHCONTROLLER_H
|
|
|
|
#define LEGOPATHCONTROLLER_H
|
|
|
|
|
2024-02-04 12:33:37 -05:00
|
|
|
#include "decomp.h"
|
2023-06-29 04:10:08 -04:00
|
|
|
#include "mxcore.h"
|
2024-05-03 12:19:12 -04:00
|
|
|
#include "mxstl/stlcompat.h"
|
2024-03-24 17:30:04 -04:00
|
|
|
|
2024-04-23 04:33:38 -04:00
|
|
|
class LegoAnimPresenter;
|
2024-05-03 12:19:12 -04:00
|
|
|
class LegoPathActor;
|
2024-02-04 12:33:37 -05:00
|
|
|
class LegoPathBoundary;
|
2024-03-24 17:30:04 -04:00
|
|
|
class LegoWorld;
|
2024-05-03 12:19:12 -04:00
|
|
|
class MxAtomId;
|
|
|
|
class Vector3;
|
2024-02-04 12:33:37 -05:00
|
|
|
|
2024-03-26 13:51:52 -04:00
|
|
|
struct LegoPathControllerComparator {
|
|
|
|
MxBool operator()(const undefined*, const undefined*) const { return 0; }
|
|
|
|
};
|
|
|
|
|
2023-12-06 07:10:45 -05:00
|
|
|
// VTABLE: LEGO1 0x100d7d60
|
2023-06-29 04:10:08 -04:00
|
|
|
// SIZE 0x40
|
2023-10-24 19:38:27 -04:00
|
|
|
class LegoPathController : public MxCore {
|
2023-06-29 04:10:08 -04:00
|
|
|
public:
|
2023-10-24 19:38:27 -04:00
|
|
|
LegoPathController();
|
2024-02-01 15:42:10 -05:00
|
|
|
~LegoPathController() override { Destroy(); }
|
2023-06-29 04:10:08 -04:00
|
|
|
|
2024-02-01 15:42:10 -05:00
|
|
|
MxResult Tickle() override; // vtable+08
|
2023-06-29 04:10:08 -04:00
|
|
|
|
2023-12-06 07:10:45 -05:00
|
|
|
// FUNCTION: LEGO1 0x10045110
|
2024-01-29 16:17:17 -05:00
|
|
|
inline 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 0x100f11b8
|
2023-10-24 19:38:27 -04:00
|
|
|
return "LegoPathController";
|
|
|
|
}
|
2023-06-29 04:10:08 -04:00
|
|
|
|
2023-12-06 07:10:45 -05:00
|
|
|
// FUNCTION: LEGO1 0x10045120
|
2023-12-13 05:48:14 -05:00
|
|
|
inline 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, LegoPathController::ClassName()) || MxCore::IsA(p_name);
|
2023-10-24 19:38:27 -04:00
|
|
|
}
|
2024-01-18 08:34:14 -05:00
|
|
|
|
|
|
|
// SYNTHETIC: LEGO1 0x10045740
|
|
|
|
// LegoPathController::`scalar deleting destructor'
|
|
|
|
|
2024-03-24 17:30:04 -04:00
|
|
|
virtual void VTable0x14(MxU8* p_data, Vector3& p_location, MxAtomId& p_trigger); // vtable+0x14
|
|
|
|
virtual void Destroy(); // vtable+0x18
|
2024-02-02 12:18:46 -05:00
|
|
|
|
2024-03-23 10:09:20 -04:00
|
|
|
undefined4 FUN_10046770(LegoPathActor* p_actor);
|
2024-04-23 04:33:38 -04:00
|
|
|
void FUN_100468f0(LegoAnimPresenter* p_presenter);
|
2024-04-24 09:51:28 -04:00
|
|
|
void FUN_10046930(LegoAnimPresenter* p_presenter);
|
2024-02-04 12:33:37 -05:00
|
|
|
MxResult FUN_10046b30(LegoPathBoundary** p_path, MxS32& p_value);
|
2024-02-02 12:18:46 -05:00
|
|
|
void Enable(MxBool p_enable);
|
2024-03-24 17:30:04 -04:00
|
|
|
void FUN_10046bb0(LegoWorld* p_world);
|
2024-03-22 21:30:58 -04:00
|
|
|
|
|
|
|
private:
|
2024-03-26 13:51:52 -04:00
|
|
|
LegoPathBoundary* m_unk0x08; // 0x08
|
|
|
|
undefined4 m_unk0x0c; // 0x0c
|
|
|
|
undefined4 m_unk0x10; // 0x10
|
|
|
|
undefined4 m_unk0x14; // 0x14
|
|
|
|
MxS16 m_numL; // 0x18
|
|
|
|
MxS16 m_numE; // 0x1a
|
|
|
|
MxS16 m_numN; // 0x1c
|
|
|
|
MxS16 m_numT; // 0x1e
|
|
|
|
map<undefined*, undefined*, LegoPathControllerComparator> m_pfsE; // 0x20
|
|
|
|
map<undefined*, undefined*, LegoPathControllerComparator> m_unk0x30; // 0x30
|
2023-06-29 04:10:08 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // LEGOPATHCONTROLLER_H
|