mirror of
https://github.com/PodeCaradox/GalaxyQuest-SteamFrame.git
synced 2026-10-22 16: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>
48 lines
1.6 KiB
C++
48 lines
1.6 KiB
C++
#pragma once
|
|
|
|
#include "Game/System/NerveExecutor.hpp"
|
|
|
|
/// @brief The state of a Prankster Comet.
|
|
class GalaxyCometState : NerveExecutor {
|
|
public:
|
|
/// @brief Creates a new `GalaxyCometState`.
|
|
GalaxyCometState();
|
|
|
|
/// @brief Updates the working nerve action.
|
|
void update();
|
|
|
|
/// @brief Determines if the Prankster Comet is in orbit.
|
|
/// @return `true` if the Prankster Comet is in orbit, `false` otherwise.
|
|
bool isLand() const;
|
|
|
|
/// @brief Determines if the Prankster Comet is hidden.
|
|
/// @return `true` if the Prankster Comet is hidden, `false` otherwise.
|
|
bool isHide() const;
|
|
|
|
/// @brief Transitions from the working nerve action into the next nerve action.
|
|
void forceToNext();
|
|
|
|
/// @brief Returns the index of the working nerve action.
|
|
/// @return The index of the working nerve action.
|
|
s32 getStateIndex() const;
|
|
|
|
/// @brief Returns the number of "past seconds."
|
|
/// @return The number of "past seconds."
|
|
s32 getPastSecond() const;
|
|
|
|
/// @brief Transitions from the working nerve action into the given nerve action.
|
|
/// @param state The index of the target nerve action.
|
|
/// @param pastSecond The number of "past seconds."
|
|
void setStateAndPastSecond(int state, u16 pastSecond);
|
|
|
|
/// @brief Updates the working nerve action when the Prankster Comet is hidden.
|
|
void exeHide();
|
|
|
|
/// @brief Updates the working nerve action when the Prankster Comet is in orbit.
|
|
void exeLand();
|
|
|
|
private:
|
|
/// @brief Determines if the working nerve action should be updated.
|
|
/* 0x08 */ bool mIsUpdateNerve;
|
|
};
|