mirror of
https://github.com/PodeCaradox/GalaxyQuest-SteamFrame.git
synced 2026-10-19 15:01:23 +02:00
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>
45 lines
1.3 KiB
C++
45 lines
1.3 KiB
C++
#pragma once
|
|
|
|
#include <revolution.h>
|
|
|
|
class ScenarioData;
|
|
|
|
class GalaxyStatusAccessor {
|
|
public:
|
|
GalaxyStatusAccessor() : mScenarioData() {
|
|
}
|
|
GalaxyStatusAccessor(const ScenarioData*);
|
|
|
|
const char* getName() const;
|
|
s32 getScenarioNum() const;
|
|
s32 getPowerStarNum() const;
|
|
s32 getZoneNum() const;
|
|
s32 getZoneId(const char*) const;
|
|
const char* getZoneName(int) const;
|
|
const char* getCometName(s32) const;
|
|
bool isValidNormalComet(s32) const;
|
|
bool isCometStar(s32) const;
|
|
bool isExistGrandStar() const;
|
|
bool isExistAnyComet() const;
|
|
s32 getNormalCometScenarioNo() const;
|
|
s32 getCoin100CometScenarioNo() const;
|
|
bool canOpen() const;
|
|
bool isOpened() const;
|
|
bool hasPowerStar(s32) const;
|
|
bool isCompleted() const;
|
|
s32 getPowerStarNumOwned() const;
|
|
s32 getNormalScenarioNum() const;
|
|
const char* getAppearPowerStarObjName(s32) const;
|
|
u32 getActivePowerStarId(s32) const;
|
|
u32 getLuigiModeTimer(s32) const; // Note: this function's existence is implied by the leftover string in .data, see note in the cpp.
|
|
bool isValidCoin100(s32) const;
|
|
bool isHiddenStar(s32) const;
|
|
|
|
/* 0x0 */ const ScenarioData* mScenarioData;
|
|
};
|
|
|
|
namespace MR {
|
|
GalaxyStatusAccessor makeGalaxyStatusAccessor(const char*);
|
|
GalaxyStatusAccessor makeCurrentGalaxyStatusAccessor();
|
|
}; // namespace MR
|