mirror of
https://github.com/PodeCaradox/GalaxyQuest-SteamFrame.git
synced 2026-10-27 06:01:43 +01: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>
75 lines
2.0 KiB
C++
75 lines
2.0 KiB
C++
#pragma once
|
|
|
|
#include "Game/LiveActor/LiveActor.hpp"
|
|
#include <JSystem/JGeometry/TMatrix.hpp>
|
|
|
|
class ActorCameraInfo;
|
|
class J3DShapeDraw;
|
|
class PartsModel;
|
|
class PlantStalk;
|
|
class PlantLeaf;
|
|
|
|
class Plant : public LiveActor {
|
|
public:
|
|
Plant(const char*);
|
|
|
|
virtual void init(const JMapInfoIter&);
|
|
virtual void initAfterPlacement();
|
|
virtual void draw() const;
|
|
virtual void calcAnim();
|
|
virtual void appear();
|
|
virtual void startClipped();
|
|
virtual void endClipped();
|
|
virtual void updateHitSensor(HitSensor* pSensor);
|
|
virtual void attackSensor(HitSensor* pSender, HitSensor* pReceiver);
|
|
virtual bool receiveMsgPlayerAttack(u32 msg, HitSensor* pSender, HitSensor* pReceiver);
|
|
virtual bool receiveOtherMsg(u32 msg, HitSensor* pSender, HitSensor* pReceiver);
|
|
|
|
void exeWaitFar();
|
|
void exeSeedWait();
|
|
void exeWaitDemoWaitGrowUp();
|
|
void exeDemoWaitGrowUp();
|
|
void exeGrowUp();
|
|
void exeHangWaitGrowUp();
|
|
void exeHangUpGrowUp();
|
|
void exeGrowthStop();
|
|
void exeGrowthWait();
|
|
void exeGrowthWaitInvalid();
|
|
void exeHangStart();
|
|
void exeHangUp();
|
|
void exeHangDown();
|
|
|
|
void initLeaf();
|
|
void updateTopMtx();
|
|
bool updateGrowUp();
|
|
bool updateHangUp(f32);
|
|
void updateBindLeaf();
|
|
|
|
void startGrowUp();
|
|
|
|
bool tryHangUp();
|
|
bool tryReachGoal();
|
|
bool tryAccelHangUp();
|
|
|
|
/* 0x8C */ PartsModel* mSeedPartsModel;
|
|
/* 0x90 */ TPos3f mSeedMtx;
|
|
/* 0xC0 */ PlantStalk* mStalk;
|
|
/* 0xC4 */ PartsModel* mTopPartsModel;
|
|
/* 0xC8 */ TPos3f mTopMtx;
|
|
/* 0xF8 */ s32 mNumLeaves;
|
|
/* 0xFC */ PlantLeaf** mLeaves;
|
|
/* 0x100 */ J3DShapeDraw* mShapeDraw;
|
|
/* 0x104 */ LiveActor* mRider;
|
|
/* 0x108 */ f32 mRailCoord;
|
|
/* 0x10C */ TVec3f mUp;
|
|
/* 0x118 */ TVec3f mFront;
|
|
/* 0x124 */ f32 mRideVelocity;
|
|
/* 0x128 */ s32 mAccelTimer;
|
|
/* 0x12C */ f32 mJumpSpeed;
|
|
/* 0x130 */ f32 mJumpSpeedOffsetY;
|
|
/* 0x134 */ TVec3f mClippingCenter;
|
|
/* 0x140 */ ActorCameraInfo* mCameraInfo;
|
|
/* 0x144 */ bool mPlayAppearDemo;
|
|
/* 0x145 */ bool mGrabbedTop;
|
|
};
|