Files
bigmak94andClaude Opus 5.5 4b395efe5c Add the Petari decompilation (SMGCommunity/Petari@0a5c660)
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>
2026-10-01 01:59:38 +02:00

49 lines
1.4 KiB
C++

#pragma once
#include "Game/LiveActor/LiveActor.hpp"
class JUTTexture;
class SnowFloorTile : public LiveActor {
public:
SnowFloorTile(const char*);
virtual ~SnowFloorTile();
virtual void init(const JMapInfoIter&) override;
virtual void draw() const override;
virtual void control() override;
virtual void attackSensor(HitSensor*, HitSensor*) override;
void initLocalPoint(const JMapInfoIter&);
bool calcLocalPoint(const TVec3f&, TVec3f*, f32);
void createReduceMap(u16);
void digPlayerWalk(const TVec3f&);
void digDpd(const TVec3f&);
bool doErase(const TVec3f&, f32, f32);
f32 doMove(TVec2f, TVec2f, f32, f32);
void doErase(TVec2f, f32, f32);
void createTexture();
void drawLayer(s32) const;
/* 0x8C */ u8 _8C[12];
/* 0x98 */ TVec3f mRight;
/* 0xA4 */ TVec3f mUp;
/* 0xB0 */ TVec3f mForward;
/* 0xBC */ f32 mCellSize;
/* 0xC0 */ s32 mTextureShift;
/* 0xC4 */ s32 mTextureSize;
/* 0xC8 */ TVec2f mLastPlayerPoint;
/* 0xD0 */ u8 _D0[8];
/* 0xD8 */ u16 mDirtyFrames;
/* 0xDC */ u8* mImage;
/* 0xE0 */ JUTTexture* mTexture;
/* 0xE4 */ f32* mSnowDepth;
/* 0xE8 */ f32* mReduceMap;
/* 0xEC */ u16 mReduceMapSize;
/* 0xF0 */ TVec2f mLastDpdPoint;
/* 0xF8 */ u16 _F8;
/* 0xFC */ f32 _FC;
/* 0x100 */ JUTTexture* mTextures[2];
/* 0x108 */ u8 mTextureIndex;
};