mirror of
https://github.com/PodeCaradox/GalaxyQuest-SteamFrame.git
synced 2026-10-19 20:01:25 +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>
54 lines
1.3 KiB
C++
54 lines
1.3 KiB
C++
#pragma once
|
|
|
|
#include "Game/MapObj/MapPartsFunction.hpp"
|
|
#include <JSystem/JGeometry/TVec.hpp>
|
|
|
|
class SpringValue;
|
|
|
|
class SpringStep {
|
|
public:
|
|
SpringStep(f32, f32, f32);
|
|
|
|
void addSpringVelocity(f32);
|
|
void setSpringBaseValue(f32);
|
|
|
|
/* 0x00 */ f32 mCondition;
|
|
/* 0x04 */ f32 mSpeed;
|
|
/* 0x08 */ f32 mAngle;
|
|
/* 0x0C */ SpringValue* mSpringValue;
|
|
};
|
|
|
|
class MapPartsFloatingForce : public MapPartsFunction {
|
|
public:
|
|
MapPartsFloatingForce(LiveActor* pActor);
|
|
|
|
virtual ~MapPartsFloatingForce();
|
|
virtual void init(const JMapInfoIter& rIter);
|
|
virtual void start();
|
|
|
|
void setObjectName(const char* pName);
|
|
void initForNormalMotion(const JMapInfoIter& rIter);
|
|
void initForSpringMotion(const JMapInfoIter& rIter);
|
|
void updateVelocity();
|
|
void updateVelocitySpring();
|
|
bool tryOn();
|
|
bool tryReturn();
|
|
void exeWait();
|
|
void exeMove();
|
|
void exeMoveSpring();
|
|
void exeMoveReturn();
|
|
|
|
/* 0x18 */ SpringStep* mSpringStep;
|
|
/* 0x1C */ const char* mObjectName;
|
|
/* 0x20 */ f32 _20;
|
|
/* 0x24 */ f32 mRotateAngle;
|
|
/* 0x28 */ f32 mRotateSpeed;
|
|
/* 0x2C */ s32 mRotateAccelType;
|
|
/* 0x30 */ TVec3f _30;
|
|
/* 0x3C */ TVec3f mUpDirection;
|
|
/* 0x48 */ f32 _48;
|
|
/* 0x4C */ f32 _4C;
|
|
/* 0x50 */ TVec3f _50;
|
|
/* 0x5C */ f32 _5C;
|
|
};
|