summaryrefslogtreecommitdiff
path: root/src/Game/Actor/AI/aiFishRoot.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/Game/Actor/AI/aiFishRoot.cpp')
-rw-r--r--src/Game/Actor/AI/aiFishRoot.cpp36
1 files changed, 36 insertions, 0 deletions
diff --git a/src/Game/Actor/AI/aiFishRoot.cpp b/src/Game/Actor/AI/aiFishRoot.cpp
new file mode 100644
index 00000000..37557321
--- /dev/null
+++ b/src/Game/Actor/AI/aiFishRoot.cpp
@@ -0,0 +1,36 @@
+#include "Game/Actor/AI/aiFishRoot.h"
+
+namespace uking::ai {
+
+FishRoot::FishRoot(const InitArg& arg) : SimpleWildlifeRoot(arg) {}
+
+FishRoot::~FishRoot() = default;
+
+bool FishRoot::init_(sead::Heap* heap) {
+ return SimpleWildlifeRoot::init_(heap);
+}
+
+void FishRoot::enter_(ksys::act::ai::InlineParamPack* params) {
+ SimpleWildlifeRoot::enter_(params);
+}
+
+void FishRoot::leave_() {
+ SimpleWildlifeRoot::leave_();
+}
+
+void FishRoot::loadParams_() {
+ SimpleWildlifeRoot::loadParams_();
+ getStaticParam(&mInWaterDepth_s, "InWaterDepth");
+ getStaticParam(&mOnGroundDepth_s, "OnGroundDepth");
+ getStaticParam(&mNextJumpTimeBase_s, "NextJumpTimeBase");
+ getStaticParam(&mNextJumpTimeRand_s, "NextJumpTimeRand");
+ getStaticParam(&mAllowReturnThreatDist_s, "AllowReturnThreatDist");
+ getStaticParam(&mFrameUntilOutOfWater_s, "FrameUntilOutOfWater");
+ getStaticParam(&mDistRunFromPlayerOnReturn_s, "DistRunFromPlayerOnReturn");
+ getStaticParam(&mIgnoreFoodBase_s, "IgnoreFoodBase");
+ getStaticParam(&mIgnoreFoodRand_s, "IgnoreFoodRand");
+ getStaticParam(&mIgnoreFoodAfterSuccessBase_s, "IgnoreFoodAfterSuccessBase");
+ getStaticParam(&mIgnoreFoodAfterSuccessRand_s, "IgnoreFoodAfterSuccessRand");
+}
+
+} // namespace uking::ai