diff options
| author | robojumper <robojumper@gmail.com> | 2025-05-22 10:20:49 +0200 |
|---|---|---|
| committer | robojumper <robojumper@gmail.com> | 2025-05-22 10:20:49 +0200 |
| commit | 180eab5360cc7fb7564d90ea4c41cb4e80b67293 (patch) | |
| tree | 6fceb2d38566744319e16bde8c9f1cff9549d2eb /include | |
| parent | bed178f1e6fbba9ebb9eb23f182d920c3afbdaae (diff) | |
Some matches
Diffstat (limited to 'include')
| -rw-r--r-- | include/d/a/d_a_player.h | 35 | ||||
| -rw-r--r-- | include/d/d_pouch.h | 1 | ||||
| -rw-r--r-- | include/m/m3d/m_anmchr.h | 5 |
3 files changed, 23 insertions, 18 deletions
diff --git a/include/d/a/d_a_player.h b/include/d/a/d_a_player.h index c379de1b..305e9363 100644 --- a/include/d/a/d_a_player.h +++ b/include/d/a/d_a_player.h @@ -30,6 +30,7 @@ #include "nw4r/g3d/res/g3d_resmdl.h" #include "nw4r/math/math_types.h" #include "toBeSorted/file_manager.h" +#include "toBeSorted/minigame_mgr.h" #include "toBeSorted/stage_render_stuff.h" // See Below for some info @@ -58,7 +59,7 @@ struct PlayerAnimation { */ // Vtable at 80533128, no differences to dAcObjBase_c? - +// Name unknown, though this name exists in NSMBW class daPlBase_c : public dAcObjBase_c { public: virtual ~daPlBase_c() {} @@ -190,16 +191,8 @@ private: daPlayerModelBase_c *mpPlayer; }; -class UnkPlayerClass { -public: - UnkPlayerClass() {} - ~UnkPlayerClass() {} - -private: - /* 0x00 */ u8 _0x00[0x10 - 0x00]; -}; - // Does this one have a vtable? +// Name unknown class daPlayerActBase_c : public daPlBase_c { public: daPlayerActBase_c() : field_0x334(120.0f), mCurrentAction(187) {} @@ -800,8 +793,6 @@ public: static s32 getCurrentSwordType(); static const char *getSwordName(s32); static s32 getCurrentlyEquippedShieldType(); - static s32 getCurrentlyEquippedShieldId(); - static u32 getCurrentShieldPouchSlot(); static const mColor &getEarringsColor(); @@ -833,7 +824,7 @@ protected: }; // Vtable at 8050da00, dtor reveals two superclasses -// until dAcObjBase_c +// until dAcObjBase_c. Name unknown class daPlayerModelBase_c : public daPlayerActBase_c { public: daPlayerModelBase_c() @@ -920,7 +911,7 @@ public: void fn_8005F890(nw4r::math::MTX34 *); void fn_8005FB90(nw4r::math::MTX34 *); - void fn_80061410(); + bool fn_80061410(); static void freeFrmHeap(mHeapAllocator_c *allocator); static void allocFrmHeap(mHeapAllocator_c *allocator, u32 size, const char *name); @@ -942,6 +933,10 @@ public: static bool isBodyAnmPart_0_2_4(s32 part); + static u32 getCurrentShieldPouchSlot(); + static s32 getShieldType(s32 item); + static s32 getCurrentlyEquippedShieldId(); + void updateEarringsColor(); void loadBodyModels(); void loadBody(); @@ -1009,7 +1004,7 @@ public: /* vt 0x114 */ virtual void somethingWithCarriedActorFlags() override; /* vt 0x118 */ virtual dAcObjBase_c *getCurrentCarriedActor() override { - return mRef.get(); + return mCarriedActorRef.get(); } /* vt 0x18C */ virtual void getBodyMtx(mMtx_c *out_mtx, int boneIdx) override { @@ -1042,8 +1037,11 @@ public: bool canStart(bool force, u16 newIdx, u16 invalidValue, u16 *out1, u16 *out2) const; void setFaceTexPat(s32 faceIdx, bool force); + void checkFaceTexPat(); void setFaceTexSrt(s32 faceIdx, bool force); + void checkFaceTexSrt(); void setFaceAnmChr(s32 faceIdx, bool force); + void checkFaceAnmChr(); void setPosCopy3(); @@ -1184,7 +1182,7 @@ protected: /* 0x1300 */ mQuat_c field_0x1300[4]; /* 0x1340 */ mQuat_c mQuat1; /* 0x1350 */ mQuat_c mQuat2; - /* 0x1360 */ dAcRef_c<dAcObjBase_c> mRef; // not sure about the class + /* 0x1360 */ dAcRef_c<dAcObjBase_c> mCarriedActorRef; // not sure about the class /* 0x136C */ mAng *field_0x136C; /* 0x1370 */ mAng *field_0x1370; /* 0x1374 */ mAng *field_0x1374; // x3 @@ -1252,8 +1250,9 @@ public: static s32 getCurrentBeetleType(); static s32 getCurrentBugNetType(); - static bool isInBambooCuttingMinigame(); - + static bool isInBambooCuttingMinigame() { + return MinigameManager::isInMinigameState(MinigameManager::BAMBOO_CUTTING); + } static bool isItemRestrictedByBokoBase(ITEM_ID item); static u32 getCurrentHealthCapacity(); diff --git a/include/d/d_pouch.h b/include/d/d_pouch.h index b1d064c1..feacc53d 100644 --- a/include/d/d_pouch.h +++ b/include/d/d_pouch.h @@ -12,6 +12,7 @@ s32 getPouchSlotCount(bool unk); bool isItemExtraAmmo(s32 item); bool isItemMedal(s32 item); bool hasAnyShields(); +bool isItemShield(s32 item); #define POUCH_SLOT_NONE 8 diff --git a/include/m/m3d/m_anmchr.h b/include/m/m3d/m_anmchr.h index 2b564451..2ff01dd7 100644 --- a/include/m/m3d/m_anmchr.h +++ b/include/m/m3d/m_anmchr.h @@ -17,6 +17,11 @@ public: bool create(nw4r::g3d::ResMdl mdl, nw4r::g3d::ResAnmChr anm, mAllocator_c *alloc) { return create(mdl, anm, alloc, nullptr); } + // Not sure about this overload but it fixes stack alloc in some cases and other files + // definitely have similar overloads with seemingly identical argument types + bool create2(nw4r::g3d::ResMdl mdl, nw4r::g3d::ResAnmChr anm, mAllocator_c *alloc) { + return create(mdl, anm, alloc); + } bool create(nw4r::g3d::ResMdl, nw4r::g3d::ResAnmChr, mAllocator_c *, u32 *); void setAnm(bmdl_c &, nw4r::g3d::ResAnmChr, playMode_e); void setAnmAfter(bmdl_c &, nw4r::g3d::ResAnmChr, playMode_e); |
