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

83 lines
2.3 KiB
C++

#pragma once
#include "Game/LiveActor/LiveActor.hpp"
#include <JSystem/J3DGraphBase/J3DTexture.hpp>
#include <JSystem/JGeometry/TMatrix.hpp>
enum MiniatureGalaxyType {
MiniatureGalaxyType_Normal,
MiniatureGalaxyType_Hatena,
MiniatureGalaxyType_Koopa,
};
enum MiniatureGalaxyState {
MiniatureGalaxyState_Hatena,
MiniatureGalaxyState_Unknown,
MiniatureGalaxyState_New,
MiniatureGalaxyState_Open,
};
class AstroDomeOrbit;
class GalaxyNamePlate;
class ModelObj;
class NameObjArchiveListCollector;
class ProjmapEffectMtxSetter;
class MiniatureGalaxy : public LiveActor {
public:
MiniatureGalaxy(const char*);
virtual void init(const JMapInfoIter&);
virtual void initAfterPlacement();
virtual void appear();
virtual void kill();
virtual void control();
virtual void calcAndSetBaseMtx();
virtual bool receiveOtherMsg(u32, HitSensor*, HitSensor*);
static void makeArchiveList(NameObjArchiveListCollector*, const JMapInfoIter&);
void initPartsModel();
void setScale(f32);
void tryZoomIn(bool);
void tryZoomOut();
bool isZoomEnd() const;
void updateZoomInOut();
void updateNamePlate();
void appearUnknownModel(const char*);
void showUnknownModel();
void showSelectModel();
void hideUnknownModel();
void appearSelectModel();
void disappearSelectModel();
void showNamePlate(bool);
bool isUseKoopaFaceModel() const;
void playPointedME();
void playNeedStarME();
void exeWait();
void exeSelected();
void exeNotSelected();
void exeConfirmed();
void exeOpen();
/* 0x08C */ s32 mType;
/* 0x090 */ s32 mState;
/* 0x094 */ ModelObj* mUnknownModel;
/* 0x098 */ ModelObj* mShadowModel;
/* 0x09C */ ModelObj* mSelectModel;
/* 0x0A0 */ ModelObj* mStarPlateModel;
/* 0x0A4 */ TPos3f mPosMtx;
/* 0x0D4 */ TPos3f mShadowBaseMtx;
/* 0x104 */ ProjmapEffectMtxSetter* mProjmapEffectMtxSetter;
/* 0x108 */ TVec3f mInitPos;
/* 0x114 */ const char* mObjectName;
/* 0x118 */ const char* mGalaxyName;
/* 0x11C */ s32 mCanZoomIn;
/* 0x120 */ s32 mZoomLevel;
/* 0x124 */ J3DTexMtx mOnesTexMtx;
/* 0x1B8 */ J3DTexMtx mTensTexMtx;
/* 0x24C */ AstroDomeOrbit* mOrbit;
/* 0x250 */ GalaxyNamePlate* mNamePlate;
};