Quest log doc cleanup
This commit is contained in:
+26
-39
@@ -8,23 +8,14 @@
|
||||
#include "constants/battle.h"
|
||||
|
||||
// Layout of Quest Log script commands
|
||||
#define QL_CMD_EVENT_MASK 0x0FFF
|
||||
#define QL_CMD_UNK_MASK 0xF000
|
||||
#define QL_CMD_UNK_SHIFT 12
|
||||
#define QL_CMD_EVENT_MASK 0x0FFF
|
||||
#define QL_CMD_COUNT_SHIFT 12
|
||||
#define QL_CMD_COUNT_MASK (0xF << QL_CMD_COUNT_SHIFT)
|
||||
|
||||
// Parameter to QuestLog_OnEscalatorWarp
|
||||
#define QL_ESCALATOR_OUT 1
|
||||
#define QL_ESCALATOR_IN 2
|
||||
|
||||
// This struct represents the basic building blocks of what happens during a Quest Log scene.
|
||||
// Once a scene has been set up, it will run through the list of actions to animate the scene.
|
||||
// During a particular scene, there are 3 possible actions:
|
||||
// - QL_ACTION_MOVEMENT: A character (including the player) moved
|
||||
// - QL_ACTION_GFX_CHANGE: The player's avatar changed graphics (e.g. they started surfing)
|
||||
// - QL_ACTION_INPUT: The player made an input (e.g. they pressed A/B/dpad)
|
||||
// There are additional action types used internally:
|
||||
// -
|
||||
//
|
||||
struct QuestLogAction
|
||||
{
|
||||
union {
|
||||
@@ -47,11 +38,11 @@ struct QuestLogAction
|
||||
u8 type;
|
||||
};
|
||||
|
||||
struct UnkStruct_203B044
|
||||
struct QuestLogRepeatEventTracker
|
||||
{
|
||||
u8 id;
|
||||
u8 unk_1;
|
||||
u16 unk_2;
|
||||
u8 numRepeats;
|
||||
u16 counter;
|
||||
};
|
||||
|
||||
// Event data structs
|
||||
@@ -177,14 +168,11 @@ struct QuestLogEvent_StoryItem
|
||||
u8 mapSec;
|
||||
};
|
||||
|
||||
//
|
||||
|
||||
|
||||
extern u8 gQuestLogState;
|
||||
extern u8 gQuestLogPlaybackState;
|
||||
extern struct FieldInput gQuestLogFieldInput;
|
||||
extern struct UnkStruct_203B044 gUnknown_203B044;
|
||||
extern u16 *gUnknown_203AE04;
|
||||
extern struct QuestLogRepeatEventTracker gQuestLogRepeatEventTracker;
|
||||
extern u16 *gQuestLogDefeatedWildMonRecord;
|
||||
extern u16 *gQuestLogRecordingPointer;
|
||||
extern u16 gQuestLogCurActionIdx;
|
||||
|
||||
@@ -192,7 +180,7 @@ void QuestLogRecordPlayerAvatarGfxTransition(u8);
|
||||
void SetQuestLogEvent(u16, const u16 *);
|
||||
void SetQLPlayedTheSlots(void);
|
||||
void QuestLog_RecordEnteredMap(u16);
|
||||
u8 sub_8112CAC(void);
|
||||
u8 QL_GetPlaybackState(void);
|
||||
bool8 QL_AvoidDisplay(void (*func)(void));
|
||||
void QuestLog_BackUpPalette(u16 offset, u16 size);
|
||||
void CommitQuestLogWindow1(void);
|
||||
@@ -202,16 +190,15 @@ void ResetTrainerFanClub(void);
|
||||
void TryStartQuestLogPlayback(u8 taskId);
|
||||
void SaveQuestLogData(void);
|
||||
void QuestLog_CutRecording(void);
|
||||
u8 sub_8112CAC(void);
|
||||
void ResetDeferredLinkEvent(void);
|
||||
void QL_FinishRecordingScene(void);
|
||||
void QuestLogEvents_HandleEndTrainerBattle(void);
|
||||
void *QuestLogGetFlagOrVarPtr(bool8 isFlag, u16 idx);
|
||||
void QuestLogSetFlagOrVar(bool8 isFlag, u16 idx, u16 value);
|
||||
void SetQuestLogRecordAndPlaybackPointers(void *oldSave);
|
||||
void sub_811246C(struct Sprite *sprite);
|
||||
void QL_AddASLROffset(void *oldSaveBlockPtr);
|
||||
void QL_UpdateObject(struct Sprite *sprite);
|
||||
void QuestLogRecordNPCStep(u8 a0, u8 a1, u8 a2, u8 a3);
|
||||
bool8 sub_8111C2C(void);
|
||||
bool8 QL_IsTrainerSightDisabled(void);
|
||||
void QuestLog_OnEscalatorWarp(u8 direction);
|
||||
void QuestLogRecordPlayerAvatarGfxTransitionWithDuration(u8 movementActionId, u8 duration);
|
||||
void Special_UpdateTrainerFansAfterLinkBattle(void);
|
||||
@@ -219,27 +206,27 @@ void QuestLogRecordPlayerStep(u8 movementActionId);
|
||||
void QuestLogRecordPlayerStepWithDuration(u8 movementActionId, u8 duration);
|
||||
void QuestLogRecordNPCStepWithDuration(u8 localId, u8 mapNum, u8 mapGroup, u8 movementActionId, u8 duration);
|
||||
void QL_AfterRecordFishActionSuccessful(void);
|
||||
void sub_8110920(void);
|
||||
void QL_ResetDefeatedWildMonRecord(void);
|
||||
void QL_RestoreMapLayoutId(void);
|
||||
void sub_81127F8(struct FieldInput * a0);
|
||||
void sub_8112B3C(void);
|
||||
void QL_RecordFieldInput(struct FieldInput * fieldInput);
|
||||
void QL_TryRunActions(void);
|
||||
void RunQuestLogCB(void);
|
||||
void HandleQuestLogInput(void);
|
||||
void QL_HandleInput(void);
|
||||
bool8 QuestLogScenePlaybackIsEnding(void);
|
||||
void SetQuestLogEvent_Arrived(void);
|
||||
bool8 QuestLog_ShouldEndSceneOnMapChange(void);
|
||||
void QuestLog_AdvancePlayhead_(void);
|
||||
void QuestLog_InitPalettesBackup(void);
|
||||
void sub_8110FCC(void);
|
||||
void QL_InitSceneObjectsAndActions(void);
|
||||
u8 GetQuestLogStartType(void);
|
||||
void sub_81113E4(void);
|
||||
void sub_8111438(void);
|
||||
void StartRecordingQuestLogAction(u16 eventId);
|
||||
void QL_CopySaveState(void);
|
||||
void QL_ResetPartyAndPC(void);
|
||||
void QL_StartRecordingAction(u16 eventId);
|
||||
bool8 QL_IsRoomToSaveAction(const void *cursor, size_t size);
|
||||
bool8 QL_IsRoomToSaveEvent(const void *cursor, size_t size);
|
||||
|
||||
void sub_8113BD8(void);
|
||||
void ResetUnk203B044(void);
|
||||
void QL_ResetEventStates(void);
|
||||
void QL_ResetRepeatEventTracker(void);
|
||||
u16 *QL_RecordAction_SceneEnd(u16 *);
|
||||
u16 *QL_LoadAction_Wait(u16 *, struct QuestLogAction *);
|
||||
u16 *QL_RecordAction_Input(u16 *, struct QuestLogAction *);
|
||||
@@ -247,11 +234,11 @@ u16 *QL_LoadAction_Input(u16 *, struct QuestLogAction *);
|
||||
u16 *QL_RecordAction_MovementOrGfxChange(u16 *, struct QuestLogAction *);
|
||||
u16 *QL_LoadAction_MovementOrGfxChange(u16 *, struct QuestLogAction *);
|
||||
void QL_EnableRecordingSteps(void);
|
||||
u16 *QuestLog_SkipCommand(u16 *, u16 **);
|
||||
void sub_8113ABC(const u16 *);
|
||||
u16 *QL_SkipCommand(u16 *, u16 **);
|
||||
void QL_UpdateLastDepartedLocation(const u16 *);
|
||||
u16 *QL_LoadAction_SceneEnd(u16 *, struct QuestLogAction *);
|
||||
bool8 sub_8113AE8(const u16 *);
|
||||
bool8 sub_8113B44(const u16 *);
|
||||
bool8 QL_LoadEvent(const u16 *);
|
||||
bool8 QL_TryRepeatEvent(const u16 *);
|
||||
void QL_RecordWait(u16);
|
||||
|
||||
#endif //GUARD_QUEST_LOG_H
|
||||
|
||||
Reference in New Issue
Block a user