mirror of
https://github.com/PodeCaradox/GalaxyQuest-SteamFrame.git
synced 2026-10-19 10: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>
64 lines
1.7 KiB
C++
64 lines
1.7 KiB
C++
#pragma once
|
|
|
|
#include "Game/LiveActor/LiveActor.hpp"
|
|
|
|
class FlashingCtrl;
|
|
class MapPartsRailMover;
|
|
class NameObjArchiveListCollector;
|
|
class PartsModel;
|
|
|
|
class ChipBase : public LiveActor {
|
|
public:
|
|
enum Type { Type_Blue = 0, Type_Yellow = 1 };
|
|
|
|
ChipBase(const char*, s32, const char*);
|
|
|
|
virtual ~ChipBase() {
|
|
}
|
|
|
|
virtual void init(const JMapInfoIter&);
|
|
virtual void initAfterPlacement();
|
|
virtual void makeActorAppeared();
|
|
virtual void makeActorDead();
|
|
virtual void control();
|
|
virtual bool receiveOtherMsg(u32, HitSensor*, HitSensor*);
|
|
|
|
void initModel(const JMapInfoIter&);
|
|
void initSensor();
|
|
void initShadow(const JMapInfoIter&);
|
|
void initJMapParam(const JMapInfoIter&);
|
|
void deactive();
|
|
void setGroupID(s32);
|
|
void setHost(LiveActor*);
|
|
void appearWait();
|
|
void appearFlashing(s32);
|
|
bool requestGet(HitSensor*, HitSensor*);
|
|
bool requestShow();
|
|
bool requestHide();
|
|
bool requestStartControl();
|
|
bool requestEndControl();
|
|
void exeDeactive();
|
|
void exeWait();
|
|
void exeControled();
|
|
void exeFlashing();
|
|
void exeHide();
|
|
bool hasAirBubble() const {
|
|
return mAirBubble != nullptr;
|
|
}
|
|
void exeGot();
|
|
bool isGettable() const;
|
|
static bool isNeedBubble(const JMapInfoIter&);
|
|
static void makeArchiveList(NameObjArchiveListCollector*, const JMapInfoIter&);
|
|
|
|
/* 0x8C */ FlashingCtrl* mFlashingCtrl;
|
|
/* 0x90 */ MapPartsRailMover* mRailMover;
|
|
/* 0x94 */ PartsModel* mAirBubble;
|
|
/* 0x98 */ const char* mChipName;
|
|
/* 0x9C */ LiveActor* mHost;
|
|
/* 0xA0 */ TVec3f mClippingRange;
|
|
/* 0xAC */ s32 mGroupID;
|
|
/* 0xB0 */ s32 mChipType;
|
|
/* 0xB4 */ bool _B4;
|
|
/* 0xB5 */ bool mIsCalcShadow;
|
|
};
|