mirror of
https://github.com/PodeCaradox/GalaxyQuest-SteamFrame.git
synced 2026-10-19 06:02:24 +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>
63 lines
1.7 KiB
C++
63 lines
1.7 KiB
C++
#pragma once
|
|
|
|
#include "Game/MapObj/MapPartsFunction.hpp"
|
|
#include <JSystem/JGeometry.hpp>
|
|
|
|
class MapPartsRailPointPassChecker;
|
|
|
|
class MapPartsRailMover : public MapPartsFunction {
|
|
public:
|
|
MapPartsRailMover(LiveActor*);
|
|
|
|
virtual ~MapPartsRailMover();
|
|
virtual void init(const JMapInfoIter&);
|
|
virtual void movement();
|
|
virtual bool isWorking() const;
|
|
virtual void start();
|
|
virtual void end();
|
|
virtual bool receiveMsg(u32);
|
|
|
|
void moveToInitPos();
|
|
void startWithSignalMotion();
|
|
void cancelSignalMotion();
|
|
bool tryResetPositionRepeat();
|
|
void resetToInitPos();
|
|
void passPoint();
|
|
void reachedEnd();
|
|
void reachedEndPlayerOn();
|
|
bool isReachedEnd() const;
|
|
bool isDone() const;
|
|
void setStateStopAtEndBeforeRotate();
|
|
void calcTimeToNextRailPoint(f32*) const;
|
|
void endRotateAtPoint();
|
|
void calcMoveSpeed(f32*) const;
|
|
void calcMoveSpeedDirect(f32*) const;
|
|
void calcMoveSpeedTime(f32*) const;
|
|
void updateAccel();
|
|
bool tryPassPoint();
|
|
bool tryRestartAtEnd();
|
|
void restartAtEnd();
|
|
void exeMove();
|
|
void exeMoveStart();
|
|
void exeStopAtPoint();
|
|
void exeStopAtEnd();
|
|
void exeWait();
|
|
void exeVanish();
|
|
void exeRotateAtPoint();
|
|
void exeWaitForRestartByPlayerOn();
|
|
void exeStopAtEndWithPlayerOn();
|
|
void exeRotateAtEndPoint();
|
|
|
|
MapPartsRailPointPassChecker* mRailPointPassChecker; // 0x18
|
|
s32 mMoveConditionType; // 0x1C
|
|
s32 mMoveStopType; // 0x20
|
|
s32 mSignMotionType; // 0x24
|
|
TVec3f _28;
|
|
f32 _34;
|
|
s32 mStopTime; // 0x38
|
|
f32 mSpeed; // 0x3C
|
|
s32 mAccelTime; // 0x40
|
|
f32 mAcceleration; // 0x44
|
|
f32 _48;
|
|
};
|