PoliceState constructor

This commit is contained in:
Joshua Peisach 2024-01-19 21:10:41 -05:00
parent b19807cb14
commit c47983ea31
No known key found for this signature in database
GPG Key ID: 41C3D4189AFEDB5A
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 - might be an object id
}; };
#endif // POLICESTATE_H #endif // POLICESTATE_H

View File

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