mirror of
https://github.com/PodeCaradox/GalaxyQuest-SteamFrame.git
synced 2026-10-19 13:01:18 +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>
82 lines
1.8 KiB
C++
82 lines
1.8 KiB
C++
#pragma once
|
|
|
|
#include "Game/NameObj/NameObj.hpp"
|
|
#include <JSystem/JGeometry/TMatrix.hpp>
|
|
|
|
class Camera;
|
|
class CameraHeightArrange;
|
|
class CameraMan;
|
|
class CameraParamChunk;
|
|
class CameraPoseParam;
|
|
class CameraTargetObj;
|
|
|
|
class CamTranslatorBase {
|
|
public:
|
|
CamTranslatorBase() {
|
|
}
|
|
|
|
virtual void setParam(const CameraParamChunk*) = 0;
|
|
virtual Camera* getCamera() const = 0;
|
|
};
|
|
|
|
class Camera : public NameObj {
|
|
public:
|
|
Camera(const char*);
|
|
|
|
virtual void reset() {};
|
|
virtual CameraTargetObj* calc() = 0;
|
|
virtual bool isInterpolationOff() const {
|
|
return false;
|
|
}
|
|
virtual bool isCollisionOff() const {
|
|
return false;
|
|
}
|
|
virtual bool isZeroFrameMoveOff() const {
|
|
return false;
|
|
}
|
|
virtual bool isSubjectiveCameraOff() const {
|
|
return false;
|
|
}
|
|
virtual bool isCorrectingErpPositionOff() const {
|
|
return false;
|
|
}
|
|
virtual void roundLeft() {};
|
|
virtual void roundRight() {};
|
|
virtual bool isEnableToRoundLeft() const {
|
|
return false;
|
|
}
|
|
virtual bool isEnableToRoundRight() const {
|
|
return false;
|
|
}
|
|
virtual bool isEnableToReset() const {
|
|
return false;
|
|
}
|
|
virtual CamTranslatorBase* createTranslator();
|
|
|
|
void setZoneMtx(s32);
|
|
void createVPanObj();
|
|
|
|
bool doesVPanExist() const {
|
|
return mVPan != nullptr;
|
|
}
|
|
|
|
/* 0x0C */ CameraMan* mCameraMan;
|
|
/* 0x10 */ CameraPoseParam* mPoseParam;
|
|
/* 0x14 */ CameraHeightArrange* mVPan;
|
|
/* 0x18 */ bool mIsLOfsErpOff;
|
|
/* 0x1C */ TPos3f mZoneMatrix;
|
|
};
|
|
|
|
class CamTranslatorDummy : public CamTranslatorBase {
|
|
public:
|
|
CamTranslatorDummy(Camera* pCamera) : mCamera(pCamera) {
|
|
}
|
|
|
|
virtual void setParam(const CameraParamChunk*) {};
|
|
virtual Camera* getCamera() const {
|
|
return mCamera;
|
|
}
|
|
|
|
/* 0x04 */ Camera* mCamera;
|
|
};
|