mirror of
https://github.com/PodeCaradox/GalaxyQuest-SteamFrame.git
synced 2026-10-19 12:01:22 +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>
83 lines
2.6 KiB
C++
83 lines
2.6 KiB
C++
#pragma once
|
|
|
|
#include "Game/AreaObj/CubeCamera.hpp"
|
|
#include "Game/Camera/CameraMan.hpp"
|
|
|
|
class Camera;
|
|
class CameraHolder;
|
|
class CameraParamChunk;
|
|
class CameraParamChunkHolder;
|
|
class CameraParamChunkID;
|
|
class CamKarikariEffector;
|
|
class CamHeliEffector;
|
|
|
|
class CameraManGame : public CameraMan {
|
|
public:
|
|
CameraManGame(CameraHolder*, CameraParamChunkHolder*, const char*);
|
|
|
|
virtual void init(const JMapInfoIter&);
|
|
|
|
virtual void calc();
|
|
virtual void notifyActivate();
|
|
virtual void notifyDeactivate() {};
|
|
virtual bool isInterpolationOff() const;
|
|
virtual bool isCollisionOff() const;
|
|
virtual bool isZeroFrameMoveOff() const;
|
|
virtual bool isSubjectiveCameraOff() const;
|
|
virtual bool isCorrectingErpPositionOff() const;
|
|
virtual bool isEnableToReset() const;
|
|
virtual bool isEnableToRoundLeft() const;
|
|
virtual bool isEnableToRoundRight() const;
|
|
|
|
void closeCreatingCameraChunk();
|
|
void startStartPosCamera(bool);
|
|
void endStartPosCamera();
|
|
void zoomIn();
|
|
void zoomOut();
|
|
void selectCameraChunk();
|
|
void setChunk(const CameraParamChunkID&);
|
|
void setNullCamera();
|
|
CameraParamChunk* tryToReplaceChunkToDefault(CameraParamChunk*);
|
|
void requestResetIfNecessary(CameraParamChunk*);
|
|
bool isNecessaryToReset(CameraParamChunk*) const;
|
|
bool isCurrentChunkEnableEndInterp() const;
|
|
void replaceCurrentChunkAndCamera(CameraParamChunk*);
|
|
void applyParameter();
|
|
void checkReset();
|
|
void setSafePose();
|
|
void keepAwayWatchPos(TVec3f*, const TVec3f&);
|
|
void calcSafeUpVec(TVec3f*, const TVec3f&, const TVec3f&);
|
|
void createDefaultCamera();
|
|
void createDefaultWaterCamera();
|
|
void createDefaultWaterSurfaceCamera();
|
|
void createDefaultFooFighterCamera();
|
|
void createStartAnimCamera();
|
|
void createZoomCamera();
|
|
void checkStateShift();
|
|
bool tryShiftToGCapture();
|
|
bool tryShiftToSwimOrWaterSurface();
|
|
bool tryShiftToFooFighter();
|
|
void updateNormal();
|
|
void updateSwim();
|
|
void updateWaterSurface();
|
|
void updateGCapture();
|
|
void updateFooFighter();
|
|
bool setCubeChunk(CubeCameraArea::ECategory);
|
|
bool tryStartPosCamera();
|
|
bool tryZoomCamera();
|
|
bool isZoomCamera() const;
|
|
|
|
/* 0x48 */ CameraHolder* mHolder;
|
|
/* 0x4C */ CameraParamChunkHolder* mChunkHolder;
|
|
/* 0x50 */ Camera* mCamera;
|
|
/* 0x54 */ CameraParamChunk* mChunk;
|
|
/* 0x58 */ bool mRequestReset;
|
|
/* 0x5C */ u32 _5C;
|
|
/* 0x60 */ CamKarikariEffector* mKarikari;
|
|
/* 0x64 */ CamHeliEffector* mHeli;
|
|
/* 0x68 */ u32 mTypeState;
|
|
/* 0x6C */ bool mIsStartPosActive;
|
|
/* 0x70 */ s32 mInterpolateOffCounter;
|
|
/* 0x74 */ bool mZoomedIn;
|
|
};
|