2023-06-29 04:10:08 -04:00
|
|
|
#ifndef JUKEBOX_H
|
|
|
|
#define JUKEBOX_H
|
|
|
|
|
2023-12-24 09:16:07 -05:00
|
|
|
#include "decomp.h"
|
2024-02-26 10:12:14 -05:00
|
|
|
#include "legogamestate.h"
|
2024-06-03 12:53:25 -04:00
|
|
|
#include "legostate.h"
|
2023-06-29 04:10:08 -04:00
|
|
|
#include "legoworld.h"
|
|
|
|
|
2024-06-16 10:47:53 -04:00
|
|
|
class LegoControlManagerNotificationParam;
|
2024-06-03 12:53:25 -04:00
|
|
|
|
|
|
|
// VTABLE: LEGO1 0x100d4a90
|
|
|
|
// SIZE 0x10
|
|
|
|
class JukeBoxState : public LegoState {
|
|
|
|
public:
|
|
|
|
enum Music {
|
|
|
|
e_pasquell = 0,
|
|
|
|
e_right,
|
|
|
|
e_decal,
|
|
|
|
e_wallis,
|
|
|
|
e_nelson,
|
|
|
|
e_torpedos
|
|
|
|
};
|
|
|
|
|
2024-06-12 20:02:47 -04:00
|
|
|
JukeBoxState() : m_music(e_pasquell), m_active(FALSE) {}
|
|
|
|
|
2024-06-03 12:53:25 -04:00
|
|
|
// FUNCTION: LEGO1 0x1000f310
|
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 0x100f02bc
|
|
|
|
return "JukeBoxState";
|
|
|
|
}
|
|
|
|
|
|
|
|
// FUNCTION: LEGO1 0x1000f320
|
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, JukeBoxState::ClassName()) || LegoState::IsA(p_name);
|
|
|
|
}
|
|
|
|
|
|
|
|
// FUNCTION: LEGO1 0x1000f300
|
|
|
|
MxBool IsSerializable() override { return FALSE; } // vtable+0x14
|
|
|
|
|
|
|
|
// SYNTHETIC: LEGO1 0x1000f3d0
|
|
|
|
// JukeBoxState::`scalar deleting destructor'
|
|
|
|
|
|
|
|
Music m_music; // 0x08
|
|
|
|
MxU32 m_active; // 0x0c
|
|
|
|
};
|
2024-05-03 12:19:12 -04:00
|
|
|
|
2023-12-06 07:10:45 -05:00
|
|
|
// VTABLE: LEGO1 0x100d8958
|
2023-06-29 04:10:08 -04:00
|
|
|
// SIZE 0x104
|
2023-10-24 19:38:27 -04:00
|
|
|
class JukeBox : public LegoWorld {
|
2023-06-29 04:10:08 -04:00
|
|
|
public:
|
2024-02-26 10:12:14 -05:00
|
|
|
JukeBox();
|
|
|
|
~JukeBox() override;
|
|
|
|
|
|
|
|
MxLong Notify(MxParam& p_param) override; // vtable+0x04
|
|
|
|
MxResult Tickle() override; // vtable+0x08
|
|
|
|
|
|
|
|
// FUNCTION: LEGO1 0x1005d6f0
|
2024-07-04 19:06:32 -04:00
|
|
|
const char* ClassName() const override // vtable+0x0c
|
2024-02-26 10:12:14 -05:00
|
|
|
{
|
|
|
|
// STRING: LEGO1 0x100f02cc
|
|
|
|
return "JukeBox";
|
|
|
|
}
|
|
|
|
|
|
|
|
// FUNCTION: LEGO1 0x1005d700
|
2024-07-04 19:06:32 -04:00
|
|
|
MxBool IsA(const char* p_name) const override // vtable+0x10
|
2024-02-26 10:12:14 -05:00
|
|
|
{
|
|
|
|
return !strcmp(p_name, JukeBox::ClassName()) || LegoWorld::IsA(p_name);
|
|
|
|
}
|
|
|
|
|
|
|
|
MxResult Create(MxDSAction& p_dsAction) override; // vtable+0x18
|
|
|
|
void ReadyWorld() override; // vtable+0x50
|
|
|
|
MxBool VTable0x5c() override; // vtable+0x5c
|
2024-05-24 20:41:57 -04:00
|
|
|
MxBool Escape() override; // vtable+0x64
|
2024-02-26 10:12:14 -05:00
|
|
|
void Enable(MxBool p_enable) override; // vtable+0x68
|
|
|
|
|
|
|
|
// SYNTHETIC: LEGO1 0x1005d810
|
|
|
|
// JukeBox::`scalar deleting destructor'
|
|
|
|
|
2023-12-24 09:16:07 -05:00
|
|
|
private:
|
2024-06-16 10:47:53 -04:00
|
|
|
MxBool HandleControl(LegoControlManagerNotificationParam& p_param);
|
2024-02-26 10:12:14 -05:00
|
|
|
|
2024-03-13 13:17:20 -04:00
|
|
|
LegoGameState::Area m_destLocation; // 0xf8
|
|
|
|
JukeBoxState* m_state; // 0xfc
|
|
|
|
undefined2 m_unk0x100; // 0x100
|
2023-06-29 04:10:08 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // JUKEBOX_H
|