mirror of
https://github.com/PodeCaradox/GalaxyQuest-SteamFrame.git
synced 2026-10-23 19:01:38 +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>
60 lines
1.5 KiB
C++
60 lines
1.5 KiB
C++
#pragma once
|
|
|
|
#include "Game/LiveActor/LiveActor.hpp"
|
|
#include <JSystem/JGeometry/TMatrix.hpp>
|
|
|
|
class AnimScaleController;
|
|
class BenefitItemOneUp;
|
|
class WalkerStateBindStarPointer;
|
|
|
|
enum SnakeheadType {
|
|
SnakeheadType_BigWait,
|
|
SnakeheadType_SmallWait,
|
|
SnakeheadType_BigMove,
|
|
SnakeheadType_SmallMove
|
|
};
|
|
|
|
class Snakehead : public LiveActor {
|
|
public:
|
|
Snakehead(const char*);
|
|
|
|
virtual void init(const JMapInfoIter&);
|
|
virtual void initAfterPlacement();
|
|
virtual void kill();
|
|
virtual void control();
|
|
virtual void calcAndSetBaseMtx();
|
|
virtual void attackSensor(HitSensor*, HitSensor*);
|
|
virtual bool receiveMsgPlayerAttack(u32, HitSensor*, HitSensor*);
|
|
|
|
void exeWaylay();
|
|
void exeWait();
|
|
void exeMoveForward();
|
|
void exeRest();
|
|
void exeMoveBack();
|
|
void exeTurtleDown();
|
|
void exeDPDSwoon();
|
|
void endDPDSwoon();
|
|
void choiceAndStartBck(const char*);
|
|
bool tryDPDSwoon();
|
|
bool isNearPlayerFromRail() const;
|
|
|
|
bool isSmall() {
|
|
return _E8 == SnakeheadType_SmallWait || _E8 == SnakeheadType_SmallMove;
|
|
}
|
|
|
|
bool isMove() {
|
|
return _E8 == SnakeheadType_SmallMove || _E8 == SnakeheadType_BigMove;
|
|
}
|
|
|
|
/* 0x8C */ AnimScaleController* mController;
|
|
/* 0x90 */ WalkerStateBindStarPointer* mStarPointer;
|
|
/* 0x94 */ TPos3f mBodyMtx;
|
|
/* 0xC4 */ TVec3f _C4;
|
|
/* 0xD0 */ f32 mForwardSpeed;
|
|
/* 0xD4 */ f32 mBackwardSpeed;
|
|
/* 0xD8 */ f32 mActivationRadius;
|
|
/* 0xDC */ TVec3f mRailCenter;
|
|
/* 0xE8 */ SnakeheadType _E8;
|
|
/* 0xEC */ BenefitItemOneUp* mItem;
|
|
};
|