From 6480fd90e73aceac0ca47b415f873c71d087acff Mon Sep 17 00:00:00 2001 From: Joshua Peisach Date: Tue, 3 Oct 2023 04:02:08 -0400 Subject: [PATCH] Motorcycle initial class structure and ctor (#156) --- LEGO1/motorcycle.cpp | 9 +++++++-- LEGO1/motorcycle.h | 6 +++++- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/LEGO1/motorcycle.cpp b/LEGO1/motorcycle.cpp index 9b0e0e40..59188fc4 100644 --- a/LEGO1/motorcycle.cpp +++ b/LEGO1/motorcycle.cpp @@ -1,7 +1,12 @@ #include "motorcycle.h" -// OFFSET: LEGO1 0x100357b0 STUB +DECOMP_SIZE_ASSERT(Motorcycle, 0x16c); + +// OFFSET: LEGO1 0x100357b0 Motorcycle::Motorcycle() { - // TODO + this->m_unk13c = 40.0; + this->m_unk150 = 1.75; + this->m_unk148 = 1; + this->m_unk164 = 1.0; } diff --git a/LEGO1/motorcycle.h b/LEGO1/motorcycle.h index 5ba746a8..ee39fe24 100644 --- a/LEGO1/motorcycle.h +++ b/LEGO1/motorcycle.h @@ -1,6 +1,7 @@ #ifndef MOTORCYCLE_H #define MOTORCYCLE_H +#include "decomp.h" #include "islepathactor.h" // VTABLE 0x100d7090 @@ -22,7 +23,10 @@ class Motorcycle : public IslePathActor { return !strcmp(name, Motorcycle::ClassName()) || IslePathActor::IsA(name); } - +private: + undefined m_unk160[4]; + MxFloat m_unk164; + undefined m_unk168[4]; }; #endif // MOTORCYCLE_H