mirror of
https://github.com/PodeCaradox/GalaxyQuest-SteamFrame.git
synced 2026-10-18 21: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>
45 lines
1.0 KiB
C++
45 lines
1.0 KiB
C++
#pragma once
|
|
|
|
#include <JSystem/JGeometry/TVec.hpp>
|
|
#include <revolution/types.h>
|
|
|
|
class LiveActor;
|
|
class SensorGroup;
|
|
|
|
class HitSensor {
|
|
public:
|
|
HitSensor(u32 type, u16 groupSize, f32 radius, LiveActor* pHost);
|
|
|
|
bool receiveMessage(u32 msg, HitSensor* pSender);
|
|
void setType(u32);
|
|
bool isType(u32) const;
|
|
void validate();
|
|
void invalidate();
|
|
void validateBySystem();
|
|
void invalidateBySystem();
|
|
void addHitSensor(HitSensor* pSensor);
|
|
|
|
const TVec3f& getPosition() const {
|
|
return mPosition;
|
|
}
|
|
|
|
f32 getRadius() const {
|
|
return mRadius;
|
|
}
|
|
|
|
inline bool isValid() const {
|
|
return mValidByHost && mValidBySystem;
|
|
}
|
|
|
|
/* 0x00 */ u32 mType;
|
|
/* 0x04 */ TVec3f mPosition;
|
|
/* 0x10 */ f32 mRadius;
|
|
/* 0x14 */ u16 mSensorCount;
|
|
/* 0x16 */ u16 mGroupSize;
|
|
/* 0x18 */ HitSensor** mSensors;
|
|
/* 0x1C */ SensorGroup* mSensorGroup;
|
|
/* 0x20 */ bool mValidBySystem;
|
|
/* 0x21 */ bool mValidByHost;
|
|
/* 0x24 */ LiveActor* mHost;
|
|
};
|