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/Player/PlayerManager.hpp | |
| parent | 1983e335f6a53d78cadc2fcf0ae683c773334369 (diff) | |
Move ov004 documentation from Ghidra
Diffstat (limited to 'include/Player/PlayerManager.hpp')
| -rw-r--r-- | include/Player/PlayerManager.hpp | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/include/Player/PlayerManager.hpp b/include/Player/PlayerManager.hpp new file mode 100644 index 00000000..63d4b303 --- /dev/null +++ b/include/Player/PlayerManager.hpp @@ -0,0 +1,34 @@ +#pragma once + +#include "global.h" +#include "types.h" + +#include "Save/SaveItemManager.hpp" +#include "System/SysNew.hpp" + +class PlayerManager : public SysObject { +public: + /* 00 */ u16 mMaxHealth; + /* 02 */ u16 mHealth; + /* 04 */ s16 mMaxShipHealth; + /* 06 */ s16 mShipHealth; + /* 08 */ u16 mSalvageArmHealth; + /* 0a */ s16 mFlags; + /* 0c */ unk16 mUnk_0c; + /* 0e */ unk8 mUnk_0e; + /* 0f */ unk8 mUnk_0f; + /* 10 */ + + 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 PlayerManager *gPlayerManager; |
