PoliceState constructor (#463)

* PoliceState constructor

* Changes

---------

Co-authored-by: Christian Semmler <mail@csemmler.com>
This commit is contained in:
Joshua Peisach 2024-01-20 09:22:33 -05:00 committed by GitHub
parent b19807cb14
commit 9000f731ac
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 12 additions and 2 deletions

View file

@ -1,6 +1,7 @@
#ifndef POLICESTATE_H #ifndef POLICESTATE_H
#define POLICESTATE_H #define POLICESTATE_H
#include "decomp.h"
#include "legostate.h" #include "legostate.h"
// VTABLE: LEGO1 0x100d8af0 // VTABLE: LEGO1 0x100d8af0
@ -24,6 +25,10 @@ class PoliceState : public LegoState {
// SYNTHETIC: LEGO1 0x1005e920 // SYNTHETIC: LEGO1 0x1005e920
// PoliceState::`scalar deleting destructor' // PoliceState::`scalar deleting destructor'
private:
undefined4 m_unk0x8; // 0x8
undefined4 m_unk0xc; // 0xc
}; };
#endif // POLICESTATE_H #endif // POLICESTATE_H

View file

@ -1,7 +1,12 @@
#include "policestate.h" #include "policestate.h"
// STUB: LEGO1 0x1005e7c0 #include <stdlib.h>
DECOMP_SIZE_ASSERT(PoliceState, 0x10)
// FUNCTION: LEGO1 0x1005e7c0
PoliceState::PoliceState() PoliceState::PoliceState()
{ {
// TODO m_unk0xc = 0;
m_unk0x8 = (rand() % 2 == 0) ? 501 : 500;
} }