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

63 lines
1.3 KiB
C++

#pragma once
#include "Game/NPC/NPCActor.hpp"
#include <JSystem/JGeometry/TVec.hpp>
#include <revolution/types.h>
class LodCtrl;
class TalkMessageCtrl;
class Rabbit : public NPCActor {
public:
enum SeVersion {
SeVersion_NORMAL = 0,
SeVersion_WATER = 1,
};
enum Behavior {
Behavior_Wait = 0,
Behavior_Unknown = 1,
Behavior_Demo1 = 2,
Behavior_Demo2 = 3,
Behavior_UpJump = 4,
Behavior_LongJump = 5,
};
Rabbit(const char*);
virtual ~Rabbit();
virtual void init(const JMapInfoIter&);
virtual void control();
virtual void calcAndSetBaseMtx();
void calcRailPos(TVec3f*);
bool isNeedTurn(const TVec3f&);
void updateJump();
void exeAppear();
void exeAppearLand();
void exeWait();
void exeGoal();
void exeFinish();
void exeForwardLand();
void exePreJump();
void exeMove();
void exeBackwardLand();
void exePreJumpBack();
void exeNear();
void exeReaction();
void exeTalk();
void exeJumpV();
void exeJumpH();
/* 0x15C */ s32 mBehavior;
/* 0x160 */ bool _160;
/* 0x162 */ u16 _162;
/* 0x164 */ u16 _164;
/* 0x168 */ f32 _168;
/* 0x16C */ f32 _16C;
/* 0x170 */ f32 _170;
/* 0x174 */ TVec3f _174;
/* 0x180 */ f32 _180;
};