mirror of
https://github.com/PodeCaradox/GalaxyQuest-SteamFrame.git
synced 2026-10-20 05:01:16 +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>
47 lines
1.3 KiB
C++
47 lines
1.3 KiB
C++
#pragma once
|
|
|
|
#include "Game/LiveActor/LiveActor.hpp"
|
|
|
|
class CoconutTreeLeafGroup;
|
|
|
|
class CoconutTreeLeaf : public LiveActor {
|
|
public:
|
|
CoconutTreeLeaf(const CoconutTreeLeafGroup* pGroup, MtxPtr pJointMtx, const TVec3f* pWindDirection);
|
|
|
|
virtual ~CoconutTreeLeaf();
|
|
virtual void init(const JMapInfoIter& rIter);
|
|
virtual MtxPtr getBaseMtx() const;
|
|
virtual bool receiveMsgPlayerAttack(u32 msg, HitSensor* pSender, HitSensor* pReceiver);
|
|
|
|
void update(f32 windAccel, f32 windRandomAccel);
|
|
|
|
/* 0x8C */ const CoconutTreeLeafGroup* mGroup;
|
|
/* 0x90 */ TVec3f mTipPosition;
|
|
/* 0x9C */ TVec3f mRestTipPosition;
|
|
/* 0xA8 */ TVec3f mRestUp;
|
|
/* 0xB4 */ TVec3f mAxisX;
|
|
/* 0xC0 */ TVec3f mAxisY;
|
|
/* 0xCC */ TVec3f mAxisZ;
|
|
/* 0xD8 */ MtxPtr mJointMtx;
|
|
/* 0xDC */ s32 mWindStep;
|
|
/* 0xE0 */ s32 mWindStartStep;
|
|
/* 0xE4 */ TVec3f mWindAccel;
|
|
/* 0xF0 */ const TVec3f* mWindDirection;
|
|
};
|
|
|
|
class CoconutTreeLeafGroup : public LiveActor {
|
|
public:
|
|
CoconutTreeLeafGroup(const char* pName);
|
|
|
|
virtual ~CoconutTreeLeafGroup();
|
|
virtual void init(const JMapInfoIter& rIter);
|
|
virtual void startClipped();
|
|
virtual void endClipped();
|
|
virtual void control();
|
|
|
|
/* 0x8C */ s32 mNumLeaves;
|
|
/* 0x90 */ CoconutTreeLeaf** mLeaves;
|
|
/* 0x94 */ TVec3f mWindDirection;
|
|
/* 0xA0 */ f32 mDistanceToPlayer;
|
|
};
|