mirror of
https://github.com/PodeCaradox/GalaxyQuest-SteamFrame.git
synced 2026-10-18 18:02:04 +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>
81 lines
2.2 KiB
C++
81 lines
2.2 KiB
C++
#pragma once
|
|
|
|
#include "Game/LiveActor/LiveActor.hpp"
|
|
|
|
class SpinHitController;
|
|
class AnimScaleController;
|
|
class AnimStampController;
|
|
class StringSpiderString;
|
|
class FixedPosition;
|
|
|
|
class StringSpider : public LiveActor {
|
|
public:
|
|
StringSpider(const char*);
|
|
|
|
virtual void init(const JMapInfoIter&);
|
|
virtual void initAfterPlacement();
|
|
virtual void calcAnim();
|
|
virtual void kill();
|
|
virtual void startClipped();
|
|
virtual void endClipped();
|
|
virtual void control();
|
|
virtual void calcAndSetBaseMtx();
|
|
virtual void attackSensor(HitSensor*, HitSensor*);
|
|
virtual bool receiveMsgPush(HitSensor*, HitSensor*);
|
|
virtual bool receiveMsgPlayerAttack(u32, HitSensor*, HitSensor*);
|
|
virtual bool receiveMsgEnemyAttack(u32, HitSensor*, HitSensor*);
|
|
virtual bool receiveOtherMsg(u32, HitSensor*, HitSensor*);
|
|
|
|
s32 getSearchToAttackTime();
|
|
void doSwingAction(f32, bool);
|
|
void reactDPD();
|
|
void reactStringForce();
|
|
bool isOverStringLength(TVec3f*, f32*);
|
|
TVec3f calcToRootVector() NO_INLINE;
|
|
void calcPosture(f32, bool);
|
|
void tearDownDpdGripped();
|
|
void extendString();
|
|
void shortenString(f32);
|
|
bool reactSpinHit(HitSensor*, HitSensor*);
|
|
void startSwingLevelSound();
|
|
|
|
void exeWait();
|
|
void endWait();
|
|
void exeDownStart();
|
|
void exeDownEnd();
|
|
void exeDown();
|
|
void exeUp();
|
|
void exeSearch();
|
|
void exeAttack();
|
|
void exeHit();
|
|
void exeSpinned();
|
|
void exeTrampleFall();
|
|
void exeWallHitDeath();
|
|
void exeBlow();
|
|
void exeDpdGripped();
|
|
void endDpdGripped();
|
|
|
|
/* 0x8C */ SpinHitController* mSpinHitController;
|
|
/* 0x90 */ AnimScaleController* mScaleController;
|
|
/* 0x94 */ AnimStampController* mStampController;
|
|
/* 0x98 */ StringSpiderString* mString;
|
|
/* 0x9C */ FixedPosition* mFixedPos;
|
|
/* 0xA0 */ TQuat4f _A0;
|
|
/* 0xB0 */ f32 _B0;
|
|
/* 0xB4 */ f32 _B4;
|
|
/* 0xB8 */ bool _B8;
|
|
/* 0xBC */ s32 _BC;
|
|
/* 0xC0 */ TVec3f* _C0;
|
|
/* 0xC4 */ TVec3f* _C4;
|
|
};
|
|
|
|
class StringSpiderString : public LiveActor {
|
|
public:
|
|
StringSpiderString(const char*);
|
|
|
|
virtual void calcAndSetBaseMtx();
|
|
|
|
/* 0x8C */ TQuat4f _8C;
|
|
/* 0x9C */ TVec3f _9C;
|
|
};
|