mirror of
https://github.com/PodeCaradox/GalaxyQuest-SteamFrame.git
synced 2026-10-21 12:01:23 +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>
63 lines
1.8 KiB
C++
63 lines
1.8 KiB
C++
#pragma once
|
|
|
|
#include "Game/LiveActor/LiveActor.hpp"
|
|
|
|
class MarblePlanetElectron;
|
|
class MarblePlanetElectronShadow;
|
|
class ModelObj;
|
|
|
|
class MarblePlanet : public LiveActor {
|
|
public:
|
|
MarblePlanet(const char*);
|
|
|
|
virtual ~MarblePlanet();
|
|
virtual void init(const JMapInfoIter&);
|
|
virtual void kill();
|
|
virtual void startClipped();
|
|
virtual void endClipped();
|
|
virtual bool receiveMsgEnemyAttack(u32, HitSensor*, HitSensor*);
|
|
|
|
void exeWait();
|
|
void exeScaleUpCore();
|
|
void exeBreakCore();
|
|
void initCoreAndElectron();
|
|
|
|
ModelObj* mCorePlanetModel; // 0x8C
|
|
MarblePlanetElectron** mPlanetElectrons; // 0x90
|
|
CollisionParts* mWatermelonCollision; // 0x94
|
|
s32 mNumElectrons; // 0x98
|
|
s32 mRemainingElectrons; // 0x9C
|
|
};
|
|
|
|
class MarblePlanetElectron : public LiveActor {
|
|
public:
|
|
MarblePlanetElectron(LiveActor*, const TVec3f&, const TVec3f&, const char*);
|
|
|
|
virtual ~MarblePlanetElectron();
|
|
virtual void init(const JMapInfoIter&);
|
|
virtual void control();
|
|
virtual void attackSensor(HitSensor*, HitSensor*);
|
|
virtual bool receiveMsgPush(HitSensor*, HitSensor*);
|
|
virtual bool receiveMsgPlayerAttack(u32, HitSensor*, HitSensor*);
|
|
|
|
void exeMove();
|
|
void exeAttack();
|
|
void crashElectron(HitSensor*);
|
|
|
|
MarblePlanet* mParentPlanet; // 0x8C
|
|
MarblePlanetElectronShadow* mElectronShadow; // 0x90
|
|
TVec3f _94;
|
|
};
|
|
|
|
class MarblePlanetElectronShadow : public LiveActor {
|
|
public:
|
|
MarblePlanetElectronShadow(LiveActor*, const TVec3f&, const char*);
|
|
|
|
virtual ~MarblePlanetElectronShadow();
|
|
virtual void init(const JMapInfoIter&);
|
|
virtual void calcAndSetBaseMtx();
|
|
|
|
MarblePlanetElectron* mParentElectron; // 0x8C
|
|
const TVec3f* _90;
|
|
};
|