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>
49 lines
1.5 KiB
C++
49 lines
1.5 KiB
C++
#pragma once
|
|
|
|
#include "Game/NameObj/NameObj.hpp"
|
|
#include <JSystem/JGeometry/TVec.hpp>
|
|
|
|
class CameraShakeTask;
|
|
|
|
#define NR_VERTICAL_TASKS 7
|
|
#define NR_HORIZONTAL_TASKS 3
|
|
#define NR_INFINITY_TASKS 4
|
|
|
|
class CameraShaker : public NameObj {
|
|
public:
|
|
enum ESinglyVerticalPower {
|
|
SINGLY_VERTICAL_POWER_VERY_WEAK = 0,
|
|
SINGLY_VERTICAL_POWER_WEAK = 1,
|
|
SINGLY_VERTICAL_POWER_NORMAL_WEAK = 2,
|
|
SINGLY_VERTICAL_POWER_NORMAL = 3,
|
|
SINGLY_VERTICAL_POWER_NORMAL_STRONG = 4,
|
|
SINGLY_VERTICAL_POWER_STRONG = 5,
|
|
SINGLY_VERTICAL_POWER_VERY_STRONG = 6
|
|
};
|
|
|
|
CameraShaker(const char*);
|
|
|
|
virtual void movement();
|
|
|
|
void shakeVertical(ESinglyVerticalPower);
|
|
void shakeInfinity(NameObj*, f32, f32);
|
|
void stopShakingInfinity(NameObj*);
|
|
void createSinglyVerticalTask();
|
|
void createSinglyHorizontalTask();
|
|
void createInfinityTask();
|
|
void updateSinglyVerticalTask();
|
|
void updateSinglyHorizontalTask();
|
|
void updateInfinityTask();
|
|
void setOffset();
|
|
void addSinglyVerticalTaskOffset(TVec2f*);
|
|
void addSinglyHorizontalTaskOffset(TVec2f*);
|
|
void addInfinityTaskOffset(TVec2f*);
|
|
void adjustOffsetToScreen(TVec2f*); // TODO
|
|
void startInfinity(u32, f32, f32);
|
|
|
|
CameraShakeTask* mVerticalTasks[NR_VERTICAL_TASKS]; // 0xC
|
|
CameraShakeTask* mHorizontalTasks[NR_HORIZONTAL_TASKS]; // 0x28
|
|
CameraShakeTask* mInfinityTasks[NR_INFINITY_TASKS]; // 0x34
|
|
NameObj* mInfinityNameObjs[NR_INFINITY_TASKS]; // 0x44
|
|
};
|