mirror of
https://github.com/PodeCaradox/GalaxyQuest-SteamFrame.git
synced 2026-10-20 19:01:29 +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>
68 lines
1.5 KiB
C++
68 lines
1.5 KiB
C++
#pragma once
|
|
|
|
#include "Game/Ride/SpherePadController.hpp"
|
|
|
|
class SphereAccelSensorController : public SpherePadController {
|
|
public:
|
|
enum Pad {
|
|
Pad_Core = 0,
|
|
Pad_Sub = 1,
|
|
};
|
|
|
|
SphereAccelSensorController();
|
|
|
|
virtual f32 calcJumpPower() const;
|
|
virtual bool doBrake() const;
|
|
virtual void update(const TVec3f&);
|
|
virtual void clacXY(f32*, f32*);
|
|
|
|
void getPadAcceleration(TVec3f*) const;
|
|
bool testBrake() const;
|
|
|
|
bool isCorePad() const {
|
|
return mPad == Pad_Core;
|
|
}
|
|
|
|
// everything up to 0x58 seems like it may be inhereted memory
|
|
// however none of the inhereted classes use anything near
|
|
// this much memory. Unsure of what exactly this memory is...
|
|
u32 _08, _0C;
|
|
u32 _10, _14, _18, _1C;
|
|
u32 _20, _24, _28, _2C;
|
|
u32 _30, _34, _38, _3C;
|
|
u32 _40, _44, _48, _4C;
|
|
u32 _50, _54;
|
|
|
|
/* 0x58 */ u32 _58;
|
|
/* 0x5C */ u32 _5C;
|
|
|
|
/* 0x60 */ u32 _60;
|
|
/* 0x64 */ u32 _64;
|
|
/* 0x68 */ u32 _68;
|
|
/* 0x6C */ u32 _6C;
|
|
/* 0x70 */ u32 _70;
|
|
|
|
/* 0x74 */ u32 _74;
|
|
/* 0x78 */ u32 _78;
|
|
|
|
/* 0x7C */ f32 _7C;
|
|
/* 0x80 */ f32 _80;
|
|
/* 0x84 */ f32 _84;
|
|
/* 0x88 */ f32 _88;
|
|
|
|
/* 0x8C */ u32 _8C;
|
|
/* 0x90 */ u32 _90;
|
|
|
|
/* 0x94 */ f32 _94;
|
|
/* 0x98 */ f32 _98;
|
|
/* 0x9C */ f32 _9C;
|
|
/* 0xA0 */ f32 _A0;
|
|
/* 0xA4 */ f32 _A4;
|
|
/* 0xA8 */ f32 _A8;
|
|
/* 0xAC */ f32 _AC;
|
|
|
|
/* 0xB0 */ u16 _B0;
|
|
/* 0xB4 */ f32 _B4;
|
|
/* 0xB8 */ Pad mPad; // determines whether wiimote or nunchuck is used for control
|
|
};
|