isle-portable/LEGO1/scorestate.h
Nathan M Gilbert 4cc6b9b8ec
Implement Score (#230)
* Implement Score

* Update mxomni.cpp

Fix case of OFFSET comment.

* Fix DeleteObjects

* Apply changes (see comment)

---------

Co-authored-by: Christian Semmler <mail@csemmler.com>
2023-10-23 13:16:21 +02:00

34 lines
834 B
C++

#ifndef SCORESTATE_H
#define SCORESTATE_H
#include "legostate.h"
// VTABLE 0x100d53f8
// SIZE 0xc
class ScoreState : public LegoState
{
public:
// OFFSET: LEGO1 0x1000de40
inline virtual const char *ClassName() const override // vtable+0x0c
{
// 0x100f0084
return "ScoreState";
};
// OFFSET: LEGO1 0x1000de50
inline virtual MxBool IsA(const char *name) const override // vtable+0x10
{
return !strcmp(name, ScoreState::ClassName()) || LegoState::IsA(name);
};
virtual MxBool VTable0x14() override; // vtable+0x14
virtual MxBool SetFlag() override; // vtable+0x18
inline MxBool GetTutorialFlag() { return m_playCubeTutorial; }
inline void SetTutorialFlag(MxBool p_playCubeTutorial) { m_playCubeTutorial = p_playCubeTutorial; }
private:
MxBool m_playCubeTutorial;
};
#endif // SCORESTATE_H