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

81 lines
2.2 KiB
C++

#pragma once
#include "Game/NPC/TrickRabbitSnow.hpp"
#include <JSystem/JGeometry/TMatrix.hpp>
class ActorCameraInfo;
class BombTimerLayout;
class ModelObj;
class TalkMessageCtrl;
class TrickRabbitSnowCollect : public LiveActor {
public:
/// @brief Creates a new `TrickRabbitSnowCollect`.
/// @param pName A pointer to the null-terminated name of the object.
TrickRabbitSnowCollect(const char* pName);
virtual void init(const JMapInfoIter& rIter);
virtual MtxPtr getBaseMtx() const;
void initRabbits(const JMapInfoIter&);
void initTalk(const JMapInfoIter&);
void setStartPosition();
void setFinishPosition();
void noticeCaught(TrickRabbitSnow*);
void noticeGiveUp(TrickRabbitSnow*);
void startSuccessDemo();
void startFailedDemo();
void exeTryDemo();
void exeWait();
void exeStartWipeOut();
void exeStartWipeIn();
void exeStartTalk();
void exeWaitHideSnow();
void exeStart();
void exeFailedWipeOut();
void exeFailedWipeIn();
void exeFailedTalk();
void exeSuccessWipeOut();
void exeSuccessWipeIn();
void exeSuccessTalk();
void exeTakeOutStar();
void exeAppearPowerStar();
void exeEnd();
private:
/* 0x8C */ TPos3f mBaseMtx;
/* 0xBC */ ActorCameraInfo* mCameraInfo;
/* 0xC0 */ ModelObj* mPowerStarDemoModel;
/* 0xC4 */ TalkMessageCtrl* mMsgCtrl;
/* 0xC8 */ BombTimerLayout* mTimerLayout;
/* 0xCC */ TrickRabbitSnow** mRabbit;
/* 0xD0 */ s32 mRabbitNum;
/* 0xD4 */ s32 mTimeLimit;
/* 0xD8 */ bool mIsDemo;
};
class TrickRabbitCollectListener : public TrickRabbitSnowListener {
public:
/// @brief Creates a new `TrickRabbitCollectListener`.
TrickRabbitCollectListener(TrickRabbitSnowCollect* pHost) : TrickRabbitSnowListener(), mHost(pHost) {
}
virtual void noticeStart(TrickRabbitSnow* pSubject) {
}
virtual void noticeAppear(TrickRabbitSnow* pSubject) {
}
virtual void noticeCaught(TrickRabbitSnow* pSubject) {
mHost->noticeCaught(pSubject);
}
virtual void noticeGiveUp(TrickRabbitSnow* pSubject) {
mHost->noticeGiveUp(pSubject);
}
private:
/* 0x04 */ TrickRabbitSnowCollect* mHost;
};