mirror of
https://github.com/PodeCaradox/GalaxyQuest-SteamFrame.git
synced 2026-10-19 07: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>
90 lines
2.2 KiB
C++
90 lines
2.2 KiB
C++
#pragma once
|
|
|
|
#include "Game/MapObj/MapObjActor.hpp"
|
|
|
|
class DemoCtrlBase;
|
|
|
|
class RailMoveObj : public MapObjActor {
|
|
public:
|
|
RailMoveObj(const char*);
|
|
|
|
virtual void init(const JMapInfoIter&);
|
|
virtual void startClipped();
|
|
virtual void endClipped();
|
|
virtual bool receiveOtherMsg(u32, HitSensor*, HitSensor*);
|
|
virtual void initCaseUseSwitchB(const MapObjActorInitInfo&);
|
|
virtual void initCaseNoUseSwitchB(const MapObjActorInitInfo&);
|
|
virtual void setupInitInfo(const JMapInfoIter&, MapObjActorInitInfo*);
|
|
virtual bool tryStartMove();
|
|
virtual void startMoveInner();
|
|
virtual void move();
|
|
virtual void doAtEndPoint();
|
|
virtual bool endMove();
|
|
virtual TVec3f* getSoundCalcPos();
|
|
|
|
bool isMoving() const;
|
|
void exeWait();
|
|
void exeMove();
|
|
|
|
TVec3f _C4;
|
|
u8 _D0;
|
|
};
|
|
|
|
class RailMoveObjPress : public RailMoveObj {
|
|
public:
|
|
RailMoveObjPress(const char*);
|
|
|
|
virtual void init(const JMapInfoIter&);
|
|
};
|
|
|
|
class RailMoveObjBreakAtEnd : public RailMoveObj {
|
|
public:
|
|
RailMoveObjBreakAtEnd(const char*);
|
|
|
|
virtual void doAtEndPoint();
|
|
};
|
|
|
|
class RailMoveIndirectObj : public RailMoveObj {
|
|
public:
|
|
inline RailMoveIndirectObj(const char* pName) : RailMoveObj(pName) {
|
|
}
|
|
|
|
virtual void connectToScene(const MapObjActorInitInfo&);
|
|
};
|
|
|
|
class RailMoveObjSwitchShadow : public RailMoveObj {
|
|
public:
|
|
inline RailMoveObjSwitchShadow(const char* pName) : RailMoveObj(pName) {
|
|
}
|
|
|
|
virtual void init(const JMapInfoIter&);
|
|
virtual void initCaseUseSwitchA(const MapObjActorInitInfo&);
|
|
|
|
void startOnShadow();
|
|
};
|
|
|
|
class RailDemoMoveObj : public RailMoveObj {
|
|
public:
|
|
RailDemoMoveObj(const char*);
|
|
|
|
virtual void init(const JMapInfoIter&);
|
|
virtual bool tryStartMove();
|
|
virtual void startMoveInner();
|
|
virtual void move();
|
|
virtual bool endMove();
|
|
|
|
DemoCtrlBase* mDemoControl; // 0xD4
|
|
};
|
|
|
|
class RailRotateMoveObj : public RailMoveObj {
|
|
public:
|
|
RailRotateMoveObj(const char*);
|
|
|
|
virtual bool receiveOtherMsg(u32, HitSensor*, HitSensor*);
|
|
virtual void initCaseUseSwitchB(const MapObjActorInitInfo&);
|
|
virtual void setupInitInfo(const JMapInfoIter&, MapObjActorInitInfo*);
|
|
|
|
bool tryStartRotateAtPoint();
|
|
bool tryStartRotateBetweenPoints();
|
|
};
|