mirror of
https://github.com/PodeCaradox/GalaxyQuest-SteamFrame.git
synced 2026-10-23 21:01:42 +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>
71 lines
1.9 KiB
C++
71 lines
1.9 KiB
C++
#pragma once
|
|
|
|
#include "Game/LiveActor/LiveActor.hpp"
|
|
#include <JSystem/JGeometry/TMatrix.hpp>
|
|
|
|
class ActorCameraInfo;
|
|
|
|
class Pole : public LiveActor {
|
|
public:
|
|
Pole(const char*);
|
|
|
|
virtual void init(const JMapInfoIter&);
|
|
virtual void appear();
|
|
virtual void calcAnim();
|
|
virtual void attackSensor(HitSensor*, HitSensor*);
|
|
virtual bool receiveMsgEnemyAttack(u32, HitSensor*, HitSensor*);
|
|
virtual bool receiveOtherMsg(u32, HitSensor*, HitSensor*);
|
|
virtual MtxPtr getBaseMtx() const {
|
|
if (mNoModel) {
|
|
return (MtxPtr)&mBaseMtx;
|
|
} else {
|
|
return LiveActor::getBaseMtx();
|
|
}
|
|
}
|
|
|
|
void exeDemoAppear();
|
|
void exeFree();
|
|
void exeFreeInvalid();
|
|
void exeBindStart();
|
|
void exeBindWait();
|
|
void exeBindTurn();
|
|
void exeBindClimbUp();
|
|
void exeBindFallDown();
|
|
void exeBindHandstandStart();
|
|
void exeBindHandstandWait();
|
|
void exeBindHandstandEnd();
|
|
void exeBindHandstandTurn();
|
|
bool tryJump(bool, f32);
|
|
bool tryTurn();
|
|
bool tryClimbUp();
|
|
bool tryFallDown();
|
|
bool tryHandstandTurn();
|
|
bool isEnableTurn() const;
|
|
void updateBindTrans();
|
|
void calcGravityMtx(TPos3f*);
|
|
void updateTopPos(f32);
|
|
f32 getPoleSubPadStickX() const;
|
|
f32 getPoleSubPadStickY() const;
|
|
|
|
/* 0x8C */ TVec3f mBasePos;
|
|
/* 0x98 */ TVec3f mTopPos;
|
|
/* 0xA4 */ f32 mHeight;
|
|
/* 0xA8 */ bool mDisableHandstand;
|
|
/* 0xA9 */ bool mIsSquare;
|
|
/* 0xAA */ bool mNoModel;
|
|
/* 0xAB */ bool mInvertStick;
|
|
/* 0xAC */ bool mUsePole9mCollision;
|
|
/* 0xB0 */ f32 mClimbCoord;
|
|
/* 0xB4 */ f32 mClimbSpeed;
|
|
/* 0xB8 */ LiveActor* mRider;
|
|
/* 0xBC */ ActorCameraInfo* mCameraInfo;
|
|
/* 0xC0 */ TVec3f mCenterPos;
|
|
/* 0xCC */ TVec3f mSide;
|
|
/* 0xD8 */ TVec3f mUp;
|
|
/* 0xE4 */ TVec3f mFront;
|
|
/* 0xF0 */ TPos3f mPosMtx;
|
|
/* 0x120 */ MtxPtr mTopMtx;
|
|
/* 0x124 */ MtxPtr mBottomMtx;
|
|
/* 0x128 */ TMtx34f mBaseMtx;
|
|
};
|