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

70 lines
2.0 KiB
C++

#pragma once
#include "Game/LiveActor/HitSensor.hpp"
#include "Game/LiveActor/LiveActor.hpp"
#include "Game/Util/JointController.hpp"
class AnimScaleController;
class WalkerStateBindStarPointer;
class SearchBeamer : public LiveActor {
public:
SearchBeamer(const char*);
virtual void init(const JMapInfoIter&);
virtual void control();
virtual void calcAndSetBaseMtx();
virtual void updateHitSensor(HitSensor*);
virtual void attackSensor(HitSensor*, HitSensor*);
virtual bool receiveMsgPlayerAttack(u32, HitSensor*, HitSensor*);
virtual bool receiveOtherMsg(u32, HitSensor*, HitSensor*);
void exeNonActive();
void exeCloseWaitFar();
void exeCloseSearch();
void exeCloseWaitNear();
void exeOpenMouth();
void exeBeamPrepare();
void exeBeamStart();
void exeBeamAim();
void exeCloseMouth();
void exeStopStart();
void exeStop();
void exeRecover();
void exeDPDSwoon();
void endDPDSwoon();
void exeStopForPlayerOff();
bool calcJointPropeller(TPos3f*, const JointControllerInfo&);
bool calcJointBeamStart(TPos3f*, const JointControllerInfo&);
bool calcJointBeamEnd(TPos3f*, const JointControllerInfo&);
void updatePropeller();
void updateBeamEffect(bool);
void updateBeamShadow();
void initBeamPos();
void reformDirection(bool);
void bowToPlayer();
bool checkBeamDistiny(TVec3f*, TVec3f) const;
bool isPlayerInTerritory() const;
bool tryNonActive();
bool tryStopStart();
bool tryDPDSwoon();
void endNonActive();
AnimScaleController* mScaleController; // 0x8C
WalkerStateBindStarPointer* mBindStarPointer; // 0x90
TVec3f _94;
TVec3f _A0;
f32 _AC;
f32 _B0;
JointController* mPropellerJointCtrl; // 0xB4
TMtx34f _B8;
TMtx34f _E8;
JointController* mBeanStartJointCtrl; // 0x118
JointController* mBeamEndJointCtrl; // 0x11C
TVec3f mBeamStart; // 0x120
TVec3f mBeamEnd; // 0x12C
f32 _138;
f32 _13C;
f32 _140;
};