2023-06-29 04:10:08 -04:00
|
|
|
#ifndef POLICE_H
|
|
|
|
#define POLICE_H
|
|
|
|
|
2024-01-20 15:49:56 -05:00
|
|
|
#include "decomp.h"
|
2024-02-10 13:17:07 -05:00
|
|
|
#include "legogamestate.h"
|
2023-06-29 04:10:08 -04:00
|
|
|
#include "legoworld.h"
|
2024-01-20 15:49:56 -05:00
|
|
|
#include "radio.h"
|
2023-06-29 04:10:08 -04:00
|
|
|
|
2024-05-03 12:19:12 -04:00
|
|
|
class LegoControlManagerEvent;
|
|
|
|
class LegoEventNotificationParam;
|
|
|
|
class MxDSAction;
|
2024-02-15 11:22:58 -05:00
|
|
|
class PoliceState;
|
|
|
|
|
2023-12-06 07:10:45 -05:00
|
|
|
// VTABLE: LEGO1 0x100d8a80
|
2023-06-29 04:10:08 -04:00
|
|
|
// SIZE 0x110
|
2023-10-24 19:38:27 -04:00
|
|
|
class Police : public LegoWorld {
|
2023-06-29 04:10:08 -04:00
|
|
|
public:
|
2023-10-24 19:38:27 -04:00
|
|
|
Police();
|
2024-02-01 15:42:10 -05:00
|
|
|
~Police() override; // vtable+0x00
|
2023-09-30 18:57:10 -04:00
|
|
|
|
2024-02-01 15:42:10 -05:00
|
|
|
MxLong Notify(MxParam& p_param) override; // vtable+0x04
|
2023-09-30 18:57:10 -04:00
|
|
|
|
2023-12-06 07:10:45 -05:00
|
|
|
// FUNCTION: LEGO1 0x1005e1e0
|
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 0x100f0450
|
2023-10-24 19:38:27 -04:00
|
|
|
return "Police";
|
|
|
|
}
|
|
|
|
|
2023-12-06 07:10:45 -05:00
|
|
|
// FUNCTION: LEGO1 0x1005e1f0
|
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, Police::ClassName()) || LegoWorld::IsA(p_name);
|
2023-10-24 19:38:27 -04:00
|
|
|
}
|
2024-01-18 08:34:14 -05:00
|
|
|
|
2024-02-01 15:42:10 -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-02 12:18:46 -05:00
|
|
|
void Enable(MxBool p_enable) override; // vtable+0x68
|
2024-01-20 18:04:46 -05:00
|
|
|
|
|
|
|
// SYNTHETIC: LEGO1 0x1005e300
|
|
|
|
// Police::`scalar deleting destructor'
|
2024-01-20 15:49:56 -05:00
|
|
|
|
|
|
|
private:
|
2024-02-16 09:53:17 -05:00
|
|
|
MxLong HandleClick(LegoControlManagerEvent& p_param);
|
2024-02-03 16:30:00 -05:00
|
|
|
MxLong HandleEndAction(MxEndActionNotificationParam& p_param);
|
|
|
|
MxLong HandleKeyPress(LegoEventNotificationParam& p_param);
|
|
|
|
|
2024-03-13 13:17:20 -04:00
|
|
|
Radio m_radio; // 0xf8
|
|
|
|
PoliceState* m_policeState; // 0x108
|
|
|
|
LegoGameState::Area m_destLocation; // 0x10c
|
2023-06-29 04:10:08 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // POLICE_H
|