2023-06-29 04:10:08 -04:00
|
|
|
#ifndef SCORE_H
|
|
|
|
#define SCORE_H
|
|
|
|
|
2024-02-10 13:17:07 -05:00
|
|
|
#include "legogamestate.h"
|
2024-06-03 12:53:25 -04:00
|
|
|
#include "legostate.h"
|
2023-06-29 04:10:08 -04:00
|
|
|
#include "legoworld.h"
|
2024-05-03 12:19:12 -04:00
|
|
|
|
2024-06-16 10:47:53 -04:00
|
|
|
class LegoControlManagerNotificationParam;
|
2024-05-03 12:19:12 -04:00
|
|
|
class MxEndActionNotificationParam;
|
2024-06-03 12:53:25 -04:00
|
|
|
|
|
|
|
// VTABLE: LEGO1 0x100d53f8
|
|
|
|
// SIZE 0x0c
|
|
|
|
class ScoreState : public LegoState {
|
|
|
|
public:
|
2024-06-12 20:02:47 -04:00
|
|
|
ScoreState() : m_playCubeTutorial(TRUE) {}
|
|
|
|
|
2024-06-03 12:53:25 -04:00
|
|
|
// FUNCTION: LEGO1 0x1000de40
|
2024-07-04 19:06:32 -04:00
|
|
|
const char* ClassName() const override // vtable+0x0c
|
2024-06-03 12:53:25 -04:00
|
|
|
{
|
|
|
|
// STRING: LEGO1 0x100f0084
|
|
|
|
return "ScoreState";
|
|
|
|
}
|
|
|
|
|
|
|
|
// FUNCTION: LEGO1 0x1000de50
|
2024-07-04 19:06:32 -04:00
|
|
|
MxBool IsA(const char* p_name) const override // vtable+0x10
|
2024-06-03 12:53:25 -04:00
|
|
|
{
|
|
|
|
return !strcmp(p_name, ScoreState::ClassName()) || LegoState::IsA(p_name);
|
|
|
|
}
|
|
|
|
|
|
|
|
// FUNCTION: LEGO1 0x1000de20
|
|
|
|
MxBool IsSerializable() override { return FALSE; } // vtable+0x14
|
|
|
|
|
|
|
|
// FUNCTION: LEGO1 0x1000de30
|
2024-11-03 13:06:09 -05:00
|
|
|
MxBool Reset() override
|
2024-06-03 12:53:25 -04:00
|
|
|
{
|
|
|
|
m_playCubeTutorial = TRUE;
|
|
|
|
return TRUE;
|
|
|
|
} // vtable+0x18
|
|
|
|
|
2024-07-04 19:06:32 -04:00
|
|
|
MxBool GetTutorialFlag() { return m_playCubeTutorial; }
|
|
|
|
void SetTutorialFlag(MxBool p_playCubeTutorial) { m_playCubeTutorial = p_playCubeTutorial; }
|
2024-06-03 12:53:25 -04:00
|
|
|
|
|
|
|
// SYNTHETIC: LEGO1 0x1000df00
|
|
|
|
// ScoreState::`scalar deleting destructor'
|
|
|
|
|
|
|
|
// TODO: Most likely getters/setters are not used according to BETA.
|
|
|
|
|
|
|
|
MxBool m_playCubeTutorial; // 0x08
|
|
|
|
};
|
2023-06-29 04:10:08 -04:00
|
|
|
|
2023-12-06 07:10:45 -05:00
|
|
|
// VTABLE: LEGO1 0x100d4018
|
2023-06-29 04:10:08 -04:00
|
|
|
// SIZE 0x104
|
2023-10-24 19:38:27 -04:00
|
|
|
class Score : public LegoWorld {
|
2023-06-29 04:10:08 -04:00
|
|
|
public:
|
2023-10-24 19:38:27 -04:00
|
|
|
Score();
|
2024-04-26 10:58:42 -04:00
|
|
|
~Score() override;
|
2024-02-01 15:42:10 -05:00
|
|
|
MxLong Notify(MxParam& p_param) override; // vtable+0x04
|
2023-10-24 19:38:27 -04:00
|
|
|
|
2023-12-06 07:10:45 -05:00
|
|
|
// FUNCTION: LEGO1 0x100010c0
|
2024-07-04 19:06:32 -04:00
|
|
|
const char* ClassName() const override // vtable+0x0c
|
2023-10-24 19:38:27 -04:00
|
|
|
{
|
2023-12-27 15:59:42 -05:00
|
|
|
// STRING: LEGO1 0x100f0050
|
2023-10-24 19:38:27 -04:00
|
|
|
return "Score";
|
|
|
|
}
|
|
|
|
|
2023-12-06 07:10:45 -05:00
|
|
|
// FUNCTION: LEGO1 0x100010d0
|
2024-07-04 19:06:32 -04:00
|
|
|
MxBool IsA(const char* p_name) const override // vtable+0x10
|
2023-10-24 19:38:27 -04:00
|
|
|
{
|
2023-12-13 05:48:14 -05:00
|
|
|
return !strcmp(p_name, Score::ClassName()) || LegoWorld::IsA(p_name);
|
2023-10-24 19:38:27 -04:00
|
|
|
}
|
|
|
|
|
2023-12-06 07:10:45 -05:00
|
|
|
// SYNTHETIC: LEGO1 0x100011e0
|
2023-11-18 10:08:49 -05:00
|
|
|
// Score::`scalar deleting destructor'
|
2023-10-25 16:51:59 -04:00
|
|
|
|
2024-04-26 10:58:42 -04:00
|
|
|
MxResult Create(MxDSAction& p_dsAction) override; // vtable+0x18
|
|
|
|
void ReadyWorld() override; // vtable+0x50
|
|
|
|
MxBool VTable0x5c() override; // vtable+0x5c
|
2024-05-24 20:41:57 -04:00
|
|
|
MxBool Escape() override; // vtable+0x64
|
2024-04-26 10:58:42 -04:00
|
|
|
void Enable(MxBool p_enable) override; // vtable+0x68
|
2023-10-24 19:38:27 -04:00
|
|
|
|
|
|
|
void Paint();
|
2023-12-13 05:48:14 -05:00
|
|
|
MxLong FUN_10001510(MxEndActionNotificationParam& p_param);
|
2024-06-16 10:47:53 -04:00
|
|
|
MxLong FUN_100016d0(LegoControlManagerNotificationParam& p_param);
|
2024-04-26 10:58:42 -04:00
|
|
|
void FillArea(MxU32 i_activity, MxU32 i_actor, MxS16 score);
|
2023-10-23 07:16:21 -04:00
|
|
|
|
|
|
|
protected:
|
2023-10-24 19:38:27 -04:00
|
|
|
void DeleteScript();
|
2024-04-26 10:58:42 -04:00
|
|
|
|
|
|
|
LegoGameState::Area m_destLocation; // 0xf8
|
|
|
|
ScoreState* m_state; // 0xfc
|
|
|
|
MxU8* m_surface; // 0x100
|
2023-06-29 04:10:08 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // SCORE_H
|