isle/LEGO1/lego/legoomni/include/policestate.h
Joshua Peisach 91643d59ba
PoliceState: Create script enum + implement FUN_1005ea40 (#564)
* PoliceState: Create script enum + implement FUN_1005ea40

* Clean up code

* Match

* Match

* Fix type

* Fix error

* Remove return

---------

Co-authored-by: Christian Semmler <mail@csemmler.com>
2024-02-15 17:22:58 +01:00

43 lines
1,017 B
C++

#ifndef POLICESTATE_H
#define POLICESTATE_H
#include "decomp.h"
#include "legostate.h"
#include "police.h"
// VTABLE: LEGO1 0x100d8af0
// SIZE 0x10
class PoliceState : public LegoState {
public:
PoliceState();
~PoliceState() override {}
// FUNCTION: LEGO1 0x1005e860
inline const char* ClassName() const override // vtable+0x0c
{
// STRING: LEGO1 0x100f0444
return "PoliceState";
}
// FUNCTION: LEGO1 0x1005e870
inline MxBool IsA(const char* p_name) const override // vtable+0x10
{
return !strcmp(p_name, PoliceState::ClassName()) || LegoState::IsA(p_name);
}
MxResult VTable0x1c(LegoFile* p_legoFile) override; // vtable+0x1c
// SYNTHETIC: LEGO1 0x1005e920
// PoliceState::`scalar deleting destructor'
inline undefined4 GetUnknown0x0c() { return m_unk0x0c; }
inline void SetUnknown0x0c(undefined4 p_unk0x0c) { m_unk0x0c = p_unk0x0c; }
void FUN_1005ea40();
private:
Police::PoliceScript m_policeScript; // 0x08
undefined4 m_unk0x0c; // 0x0c
};
#endif // POLICESTATE_H