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"
|
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 GasStationState;
|
|
|
|
class MxStillPresenter;
|
|
|
|
|
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-02-17 12:23:09 -05:00
|
|
|
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-17 12:23:09 -05:00
|
|
|
void Enable(MxBool p_enable) override; // vtable+0x68
|
|
|
|
virtual MxLong HandleClick(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
|