summaryrefslogtreecommitdiff
path: root/src/Game/Actor/AI/aiLeadToTarget.cpp
blob: 6c776751bf0ce91e9cf01e1b9637adbf280497f8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#include "Game/Actor/AI/aiLeadToTarget.h"

namespace uking::ai {

LeadToTarget::LeadToTarget(const InitArg& arg) : ksys::act::ai::Ai(arg) {}

LeadToTarget::~LeadToTarget() = default;

bool LeadToTarget::init_(sead::Heap* heap) {
    return ksys::act::ai::Ai::init_(heap);
}

void LeadToTarget::enter_(ksys::act::ai::InlineParamPack* params) {
    ksys::act::ai::Ai::enter_(params);
}

void LeadToTarget::leave_() {
    ksys::act::ai::Ai::leave_();
}

void LeadToTarget::loadParams_() {
    getStaticParam(&mSuccessRadius_s, "SuccessRadius");
    getStaticParam(&mWaitDistance_s, "WaitDistance");
    getStaticParam(&mResumeLeadDistance_s, "ResumeLeadDistance");
    getStaticParam(&mOkPathFailRange_s, "OkPathFailRange");
    getStaticParam(&mDontWaitIfLeaderIsAhead_s, "DontWaitIfLeaderIsAhead");
    getDynamicParam(&mTargetPos_d, "TargetPos");
    getDynamicParam(&mLeaderActor_d, "LeaderActor");
    getStaticParam(&mWaitFramesAfterArrive_s, "WaitFramesAfterArrive");
}

}  // namespace uking::ai