2023-06-29 04:10:08 -04:00
|
|
|
#ifndef PIZZA_H
|
|
|
|
#define PIZZA_H
|
|
|
|
|
2023-09-30 19:25:33 -04:00
|
|
|
#include "decomp.h"
|
2023-06-29 04:10:08 -04:00
|
|
|
#include "isleactor.h"
|
2024-06-03 12:53:25 -04:00
|
|
|
#include "legostate.h"
|
2023-06-29 04:10:08 -04:00
|
|
|
|
2024-05-24 14:07:36 -04:00
|
|
|
class Act1State;
|
2024-05-01 07:49:47 -04:00
|
|
|
class SkateBoard;
|
|
|
|
|
2024-06-03 12:53:25 -04:00
|
|
|
// VTABLE: LEGO1 0x100d7408
|
2024-06-12 20:02:47 -04:00
|
|
|
// SIZE 0xb4
|
2024-06-03 12:53:25 -04:00
|
|
|
class PizzaMissionState : public LegoState {
|
|
|
|
public:
|
|
|
|
// SIZE 0x20
|
|
|
|
struct Entry {
|
|
|
|
public:
|
|
|
|
undefined2 m_unk0x00; // 0x00
|
|
|
|
MxU8 m_id; // 0x02
|
|
|
|
undefined m_unk0x03[0x15]; // 0x03
|
2024-06-13 14:10:19 -04:00
|
|
|
MxS16 m_score; // 0x18
|
2024-06-03 12:53:25 -04:00
|
|
|
undefined m_unk0x18[6]; // 0x1a
|
|
|
|
};
|
|
|
|
|
2024-06-12 20:02:47 -04:00
|
|
|
PizzaMissionState();
|
|
|
|
|
2024-06-03 12:53:25 -04:00
|
|
|
// FUNCTION: LEGO1 0x10039290
|
|
|
|
inline const char* ClassName() const override // vtable+0x0c
|
|
|
|
{
|
|
|
|
// STRING: LEGO1 0x100f00d4
|
|
|
|
return "PizzaMissionState";
|
|
|
|
}
|
|
|
|
|
|
|
|
// FUNCTION: LEGO1 0x100392a0
|
|
|
|
inline MxBool IsA(const char* p_name) const override // vtable+0x10
|
|
|
|
{
|
|
|
|
return !strcmp(p_name, PizzaMissionState::ClassName()) || LegoState::IsA(p_name);
|
|
|
|
}
|
|
|
|
|
|
|
|
MxResult Serialize(LegoFile* p_legoFile) override; // vtable+0x1c
|
|
|
|
|
2024-06-13 14:10:19 -04:00
|
|
|
inline MxS16 GetHighScore(MxU8 p_id) { return GetState(p_id)->m_score; }
|
2024-06-03 12:53:25 -04:00
|
|
|
|
|
|
|
// SYNTHETIC: LEGO1 0x10039350
|
|
|
|
// PizzaMissionState::`scalar deleting destructor'
|
|
|
|
|
|
|
|
Entry* GetState(MxU8 p_id);
|
|
|
|
|
|
|
|
undefined4 m_unk0x08; // 0x08
|
|
|
|
undefined4 m_unk0x0c; // 0x0c
|
|
|
|
Entry m_state[5]; // 0x10
|
2024-06-12 20:02:47 -04:00
|
|
|
undefined4 m_unk0xb0; // 0xb0
|
2024-06-03 12:53:25 -04:00
|
|
|
};
|
|
|
|
|
2023-12-06 07:10:45 -05:00
|
|
|
// VTABLE: LEGO1 0x100d7380
|
2023-06-29 04:10:08 -04:00
|
|
|
// SIZE 0x9c
|
2023-10-24 19:38:27 -04:00
|
|
|
class Pizza : public IsleActor {
|
2023-06-29 04:10:08 -04:00
|
|
|
public:
|
2023-10-24 19:38:27 -04:00
|
|
|
Pizza();
|
2024-02-01 15:42:10 -05:00
|
|
|
~Pizza() override;
|
2023-06-29 04:10:08 -04:00
|
|
|
|
2024-02-01 15:42:10 -05:00
|
|
|
MxResult Tickle() override; // vtable+0x08
|
2023-08-03 12:54:08 -04:00
|
|
|
|
2023-12-06 07:10:45 -05:00
|
|
|
// FUNCTION: LEGO1 0x10037f90
|
2024-02-01 15:42:10 -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 0x100f038c
|
2023-10-24 19:38:27 -04:00
|
|
|
return "Pizza";
|
|
|
|
}
|
2023-08-03 12:54:08 -04:00
|
|
|
|
2023-12-06 07:10:45 -05:00
|
|
|
// FUNCTION: LEGO1 0x10037fa0
|
2024-01-20 18:04:46 -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, Pizza::ClassName()) || IsleActor::IsA(p_name);
|
2023-10-24 19:38:27 -04:00
|
|
|
}
|
2023-09-30 19:25:33 -04:00
|
|
|
|
2024-04-11 07:55:22 -04:00
|
|
|
MxResult Create(MxDSAction& p_dsAction) override; // vtable+0x18
|
2024-05-30 09:54:24 -04:00
|
|
|
undefined4 HandleClick() override; // vtable+0x68
|
2024-04-11 07:55:22 -04:00
|
|
|
undefined4 HandleEndAction(MxEndActionNotificationParam&) override; // vtable+0x74
|
|
|
|
undefined4 VTable0x80(MxParam&) override; // vtable+0x80
|
2024-01-20 18:04:46 -05:00
|
|
|
|
2024-05-24 14:07:36 -04:00
|
|
|
void CreateState();
|
2024-05-30 09:54:24 -04:00
|
|
|
void FUN_10038220(MxU32 p_objectId);
|
2024-04-28 07:23:29 -04:00
|
|
|
void FUN_100382b0();
|
|
|
|
void FUN_10038380();
|
|
|
|
|
2024-05-01 07:49:47 -04:00
|
|
|
inline void SetSkateboard(SkateBoard* p_skateboard) { m_skateboard = p_skateboard; }
|
2024-04-28 07:23:29 -04:00
|
|
|
|
2024-01-18 08:34:14 -05:00
|
|
|
// SYNTHETIC: LEGO1 0x100380e0
|
|
|
|
// Pizza::`scalar deleting destructor'
|
|
|
|
|
2023-08-03 12:54:08 -04:00
|
|
|
private:
|
2024-05-24 14:07:36 -04:00
|
|
|
PizzaMissionState* m_state; // 0x7c
|
|
|
|
undefined4 m_unk0x80; // 0x80
|
|
|
|
SkateBoard* m_skateboard; // 0x84
|
|
|
|
Act1State* m_act1state; // 0x88
|
|
|
|
undefined4 m_unk0x8c; // 0x8c
|
|
|
|
undefined4 m_unk0x90; // 0x90
|
|
|
|
undefined4 m_unk0x94; // 0x94
|
|
|
|
undefined m_unk0x98; // 0x98
|
2023-06-29 04:10:08 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // PIZZA_H
|