2023-06-29 04:10:08 -04:00
|
|
|
#ifndef POLICESTATE_H
|
|
|
|
#define POLICESTATE_H
|
|
|
|
|
2024-01-20 09:22:33 -05:00
|
|
|
#include "decomp.h"
|
2023-06-29 04:10:08 -04:00
|
|
|
#include "legostate.h"
|
2024-02-15 11:22:58 -05:00
|
|
|
#include "police.h"
|
2023-06-29 04:10:08 -04:00
|
|
|
|
2024-03-17 13:01:47 -04:00
|
|
|
namespace PoliceScript
|
|
|
|
{
|
|
|
|
#ifdef COMPAT_MODE
|
|
|
|
enum Script : int;
|
|
|
|
#else
|
|
|
|
enum Script;
|
|
|
|
#endif
|
|
|
|
} // namespace PoliceScript
|
|
|
|
|
2023-12-06 07:10:45 -05:00
|
|
|
// VTABLE: LEGO1 0x100d8af0
|
2023-06-29 04:10:08 -04:00
|
|
|
// SIZE 0x10
|
2023-10-24 19:38:27 -04:00
|
|
|
class PoliceState : public LegoState {
|
2023-06-29 04:10:08 -04:00
|
|
|
public:
|
2023-10-24 19:38:27 -04:00
|
|
|
PoliceState();
|
2024-02-01 15:42:10 -05:00
|
|
|
~PoliceState() override {}
|
2023-06-29 04:10:08 -04:00
|
|
|
|
2023-12-06 07:10:45 -05:00
|
|
|
// FUNCTION: LEGO1 0x1005e860
|
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 0x100f0444
|
2023-10-24 19:38:27 -04:00
|
|
|
return "PoliceState";
|
|
|
|
}
|
2023-06-29 04:10:08 -04:00
|
|
|
|
2023-12-06 07:10:45 -05:00
|
|
|
// FUNCTION: LEGO1 0x1005e870
|
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, PoliceState::ClassName()) || LegoState::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 VTable0x1c(LegoFile* p_legoFile) override; // vtable+0x1c
|
2024-01-20 18:04:46 -05:00
|
|
|
|
2024-01-18 08:34:14 -05:00
|
|
|
// SYNTHETIC: LEGO1 0x1005e920
|
|
|
|
// PoliceState::`scalar deleting destructor'
|
2024-01-20 09:22:33 -05:00
|
|
|
|
2024-02-04 17:40:51 -05:00
|
|
|
inline undefined4 GetUnknown0x0c() { return m_unk0x0c; }
|
|
|
|
inline void SetUnknown0x0c(undefined4 p_unk0x0c) { m_unk0x0c = p_unk0x0c; }
|
|
|
|
|
2024-02-15 11:22:58 -05:00
|
|
|
void FUN_1005ea40();
|
|
|
|
|
2024-01-20 09:22:33 -05:00
|
|
|
private:
|
2024-03-10 12:08:21 -04:00
|
|
|
PoliceScript::Script m_policeScript; // 0x08
|
2024-02-15 11:22:58 -05:00
|
|
|
undefined4 m_unk0x0c; // 0x0c
|
2023-06-29 04:10:08 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // POLICESTATE_H
|