summaryrefslogtreecommitdiff
path: root/src/Game/AI/Query/queryCheckAppPoint.cpp
blob: 408b2139c373bc8f94b6f0493a1f2ea70dd3f80b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include "Game/AI/Query/queryCheckAppPoint.h"
#include <evfl/Query.h>
#include "KingSystem/GameData/gdtSpecialFlags.h"

namespace uking::query {

CheckAppPoint::CheckAppPoint(const InitArg& arg) : ksys::act::ai::Query(arg) {}

CheckAppPoint::~CheckAppPoint() = default;

int CheckAppPoint::doQuery() {
    s32 reach = ksys::gdt::getS32ByKey("ReachPointActorDiscoverNum");
    s32 use = ksys::gdt::getS32ByKey("App_ExtendUsePoint");
    return reach - use > 1;
}

void CheckAppPoint::loadParams(const evfl::QueryArg& arg) {}

void CheckAppPoint::loadParams() {}

}  // namespace uking::query