Files
2025-11-22 16:39:47 -05:00

81 lines
2.2 KiB
C++

#pragma once
#include "Game/Screen/LayoutActor.hpp"
#include "Game/System/NerveExecutor.hpp"
namespace FileSelectInfoSub {
class SlideState;
class CharaState;
}; // namespace FileSelectInfoSub
class FileSelectInfo : public LayoutActor {
public:
/// @brief Creates a new `FileSelectInfo`.
/// @param nameBufferSize The number of wide characters to allocate memory for in the file name buffer.
/// @param pName The pointer to the null-terminated name of the object.
FileSelectInfo(s32 nameBufferSize, const char* pName);
virtual void init(const JMapInfoIter& rIter);
virtual void appear();
virtual void control();
void disappear();
void slide();
void slideBack();
void setInfo(u16*, s32, s32, s32, bool, bool, bool, const wchar_t*, const wchar_t*, s32);
void change();
void forceChange();
void exeAppear();
void exeDisplay();
void exeDisappear();
void reflectInfo();
private:
/* 0x20 */ s32 mNumber;
/* 0x24 */ s32 mStarNum;
/* 0x28 */ s32 mStarPieceNum;
/* 0x2C */ s32 mNameBufferSize;
/* 0x30 */ wchar_t* mName;
/* 0x34 */ wchar_t mDateMessage[32];
/* 0x74 */ wchar_t mTimeMessage[32];
/* 0xB4 */ s32 mMissNum;
/* 0xB8 */ bool mIsSelectedMarioPrev;
/* 0xB9 */ bool mIsSelectedMario;
/* 0xBA */ bool mIsViewNormalEnding;
/* 0xBB */ bool mIsViewCompleteEnding;
/* 0xBC */ FileSelectInfoSub::SlideState* mSlideState;
/* 0xC0 */ FileSelectInfoSub::CharaState* mCharaState;
};
namespace FileSelectInfoSub {
class SlideState : public NerveExecutor {
public:
/// @brief Creates a new `SlideState`.
/// @param pHost TODO.
SlideState(FileSelectInfo* pHost);
void exeNormalPos();
void exeSliding();
void exeSlidePos();
void exeSlidingBack();
private:
/* 0x8 */ FileSelectInfo* mHost;
};
class CharaState : public NerveExecutor {
public:
/// @brief Creates a new `CharaState`.
/// @param pHost TODO.
CharaState(FileSelectInfo* pHost);
void exeMario();
void exeToLuigi();
void exeLuigi();
void exeToMario();
private:
/* 0x8 */ FileSelectInfo* mHost;
};
}; // namespace FileSelectInfoSub