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

74 lines
2.2 KiB
C++

#pragma once
#include "Game/Enemy/BegomanBase.hpp"
class ActorCameraInfo;
class BegomanBaby;
class BegomanSpringHead;
class MultiEventCamera;
class BegomanSpring : public BegomanBase {
public:
BegomanSpring(const char* pName);
virtual void init(const JMapInfoIter& rIter);
virtual void appear();
virtual void makeActorDead();
virtual void kill();
virtual void control();
virtual void calcAnim();
virtual void attackSensor(HitSensor* pSender, HitSensor* pReceiver);
virtual bool receiveMsgPush(HitSensor* pSender, HitSensor* pReceiver);
virtual bool receiveMsgEnemyAttack(u32 msg, HitSensor* pSender, HitSensor* pReceiver);
virtual bool receiveMsgPlayerAttack(u32 msg, HitSensor* pSender, HitSensor* pReceiver);
virtual bool receiveOtherMsg(u32 msg, HitSensor* pSender, HitSensor* pReceiver);
virtual u32 getKind() const {
return 2;
}
virtual bool onTouchElectric(const TVec3f& rPos, const TVec3f& rDirection);
virtual bool setNerveReturn();
virtual const Nerve* getNerveWait();
void initEventCameras(const JMapInfoIter& rIter);
void exeNoCalcWait();
void exeWait();
void exeSignAttack();
void exePursue();
void exeTurn();
void exeBrake();
void exeStepBack();
void exeReturn();
void exeProvoke();
void exeShake();
void exeTrample();
void exeHitReaction();
void exeTired();
void exeBlow();
void exeElectricDeath();
void exeHide();
void exeHop();
void exeInWater();
void exeKeepDistance();
void exeBindStarPointer();
void endNoCalcWait();
void endWait();
void endPursue();
void endHide();
void endBindStarPointer();
void generateItem() NO_INLINE;
void startCamera() NO_INLINE;
void updateCamera();
void endCamera() NO_INLINE;
/* 0x100 */ MultiEventCamera* mEventCamera;
/* 0x104 */ BegomanSpringHead* mHead;
/* 0x108 */ TPos3f mHeadMatrix;
/* 0x138 */ TPos3f mWaterColumnMatrix;
/* 0x168 */ TVec3f mCameraStartPos;
/* 0x174 */ bool mIsCameraActive;
/* 0x178 */ ActorCameraInfo* mCameraInfo;
/* 0x17C */ s32 mType;
/* 0x180 */ BegomanBaby* mBaby;
/* 0x184 */ TVec3f mHidePos;
};