mirror of
https://github.com/PodeCaradox/GalaxyQuest-SteamFrame.git
synced 2026-10-18 15:01:26 +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>
56 lines
1.6 KiB
C++
56 lines
1.6 KiB
C++
#pragma once
|
|
|
|
#include "Game/NPC/NPCActor.hpp"
|
|
#include <revolution/types.h>
|
|
|
|
class ButlerStateStarPieceReaction;
|
|
class JMapInfoIter;
|
|
class TalkMessageCtrl;
|
|
|
|
class Butler : public NPCActor {
|
|
public:
|
|
Butler(const char*);
|
|
|
|
virtual void init(const JMapInfoIter&);
|
|
virtual void appear();
|
|
virtual void kill();
|
|
virtual void control();
|
|
virtual bool receiveMsgPlayerAttack(u32, HitSensor*, HitSensor*);
|
|
virtual bool receiveOtherMsg(u32, HitSensor*, HitSensor*);
|
|
|
|
void killIfBatlerMapAppear();
|
|
void startDemoButlerReport(const char*);
|
|
void startDemoDomeLecture1();
|
|
void startDemoDomeLecture2();
|
|
void startDemoStarPiece1();
|
|
void startDemoStarPiece2();
|
|
void tryStartShowGalaxyMap();
|
|
void resetStatus();
|
|
bool messageBranchFunc(u32);
|
|
void initTalkCtrlArray(const JMapInfoIter&);
|
|
void initForAstroDome(const JMapInfoIter&);
|
|
void initForAstroGalaxy(const JMapInfoIter&);
|
|
TalkMessageCtrl* createTalkCtrl(const JMapInfoIter&, const char*);
|
|
void forceNerveToWait();
|
|
void tryReplaceStarPieceIfExecLecture();
|
|
bool tryStartStarPieceReaction();
|
|
void exeStarPieceReaction();
|
|
void exeDemo();
|
|
void exeDemoDomeLecture2();
|
|
void exeDemoStarPiece2();
|
|
void exeDemoShowGalaxyMap();
|
|
inline void exeDemoWait();
|
|
|
|
TalkMessageCtrl* getTalkMessage(s32 index) const {
|
|
return mTalkMessage[index];
|
|
}
|
|
|
|
/* 0x15C */ TalkMessageCtrl** mTalkMessage;
|
|
/* 0x160 */ bool _160;
|
|
/* 0x164 */ s32 _164;
|
|
/* 0x168 */ s32 _168;
|
|
/* 0x16C */ ButlerStateStarPieceReaction* mButlerState;
|
|
/* 0x170 */ bool _170;
|
|
/* 0x171 */ bool _171;
|
|
};
|