Files
bigmak94andClaude Opus 5.5 4b395efe5c Add the Petari decompilation (SMGCommunity/Petari@0a5c660)
The sources of Petari (https://github.com/SMGCommunity/Petari), the
Super Mario Galaxy decompilation by the SMGCommunity, at commit
0a5c6608dc3b4c44a9aa68c2535d1793dc565f02, unchanged but for LF line
endings: LICENSE (as LICENSE-Petari.txt; CC0 1.0), include/, libs/ and
src/.  Left out: the game data Petari keeps from the original
executable, the error message archive (include/Game/System/
ErrorArchive.hpp) and two tables (src/Game/System/GalaxyID.bcsv and
StoryEvent.bcsv); GalaxyQuest's converter takes them from the player's
own disc.  The port's changes follow in the next commit, so
`git diff petari-base -- decomp` shows them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-01 01:59:38 +02:00

98 lines
2.8 KiB
C++

#pragma once
#include "Game/Screen/LayoutActor.hpp"
class BackButton;
class GalaxyMap;
class GalaxyMapBackground;
class GalaxyMapSelectButton;
class JUTTexture;
class PowerStarList;
class ResTIMG;
class WipeFade;
class GalaxyMapController : public LayoutActor {
public:
enum Mode {
Mode_AstroMap,
Mode_GalaxyMap,
Mode_PowerStarList,
Mode_NewGalaxyDiscover,
Mode_NewTicoGalaxyDiscover,
Mode_NewDomeDiscover,
Mode_TicoCometPray,
Mode_ChallengeGalaxyDiscover,
};
/// @brief Creates a new `GalaxyMapController`.
GalaxyMapController();
virtual void init(const JMapInfoIter& rIter);
virtual void movement();
virtual void draw() const;
virtual void calcAnim();
virtual void appear();
virtual void kill();
void drawForCapture();
void startGalaxyMap();
void startAstroMap();
void startNewGalaxyDiscover();
void startNewTicoGalaxyDiscover();
void startNewDomeDiscover();
void startTicoCometPray();
void startChallengeGalaxyDiscover();
void killAllLayout();
bool tryPushBackButton();
bool tryChangeMode();
bool tryAppearGalaxyMap();
bool tryDisplayAndKeyWait();
void setNerveAccordingToNextModeFromMap();
void setFaderParam(GXColor, int);
void capture();
void exeReadyModeMap();
void exeFadeinModeMap();
void exeAppearGalaxyMap();
void exeDisplayGalaxyMap();
void exeAppearAstroMap();
void exeDisplayAstroMap();
void exeReadyPowerStarList();
void exeAppearPowerStarList();
void exeDisplayPowerStarList();
void exeDisappearPowerStarList();
void exeNewGalaxyDiscoverPhaseAstroMap();
void exeNewGalaxyDiscoverPhaseAppearGalaxyMap();
void exeNewGalaxyDiscoverPhaseDisplayGalaxyMap();
void exeNewTicoGalaxyDiscoverPhaseAstroMap();
void exeNewDomeDiscoverPhaseAstroMap();
void exeTicoCometFadeoutWhite();
void exeTicoCometWaitWhite();
void exeTicoCometPray();
void exeChallengeGalaxyDiscoverPhaseAstroMap();
void exeFadeout();
void exeReadyGame();
/* 0x20 */ GalaxyMap* mMap;
/* 0x24 */ GalaxyMapSelectButton* mMapSelectButton;
/* 0x28 */ GalaxyMapBackground* mMapBackground;
/* 0x2C */ PowerStarList* mPowerStarList;
/* 0x30 */ BackButton* mBackButton;
/* 0x34 */ WipeFade* mWipe;
/* 0x38 */ JUTTexture* _38;
/* 0x3C */ s32 mMode;
/* 0x40 */ s32 mWipeFrame;
};
namespace MR {
void startGalaxyMapLayout();
void startAstroMapLayout();
void startAstroMapLayoutForNewGalaxyDiscover();
void startAstroMapLayoutForNewTicoGalaxyDiscover();
void startAstroMapLayoutForNewDomeDiscover();
void startGalaxyMapLayoutForTicoComet();
void startAstroMapLayoutForChallengeGalaxyDiscover();
bool isActiveGalaxyMapLayout();
const ResTIMG* getGalaxyMapResTIMG();
}; // namespace MR