diff options
| author | Aetias <aetias@outlook.com> | 2025-01-25 14:35:02 +0100 |
|---|---|---|
| committer | Aetias <aetias@outlook.com> | 2025-01-25 14:35:02 +0100 |
| commit | aecd9545577a9faf3fe8a578a64872aa4b93a4cd (patch) | |
| tree | 3e9470e0c440660687d71101e873d3d07c83bbbd /include | |
| parent | 1983e335f6a53d78cadc2fcf0ae683c773334369 (diff) | |
Move ov004 documentation from Ghidra
Diffstat (limited to 'include')
26 files changed, 128 insertions, 6 deletions
diff --git a/include/Actor/ActorManager.hpp b/include/Actor/ActorManager.hpp index 6d3cce71..fd246f37 100644 --- a/include/Actor/ActorManager.hpp +++ b/include/Actor/ActorManager.hpp @@ -93,6 +93,18 @@ public: void func_ov00_020c3ce8(unk32 param1, bool param2); void Actor_vfunc_28(); static bool ActorTypeIsOneOf(ActorTypeId type, const ActorTypeId *types); + + static void Create(); + static void Destroy(); + ActorManager(); + ~ActorManager(); + void func_ov004_0210532c(); + void func_ov004_021053dc(); + void func_ov004_021054a4(s32 *param1, s32 param2, unk32 param3); + void func_ov004_0210554c(); + bool func_ov004_02105578(unk32 param1); + bool func_ov004_02105608(unk32 param1, unk32 param2, unk32 param3); + void func_ov004_021056b8(); }; extern ActorManager *gActorManager; diff --git a/include/Actor/Navi/ActorNaviBase.hpp b/include/Actor/Navi/ActorNaviBase.hpp index 311de7c0..e0c7c120 100644 --- a/include/Actor/Navi/ActorNaviBase.hpp +++ b/include/Actor/Navi/ActorNaviBase.hpp @@ -12,7 +12,8 @@ class ActorNaviBase : public Actor { /* 000 (base) */ /* 158 */ Vec3p mUnk_158; /* 164 */ unk32 mUnk_164; - /* 168 */ unk8 mUnk_168[0x68]; + /* 168 */ ModelRender mUnk_168; + /* 1c4 */ unk8 mUnk_1c4[0xc]; /* 1d0 */ void *mUnk_1d0; /* 1d4 */ unk8 mUnk_1d4[0x30]; /* 214 */ unk16 mUnk_214; @@ -98,4 +99,6 @@ class ActorNaviBase : public Actor { void func_ov000_020bad18(); static void func_ov000_020bb0ac(); static void func_ov000_020bb0e0(); + + ActorNaviBase(); }; diff --git a/include/Cutscene/CutsceneHandler.hpp b/include/Cutscene/CutsceneHandler.hpp index 50f0c1cb..035638a7 100644 --- a/include/Cutscene/CutsceneHandler.hpp +++ b/include/Cutscene/CutsceneHandler.hpp @@ -43,7 +43,6 @@ public: /* 88 */ s32 mUnk_88; /* 8c */ - CutsceneHandler(); s32 func_ov000_020980fc(unk32 param1, unk32 param2, void **param3); bool func_ov000_02098114(); bool SkipCutscene(s32 param1); @@ -58,4 +57,9 @@ public: bool func_ov000_02098860(); unk32 func_ov000_02098890(unk32 param1, s32 param2); static unk32 func_ov000_02098920(unk32 param1); + + CutsceneHandler(); + ~CutsceneHandler(); + void func_ov004_0210f3e4(s32 param1); + void func_ov004_0210f46c(); }; diff --git a/include/DTCM/UnkStruct_027e103c.hpp b/include/DTCM/UnkStruct_027e103c.hpp index 7761fb0e..339c9213 100644 --- a/include/DTCM/UnkStruct_027e103c.hpp +++ b/include/DTCM/UnkStruct_027e103c.hpp @@ -101,6 +101,18 @@ struct UnkStruct_027e103c { void func_ov000_020cfe40(unk8 param1, unk32 param2); void func_ov000_020cfe74(unk32 param1, unk32 param2); unk32 func_ov000_020cfea8(); + + UnkStruct_027e103c(); + ~UnkStruct_027e103c(); + static void Create(); + static void Destroy(); + void func_ov004_02104d68(); + static bool func_ov004_02104f5c(); + void func_ov004_02104f78(); + void func_ov004_02104fa8(); + void func_ov004_02104fb8(); + void func_ov004_02104ffc(unk32 param1, unk32 param2); + void func_ov004_0210504c(); }; extern UnkStruct_027e103c *data_027e103c; diff --git a/include/Debug/DebugHierarchy.hpp b/include/Debug/DebugHierarchy.hpp index 05ab803f..fcbc0f50 100644 --- a/include/Debug/DebugHierarchy.hpp +++ b/include/Debug/DebugHierarchy.hpp @@ -6,6 +6,10 @@ #include "Debug/DebugHierarchyBase.hpp" class DebugHierarchy : public DebugHierarchyBase { +public: /* 00 (base) */ /* 08 */ + + /* 00 */ ~DebugHierarchy() override; + /* 40 */ }; diff --git a/include/Debug/DebugHierarchyBase.hpp b/include/Debug/DebugHierarchyBase.hpp index 7ce7a2fc..5b4a175a 100644 --- a/include/Debug/DebugHierarchyBase.hpp +++ b/include/Debug/DebugHierarchyBase.hpp @@ -7,6 +7,7 @@ #include "System/SysNew.hpp" class DebugHierarchyBase : public SysObject { +public: /* 00 (vtable) */ /* 04 */ void *mNodes; /* 08 */ diff --git a/include/Item/ItemManager.hpp b/include/Item/ItemManager.hpp index d219c838..c0a84aa7 100644 --- a/include/Item/ItemManager.hpp +++ b/include/Item/ItemManager.hpp @@ -106,6 +106,7 @@ public: static void Destroy();
ItemManager();
~ItemManager();
+ void Init();
// Save/load
void Save(SaveItemManager *save);
@@ -116,6 +117,7 @@ public: ActorNavi *GetFairy(FairyId id) const;
u32 GetActiveFairyLevel(FairyId id) const;
u32 GetFairyLevel(FairyId id) const;
+ void SpawnFairies();
// Equip item
void ClearPrevEquippedItem();
@@ -134,6 +136,11 @@ public: bool ClearForcedEquipItem();
void UpdateSwordShieldInUse();
static EquipItem *GetEquipItemUnchecked(ItemFlag equipId);
+ void InitEquipItems();
+ void func_ov004_02107648();
+ void func_ov004_02107650();
+ void func_ov004_02107698();
+ void func_ov004_021076bc();
// Ammo
u16 GetAmmo(ItemFlag equipId) const;
diff --git a/include/Item/ItemModelLoader.hpp b/include/Item/ItemModelLoader.hpp index 0f470e6b..6b06893a 100644 --- a/include/Item/ItemModelLoader.hpp +++ b/include/Item/ItemModelLoader.hpp @@ -23,4 +23,7 @@ public: void func_ov000_020bb414(unk32 param1); void func_ov000_020bb420(unk32 param1); void func_ov000_020bb42c(unk32 param1); + + static void Create(); + static void Destroy(); }; diff --git a/include/Map/Course.hpp b/include/Map/Course.hpp index 8f87379c..b9b11904 100644 --- a/include/Map/Course.hpp +++ b/include/Map/Course.hpp @@ -111,4 +111,13 @@ class Course : public SysObject { bool GetMapDataFlag4(unk32 param_2); MapData *FindMapData(u32 map); MapData *FindCurrentMapData(); + + Course(); + ~Course(); + bool func_ov004_0210ee84(char *param1); + unk32 func_ov004_0210ef90(unk32 param1); + void func_ov004_0210f010(); + void LoadMapData(u8 *map, s32 x, s32 y, char param4, unk32 param5); + bool func_ov004_0210f0fc(unk32 param1, unk16 *param2, s32 param3); + void func_ov004_0210f140(s32 param1); }; diff --git a/include/Map/MapBase.hpp b/include/Map/MapBase.hpp index f85c782e..c92060a3 100644 --- a/include/Map/MapBase.hpp +++ b/include/Map/MapBase.hpp @@ -25,6 +25,7 @@ struct MapBase_Unk_180 { /* 4 */ ~MapBase_Unk_180(); + MapBase_Unk_180(); }; struct MapBase_Unk1 { @@ -234,4 +235,11 @@ public: void func_ov00_02080de4(); unk8 func_ov00_02080de8(unk32 param_2); void func_ov00_02080edc(); + + MapBase(u32 param1, u32 param2); + void func_ov004_0210c118(); + void func_ov004_0210cb1c(); + void func_ov004_0210cb38(); + void func_ov004_0210cc20(Course *course); + void func_ov004_0210cc58(Course *course, u32 map); }; diff --git a/include/Map/MapData.hpp b/include/Map/MapData.hpp index 35dbc007..a2343aa2 100644 --- a/include/Map/MapData.hpp +++ b/include/Map/MapData.hpp @@ -16,7 +16,9 @@ public: /* 06 */ unk8 mUnk_06[2]; /* 08 */ unk32 mUnk_08; /* 0c */ unk32 mUnk_0c; - /* 10 */ unk8 mUnk_10[4]; + /* 10 */ unk8 mGridX; + /* 11 */ unk8 mGridY; + /* 12 */ unk8 mUnk_12[2]; /* 14 */ Vec3p mCenter; /* 20 */ unk32 mFlags0[1]; /* 24 */ unk32 mFlags1[8]; @@ -25,7 +27,7 @@ public: /* 54 */ unk32 mFlags4[1]; /* 58 */ - MapData(u8 *map, unk8 param2, unk8 param3, unk32 param4, unk32 param5); + MapData(u8 *map, unk8 x, unk8 y, unk32 param4, unk32 param5); ~MapData(); void func_ov000_020972e4(u16 *param1, unk32 *param2, bool param3); void func_ov000_02097354(); diff --git a/include/Map/MapManager.hpp b/include/Map/MapManager.hpp index 0cfa7479..13ca4348 100644 --- a/include/Map/MapManager.hpp +++ b/include/Map/MapManager.hpp @@ -245,6 +245,16 @@ public: Vec3p *param_8); bool func_ov00_02086a84(s32 *param_2, Vec3p *param_3, Vec3p *param_4, s32 param_5, s32 param_6, unk32 param_7, Vec3p *param_8, Vec3p *param_9); + + MapManager(); + ~MapManager(); + static void Create(); + static void Destroy(); + static void LoadMapTexSprites(s32 param1); + void func_ov004_02102260(); + void func_ov004_02102264(unk32 *param1, char *param2); + void func_ov004_021024c4(s32 param1, unk32 param2, unk32 param3); + void func_ov004_021025d8(); }; extern MapManager *gMapManager; diff --git a/include/Player/LinkStateBase.hpp b/include/Player/LinkStateBase.hpp index f3ac5087..b7f7800a 100644 --- a/include/Player/LinkStateBase.hpp +++ b/include/Player/LinkStateBase.hpp @@ -127,6 +127,8 @@ public: s32 Get_PlayerLinkBase_Unk38(); DebugHierarchy *GetDebugHierarchy0(); DebugHierarchy *GetDebugHierarchy1(); + + LinkStateBase(PlayerLinkBase *link); }; LinkStateBase *GetLinkState(s32 index); diff --git a/include/Player/LinkStateCutscene.hpp b/include/Player/LinkStateCutscene.hpp index 52b40e42..3c343b94 100644 --- a/include/Player/LinkStateCutscene.hpp +++ b/include/Player/LinkStateCutscene.hpp @@ -96,4 +96,6 @@ public: void func_ov000_020b3278(s32 param1, s32 *param2); void func_ov000_020b35d8(s32 param1, s32 param2); void func_ov000_020b38dc(u32 param1, u32 param2); + + LinkStateCutscene(PlayerLinkBase *link); }; diff --git a/include/Player/LinkStateDamage.hpp b/include/Player/LinkStateDamage.hpp index 1c59d90e..0e3a70a7 100644 --- a/include/Player/LinkStateDamage.hpp +++ b/include/Player/LinkStateDamage.hpp @@ -48,4 +48,6 @@ class LinkStateDamage : public LinkStateBase { void func_ov00_020ace90(Vec3p *param1, unk32 param2); void func_ov00_020acfe8(bool param1); + + LinkStateDamage(PlayerLinkBase *link); }; diff --git a/include/Player/LinkStateFollow.hpp b/include/Player/LinkStateFollow.hpp index 09de008e..1d9a5403 100644 --- a/include/Player/LinkStateFollow.hpp +++ b/include/Player/LinkStateFollow.hpp @@ -37,4 +37,6 @@ public: LinkStateCutscene *GetLinkStateCutscene(); bool func_ov00_020a9180(Vec3p *param1); bool func_ov00_020a9210(Vec3p *param1, Actor *param2); + + LinkStateFollow(PlayerLinkBase *link); }; diff --git a/include/Player/LinkStateInteract.hpp b/include/Player/LinkStateInteract.hpp index 55081c8a..d0bacf2d 100644 --- a/include/Player/LinkStateInteract.hpp +++ b/include/Player/LinkStateInteract.hpp @@ -53,4 +53,6 @@ public: void func_ov00_020abc18(ActorRef *ref); bool func_ov00_020abc40(); bool func_ov00_020abc78(ActorRef *ref); + + LinkStateInteract(PlayerLinkBase *link); }; diff --git a/include/Player/LinkStateItem.hpp b/include/Player/LinkStateItem.hpp index 0c5f4a4d..d9c6659b 100644 --- a/include/Player/LinkStateItem.hpp +++ b/include/Player/LinkStateItem.hpp @@ -50,4 +50,6 @@ public: static EquipBombchu *GetEquipBombchu(); static LinkStateMove *GetLinkStateMove(); bool func_ov00_020abf70(); + + LinkStateItem(PlayerLinkBase *link); }; diff --git a/include/Player/LinkStateMove.hpp b/include/Player/LinkStateMove.hpp index e56eee3c..a8f8d846 100644 --- a/include/Player/LinkStateMove.hpp +++ b/include/Player/LinkStateMove.hpp @@ -29,4 +29,6 @@ public: bool func_ov00_020a8f2c(); bool func_ov00_020a8f4c(); + + LinkStateMove(PlayerLinkBase *link); }; diff --git a/include/Player/LinkStateRoll.hpp b/include/Player/LinkStateRoll.hpp index 52b42b43..3185f511 100644 --- a/include/Player/LinkStateRoll.hpp +++ b/include/Player/LinkStateRoll.hpp @@ -43,4 +43,6 @@ public: void func_ov00_020aee58(s16 param1, u16 param2); void func_ov00_020aee84(); bool func_ov00_020aeeac(); + + LinkStateRoll(PlayerLinkBase *link); }; diff --git a/include/Player/PlayerBase.hpp b/include/Player/PlayerBase.hpp index 578f3e27..893335bb 100644 --- a/include/Player/PlayerBase.hpp +++ b/include/Player/PlayerBase.hpp @@ -57,6 +57,8 @@ public: bool EquipCollidesWith(Cylinder *cylinder, ItemFlag equipId); s32 EquipItem_vfunc_2c(); void SetHealth(s16 health); + + PlayerBase(); }; extern PlayerBase *gPlayer; diff --git a/include/Player/PlayerControl.hpp b/include/Player/PlayerControl.hpp index d8db3f65..f2cc23eb 100644 --- a/include/Player/PlayerControl.hpp +++ b/include/Player/PlayerControl.hpp @@ -130,6 +130,14 @@ public: void func_ov000_020b7924(s32 param1); void ApplyTouchWorld(Vec3p *result, unk32 scale); bool func_ov000_020b7d6c(); + + PlayerControl(); + ~PlayerControl(); + static void Create(); + static void Destroy(); + void Init(); + void func_ov004_0210b1d0(); + static void func_ov004_0210b1f0(); }; extern PlayerControl *gPlayerControl; diff --git a/include/Player/PlayerControlData.hpp b/include/Player/PlayerControlData.hpp index f309953c..99802698 100644 --- a/include/Player/PlayerControlData.hpp +++ b/include/Player/PlayerControlData.hpp @@ -102,4 +102,6 @@ public: void func_ov000_020b484c(s32 param1, s32 param2, s32 param3); void func_ov000_020b4944(unk32 param1, u32 param2, s32 param3); void func_ov000_020b4a00(s32 *param1, s32 *param2, s32 *param3, s32 param4); + + PlayerControlData(); }; diff --git a/include/Player/PlayerLinkBase.hpp b/include/Player/PlayerLinkBase.hpp index b617920b..e167d4d5 100644 --- a/include/Player/PlayerLinkBase.hpp +++ b/include/Player/PlayerLinkBase.hpp @@ -152,6 +152,8 @@ public: void SetPosition(Vec3p *position); void SetAngle(s16 *angle); bool func_ov000_020bd510(s32 param1, unk32 *param2); + + PlayerLinkBase(); }; extern PlayerLinkBase *gPlayerLink; diff --git a/include/Player/HealthManager.hpp b/include/Player/PlayerManager.hpp index 7e36decc..63d4b303 100644 --- a/include/Player/HealthManager.hpp +++ b/include/Player/PlayerManager.hpp @@ -6,7 +6,7 @@ #include "Save/SaveItemManager.hpp" #include "System/SysNew.hpp" -class HealthManager : public SysObject { +class PlayerManager : public SysObject { public: /* 00 */ u16 mMaxHealth; /* 02 */ u16 mHealth; @@ -22,6 +22,13 @@ public: void Save(SaveItemManager *save); void IncreaseMaxHealth(s16 amount); void UpdateShipMaxHealth(); + + static void Create(); + static void Destroy(); + PlayerManager(); + ~PlayerManager(); + void Init(bool param1); + void func_ov004_02108008(); }; -extern HealthManager *gHealthManager; +extern PlayerManager *gPlayerManager; diff --git a/include/Save/AdventureFlags.hpp b/include/Save/AdventureFlags.hpp index dc2b2bfa..b076cd73 100644 --- a/include/Save/AdventureFlags.hpp +++ b/include/Save/AdventureFlags.hpp @@ -131,6 +131,16 @@ public: bool func_ov00_0209809c(); bool func_ov00_020980ac(); void func_ov00_020980bc(s32 param1); + + AdventureFlags(); + ~AdventureFlags(); + static void Create(); + static void Destroy(); + void func_ov004_021044f8(s32 param1); + void func_ov004_0210453c(); + bool func_ov004_0210455c(s32 param1); + void func_ov004_021046c8(unk32 param1); + void func_ov004_021046d4(); }; extern AdventureFlags *gAdventureFlags; |
