2023-06-29 04:10:08 -04:00
|
|
|
#ifndef GASSTATION_H
|
|
|
|
#define GASSTATION_H
|
|
|
|
|
2024-01-17 12:24:42 -05:00
|
|
|
#include "decomp.h"
|
2024-02-17 12:23:09 -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-01-17 12:24:42 -05:00
|
|
|
#include "radio.h"
|
2023-06-29 04:10:08 -04:00
|
|
|
|
2024-05-03 12:19:12 -04:00
|
|
|
class MxStillPresenter;
|
|
|
|
|
2024-06-03 12:53:25 -04:00
|
|
|
// VTABLE: LEGO1 0x100d46e0
|
|
|
|
// SIZE 0x24
|
|
|
|
class GasStationState : public LegoState {
|
|
|
|
public:
|
|
|
|
// SIZE 0x04
|
|
|
|
struct Unknown0x14 {
|
|
|
|
undefined4 m_unk0x00; // 0x00
|
|
|
|
};
|
|
|
|
|
|
|
|
GasStationState();
|
|
|
|
|
|
|
|
// FUNCTION: LEGO1 0x100061d0
|
|
|
|
inline const char* ClassName() const override // vtable+0x0c
|
|
|
|
{
|
|
|
|
// STRING: LEGO1 0x100f0174
|
|
|
|
return "GasStationState";
|
|
|
|
}
|
|
|
|
|
|
|
|
// FUNCTION: LEGO1 0x100061e0
|
|
|
|
inline MxBool IsA(const char* p_name) const override // vtable+0x10
|
|
|
|
{
|
|
|
|
return !strcmp(p_name, GasStationState::ClassName()) || LegoState::IsA(p_name);
|
|
|
|
}
|
|
|
|
|
2024-06-14 17:24:34 -04:00
|
|
|
MxResult Serialize(LegoFile* p_file) override; // vtable+0x1c
|
2024-06-03 12:53:25 -04:00
|
|
|
|
|
|
|
// SYNTHETIC: LEGO1 0x10006290
|
|
|
|
// GasStationState::`scalar deleting destructor'
|
|
|
|
|
|
|
|
void FUN_10006430(undefined4);
|
|
|
|
void FUN_10006490();
|
|
|
|
|
|
|
|
// TODO: Most likely getters/setters are not used according to BETA.
|
|
|
|
|
|
|
|
undefined4 m_unk0x08[3]; // 0x08
|
|
|
|
Unknown0x14 m_unk0x14; // 0x14
|
|
|
|
MxS16 m_unk0x18; // 0x18
|
|
|
|
MxS16 m_unk0x1a; // 0x1a
|
|
|
|
MxS16 m_unk0x1c; // 0x1c
|
|
|
|
MxS16 m_unk0x1e; // 0x1e
|
|
|
|
MxS16 m_unk0x20; // 0x20
|
|
|
|
};
|
|
|
|
|
2023-12-06 07:10:45 -05:00
|
|
|
// VTABLE: LEGO1 0x100d4650
|
2023-06-29 04:10:08 -04:00
|
|
|
// SIZE 0x128
|
2023-10-24 19:38:27 -04:00
|
|
|
class GasStation : public LegoWorld {
|
2023-06-29 04:10:08 -04:00
|
|
|
public:
|
2023-10-24 19:38:27 -04:00
|
|
|
GasStation();
|
2024-02-01 15:42:10 -05:00
|
|
|
~GasStation() override; // vtable+0x00
|
2023-06-29 04:10:08 -04:00
|
|
|
|
2024-02-01 15:42:10 -05:00
|
|
|
MxLong Notify(MxParam& p_param) override; // vtable+0x04
|
|
|
|
MxResult Tickle() override; // vtable+0x08
|
2023-06-29 04:10:08 -04:00
|
|
|
|
2023-12-06 07:10:45 -05:00
|
|
|
// FUNCTION: LEGO1 0x10004780
|
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 0x100f0168
|
2023-10-24 19:38:27 -04:00
|
|
|
return "GasStation";
|
|
|
|
}
|
2023-06-29 04:10:08 -04:00
|
|
|
|
2023-12-06 07:10:45 -05:00
|
|
|
// FUNCTION: LEGO1 0x10004790
|
2024-02-01 15:42:10 -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, GasStation::ClassName()) || LegoWorld::IsA(p_name);
|
2023-10-24 19:38:27 -04:00
|
|
|
}
|
2024-01-17 12:24:42 -05:00
|
|
|
|
2024-05-30 09:54:24 -04:00
|
|
|
MxResult Create(MxDSAction& p_dsAction) override; // vtable+0x18
|
|
|
|
void ReadyWorld() override; // vtable+0x50
|
|
|
|
MxBool VTable0x5c() override; // vtable+0x5c
|
|
|
|
MxBool Escape() override; // vtable+0x64
|
|
|
|
void Enable(MxBool p_enable) override; // vtable+0x68
|
|
|
|
virtual MxLong HandleControl(LegoControlManagerEvent& p_param); // vtable+0x6c
|
2024-01-20 18:04:46 -05:00
|
|
|
|
2024-04-06 07:48:09 -04:00
|
|
|
inline void PlayAction(MxU32 p_objectId);
|
|
|
|
|
2024-01-18 08:34:14 -05:00
|
|
|
// SYNTHETIC: LEGO1 0x100048a0
|
|
|
|
// GasStation::`scalar deleting destructor'
|
|
|
|
|
2024-01-17 12:24:42 -05:00
|
|
|
private:
|
2024-02-17 12:23:09 -05:00
|
|
|
MxLong HandleEndAction(MxEndActionNotificationParam& p_param);
|
|
|
|
MxLong HandleKeyPress(MxS8 p_key);
|
|
|
|
MxLong HandleButtonDown(LegoControlManagerEvent& p_param);
|
|
|
|
|
2024-04-06 07:48:09 -04:00
|
|
|
MxS16 m_currentActorId; // 0xf8
|
2024-03-13 13:17:20 -04:00
|
|
|
undefined2 m_unk0xfa; // 0xfa
|
|
|
|
LegoGameState::Area m_destLocation; // 0xfc
|
|
|
|
GasStationState* m_state; // 0x100
|
|
|
|
undefined2 m_unk0x104; // 0x104
|
|
|
|
undefined2 m_unk0x106; // 0x106
|
2024-04-06 07:48:09 -04:00
|
|
|
MxStillPresenter* m_trackLedBitmap; // 0x108
|
2024-04-06 13:07:57 -04:00
|
|
|
MxLong m_unk0x10c; // 0x10c
|
|
|
|
MxLong m_trackLedTimer; // 0x110
|
|
|
|
MxBool m_unk0x114; // 0x114
|
|
|
|
MxBool m_unk0x115; // 0x115
|
2024-03-13 13:17:20 -04:00
|
|
|
Radio m_radio; // 0x118
|
2023-06-29 04:10:08 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // GASSTATION_H
|