2023-06-29 04:10:08 -04:00
|
|
|
#ifndef REGISTRATIONBOOK_H
|
|
|
|
#define REGISTRATIONBOOK_H
|
|
|
|
|
|
|
|
#include "legoworld.h"
|
|
|
|
|
2024-02-06 19:06:32 -05:00
|
|
|
class InfocenterState;
|
2024-05-03 12:19:12 -04:00
|
|
|
class MxControlPresenter;
|
2024-02-11 17:16:10 -05:00
|
|
|
class MxEndActionNotificationParam;
|
2024-05-03 12:19:12 -04:00
|
|
|
class MxStillPresenter;
|
2024-06-16 10:47:53 -04:00
|
|
|
class LegoControlManagerNotificationParam;
|
2024-02-06 19:06:32 -05:00
|
|
|
|
2023-12-06 07:10:45 -05:00
|
|
|
// VTABLE: LEGO1 0x100d9928
|
2023-06-29 04:10:08 -04:00
|
|
|
// SIZE 0x2d0
|
2023-10-24 19:38:27 -04:00
|
|
|
class RegistrationBook : public LegoWorld {
|
2023-06-29 04:10:08 -04:00
|
|
|
public:
|
2023-10-24 19:38:27 -04:00
|
|
|
RegistrationBook();
|
2024-02-01 15:42:10 -05:00
|
|
|
~RegistrationBook() override; // vtable+0x00
|
2023-06-29 04:10:08 -04:00
|
|
|
|
2024-02-01 15:42:10 -05:00
|
|
|
MxLong Notify(MxParam& p_param) override; // vtable+0x04
|
|
|
|
MxResult Tickle() override; // vtable+0x08
|
2023-11-04 09:47:35 -04:00
|
|
|
|
2023-12-06 07:10:45 -05:00
|
|
|
// FUNCTION: LEGO1 0x10076e10
|
2024-07-04 19:06:32 -04:00
|
|
|
const char* ClassName() const override // vtable+0x0c
|
2023-11-04 09:47:35 -04:00
|
|
|
{
|
2023-12-27 15:59:42 -05:00
|
|
|
// STRING: LEGO1 0x100f04c8
|
2023-11-04 09:47:35 -04:00
|
|
|
return "RegistrationBook";
|
|
|
|
}
|
|
|
|
|
2023-12-06 07:10:45 -05:00
|
|
|
// FUNCTION: LEGO1 0x10076e20
|
2024-07-04 19:06:32 -04:00
|
|
|
MxBool IsA(const char* p_name) const override // vtable+0x10
|
2023-11-04 09:47:35 -04:00
|
|
|
{
|
2023-12-13 05:48:14 -05:00
|
|
|
return !strcmp(p_name, RegistrationBook::ClassName()) || LegoWorld::IsA(p_name);
|
2023-11-04 09:47:35 -04:00
|
|
|
}
|
2024-01-18 08:34:14 -05:00
|
|
|
|
2024-02-01 15:42:10 -05:00
|
|
|
MxResult Create(MxDSAction& p_dsAction) override; // vtable+0x18
|
|
|
|
void ReadyWorld() override; // vtable+0x50
|
2024-05-24 20:41:57 -04:00
|
|
|
MxBool Escape() override; // vtable+0x64
|
2024-02-02 12:18:46 -05:00
|
|
|
void Enable(MxBool p_enable) override; // vtable+0x68
|
2024-01-18 20:24:15 -05:00
|
|
|
|
2024-03-15 21:32:06 -04:00
|
|
|
inline void PlayAction(MxU32 p_objectId);
|
|
|
|
|
2024-01-18 08:34:14 -05:00
|
|
|
// SYNTHETIC: LEGO1 0x10076f30
|
|
|
|
// RegistrationBook::`scalar deleting destructor'
|
2024-02-04 10:36:47 -05:00
|
|
|
|
|
|
|
private:
|
2024-03-20 12:26:10 -04:00
|
|
|
MxS32 m_registerDialogueTimer; // 0xf8
|
2024-03-15 21:32:06 -04:00
|
|
|
undefined m_unk0xfc; // 0xfc
|
|
|
|
undefined m_unk0xfd[3]; // 0xfd
|
|
|
|
MxStillPresenter* m_alphabet[26]; // 0x100
|
|
|
|
MxStillPresenter* m_name[10][7]; // 0x168
|
2024-02-04 10:36:47 -05:00
|
|
|
struct {
|
2024-03-20 12:26:10 -04:00
|
|
|
MxS16 m_letters[7]; // 0x00
|
|
|
|
MxS16 m_cursorPos; // 0x0e
|
|
|
|
} m_unk0x280; // 0x280
|
|
|
|
MxControlPresenter* m_checkmark[10]; // 0x290
|
|
|
|
undefined2 m_unk0x2b8; // 0x2b8
|
|
|
|
InfocenterState* m_infocenterState; // 0x2bc
|
|
|
|
undefined m_unk0x2c0; // 0x2c0
|
|
|
|
undefined m_unk0x2c1; // 0x2c1
|
|
|
|
undefined m_unk0x2c2[0x02]; // 0x2c2
|
|
|
|
LPDIRECTDRAWSURFACE m_checkboxHilite; // 0x2c4
|
|
|
|
LPDIRECTDRAWSURFACE m_checkboxSurface; // 0x2c8
|
|
|
|
LPDIRECTDRAWSURFACE m_checkboxNormal; // 0x2cc
|
2024-02-11 17:16:10 -05:00
|
|
|
|
|
|
|
MxLong HandleEndAction(MxEndActionNotificationParam& p_param);
|
2024-03-20 12:26:10 -04:00
|
|
|
MxLong HandleKeyPress(MxU8 p_key);
|
2024-06-16 10:47:53 -04:00
|
|
|
MxLong HandleControl(LegoControlManagerNotificationParam& p_param);
|
2024-02-11 17:16:10 -05:00
|
|
|
MxLong HandleNotification19(MxParam& p_param);
|
2024-03-17 14:58:27 -04:00
|
|
|
void FUN_100775c0(MxS16 p_playerIndex);
|
2024-03-19 10:15:24 -04:00
|
|
|
void WriteInfocenterLetters(MxS16);
|
|
|
|
void FUN_100778c0();
|
2024-03-20 12:26:10 -04:00
|
|
|
MxBool CreateSurface();
|
2023-06-29 04:10:08 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // REGISTRATIONBOOK_H
|