mirror of
https://github.com/PodeCaradox/GalaxyQuest-SteamFrame.git
synced 2026-10-19 01:01:45 +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>
111 lines
3.1 KiB
C++
111 lines
3.1 KiB
C++
#pragma once
|
|
|
|
#include "Game/MapObj/MapObjActor.hpp"
|
|
|
|
class ActorCameraInfo;
|
|
|
|
class AnmModelObj : public MapObjActor {
|
|
public:
|
|
/// @brief Creates a new `AnmModelObj`.
|
|
/// @param pName A pointer to the null-terminated name of the object.
|
|
AnmModelObj(const char* pName);
|
|
|
|
virtual void init(const JMapInfoIter&);
|
|
virtual void control() {
|
|
}
|
|
virtual void initCaseUseSwitchA(const MapObjActorInitInfo&) {
|
|
}
|
|
virtual void initCaseNoUseSwitchA(const MapObjActorInitInfo&) {
|
|
}
|
|
virtual void initCaseUseSwitchB(const MapObjActorInitInfo&) {
|
|
}
|
|
virtual void initCaseNoUseSwitchB(const MapObjActorInitInfo&) {
|
|
}
|
|
virtual bool isOnStartAnmTrigger() const = 0;
|
|
virtual bool isDone() const;
|
|
virtual bool isKilledAtMoveDone() const {
|
|
return false;
|
|
}
|
|
virtual bool isRepeat() const {
|
|
return false;
|
|
}
|
|
virtual void startInner() {
|
|
}
|
|
virtual void moveInner() {
|
|
}
|
|
virtual void stopInner() {
|
|
}
|
|
|
|
void exeWait();
|
|
void exeMove();
|
|
void exeDone();
|
|
|
|
/* 0xC4 */ TVec3f mJointPos;
|
|
};
|
|
|
|
class AnmModelSwitchMove : public AnmModelObj {
|
|
public:
|
|
/// @brief Creates a new `AnmModelSwitchMove`.
|
|
/// @param pName A pointer to the null-terminated name of the object.
|
|
AnmModelSwitchMove(const char* pName);
|
|
|
|
virtual void init(const JMapInfoIter&);
|
|
virtual bool isOnStartAnmTrigger() const;
|
|
};
|
|
|
|
class AnmModelSwitchMoveEndKill : public AnmModelSwitchMove {
|
|
public:
|
|
/// @brief Creates a new `AnmModelSwitchMoveEndKill`.
|
|
/// @param pName A pointer to the null-terminated name of the object.
|
|
AnmModelSwitchMoveEndKill(const char* pName) : AnmModelSwitchMove(pName) {
|
|
}
|
|
|
|
virtual bool isKilledAtMoveDone() const;
|
|
};
|
|
|
|
class AnmModelGroundOnMove : public AnmModelObj {
|
|
public:
|
|
/// @brief Creates a new `AnmModelGroundOnMove`.
|
|
/// @param pName A pointer to the null-terminated name of the object.
|
|
AnmModelGroundOnMove(const char* pName);
|
|
|
|
virtual void init(const JMapInfoIter&);
|
|
virtual void control();
|
|
virtual bool isOnStartAnmTrigger() const;
|
|
virtual bool isKilledAtMoveDone() const {
|
|
return true;
|
|
}
|
|
};
|
|
|
|
class AnmModelBindMove : public AnmModelObj {
|
|
public:
|
|
/// @brief Creates a new `AnmModelBindMove`.
|
|
/// @param pName A pointer to the null-terminated name of the object.
|
|
AnmModelBindMove(const char* pName);
|
|
|
|
virtual void init(const JMapInfoIter&);
|
|
virtual void control();
|
|
virtual bool receiveOtherMsg(u32, HitSensor*, HitSensor*);
|
|
virtual bool isOnStartAnmTrigger() const;
|
|
virtual bool isKilledAtMoveDone() const {
|
|
return false;
|
|
}
|
|
virtual bool isRepeat() const {
|
|
return true;
|
|
}
|
|
};
|
|
|
|
class AnmModelSwitchMoveEventCamera : public AnmModelSwitchMove {
|
|
public:
|
|
/// @brief Creates a new `AnmModelSwitchMoveEventCamera`.
|
|
/// @param pName A pointer to the null-terminated name of the object.
|
|
AnmModelSwitchMoveEventCamera(const char* pName);
|
|
|
|
virtual void init(const JMapInfoIter&);
|
|
virtual bool isDone() const;
|
|
virtual void startInner();
|
|
virtual void stopInner();
|
|
|
|
/* 0xD0 */ ActorCameraInfo* mCameraInfo;
|
|
};
|