-
Notifications
You must be signed in to change notification settings - Fork 106
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
most of AirOctaFlyUp is done, some of AirOctaDataMgr is done (#121)
- Loading branch information
Showing
11 changed files
with
209 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#include "Game/AI/AI/AirOcta/AirOctaDataMgr.h" | ||
namespace uking { | ||
|
||
void AirOctaDataMgr::changeOctasYheightMaybe() { | ||
float result = vec_EC.y + unk_110 + unk_114 + unk_118 + unk_11c; | ||
vec_F8.y = result; | ||
} | ||
} // namespace uking |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
#pragma once | ||
|
||
#include <container/seadObjArray.h> | ||
#include <prim/seadRuntimeTypeInfo.h> | ||
#include "KingSystem/ActorSystem/actActor.h" | ||
#include "KingSystem/ActorSystem/actAiClassDef.h" | ||
|
||
namespace uking { | ||
class AirOctaDataMgr { | ||
SEAD_RTTI_BASE(AirOctaDataMgr) | ||
public: | ||
ksys::act::BaseProcLink& getProc() { return mBaseProcLink; } | ||
void changeOctasYheightMaybe(); | ||
|
||
struct MessageData { | ||
u32 unk_00; | ||
u64 unk_08; | ||
}; | ||
|
||
/* 0x08 */ ksys::act::BaseProcLink mBaseProcLink; | ||
/* 0x18 */ ksys::act::BaseProcLink mBaseProcLink2; | ||
/* 0x28 */ void* unk_28{}; | ||
/* 0x30 */ u32 unk_30{}; | ||
/* 0x34 */ sead::Vector3f unk_34{sead::Vector3f::zero}; | ||
/* 0x40 */ void* unk_40{}; | ||
/* 0x48 */ u32 unk_48{}; | ||
/* 0x4C */ sead::Vector3f unk_4C{sead::Vector3f::zero}; | ||
/* 0x58 */ sead::FixedObjArray<MessageData, 4> obj_arr; | ||
/* 0xD8 */ u16 unk_D8{}; | ||
/* 0xDA */ bool unk_DA{}; | ||
/* 0xDC */ u32 unk_DC; | ||
/* 0xE0 */ sead::Vector3f vec_E0{sead::Vector3f::zero}; | ||
/* 0xEC */ sead::Vector3f vec_EC{sead::Vector3f::zero}; | ||
/* 0xF8 */ sead::Vector3f vec_F8{sead::Vector3f::zero}; | ||
/*0x104 */ sead::Vector3f vec_104{sead::Vector3f::zero}; | ||
/*0x110 */ float unk_110; | ||
/*0x114 */ float unk_114; | ||
/*0x118 */ float unk_118; | ||
/*0x11c */ float unk_11c; | ||
/*0x120 */ u32 mFlags; | ||
}; | ||
} // namespace uking |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,45 @@ | ||
#pragma once | ||
|
||
#include "Game/AI/AI/AirOcta/AirOctaDataMgr.h" | ||
#include "KingSystem/ActorSystem/actAiAi.h" | ||
|
||
namespace uking::ai { | ||
|
||
namespace uking { | ||
class AirOctaDataMgr; | ||
namespace ai { | ||
class AirOctaFlyUp : public ksys::act::ai::Ai { | ||
SEAD_RTTI_OVERRIDE(AirOctaFlyUp, ksys::act::ai::Ai) | ||
friend uking::AirOctaDataMgr; | ||
|
||
public: | ||
explicit AirOctaFlyUp(const InitArg& arg); | ||
~AirOctaFlyUp() override; | ||
|
||
bool handleMessage_(const ksys::Message& message) override; | ||
bool init_(sead::Heap* heap) override; | ||
void enter_(ksys::act::ai::InlineParamPack* params) override; | ||
void leave_() override; | ||
void loadParams_() override; | ||
void calc_() override; | ||
|
||
protected: | ||
AirOctaDataMgr* getDataMgr() const { | ||
return sead::DynamicCast<AirOctaDataMgr>(*mAirOctaDataMgr_a); | ||
} | ||
// static_param at offset 0x38 | ||
const float* mFlyUpDuration_s{}; | ||
// dynamic_param at offset 0x40 | ||
float* mTargetDistance_d{}; | ||
// aitree_variable at offset 0x48 | ||
void* mAirOctaDataMgr_a{}; | ||
// for whatever reason, removing void* mAirOctaDataMgr_a; and replacing it with | ||
// AirOctaDataMgr** mAirOctaDataMgr_a{}; will make loadParams_ be not matching with a difference | ||
// of 0 and make handleMessage_ go from a difference of 5 to matching. ¯\_(ツ)_/¯ going from | ||
// nonmatching to matching and making another function go from matching to not really unmatching | ||
// is still net progress void* mAirOctaDataMgr_a | ||
AirOctaDataMgr** mAirOctaDataMgr_a{}; | ||
float AirOctaY{}; | ||
float mElapsedTime; | ||
u32 mUserData; | ||
bool mIsEnded; | ||
}; | ||
|
||
} // namespace uking::ai | ||
} // namespace ai | ||
} // namespace uking |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#pragma once | ||
#include "KingSystem/ActorSystem/actActor.h" | ||
namespace ksys::as { | ||
class ASList { | ||
public: | ||
void startAnimationMaybe(f32 a2, f32 a3, const sead::SafeString& animation, int a5, int a6, | ||
bool a7); | ||
bool goLimpFromHeadShotMaybe(u32 a1, const sead::SafeString& a2, u32 a3); // x_8 | ||
s64 x_2(u32 a1, int a2, bool m, u32 a4); | ||
u8 sub_710115D3B8(); | ||
}; | ||
|
||
} // namespace ksys::as |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters