diff options
Diffstat (limited to 'src/Game/AI/Query/queryComparePlayerMaxHeart.cpp')
| -rw-r--r-- | src/Game/AI/Query/queryComparePlayerMaxHeart.cpp | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/Game/AI/Query/queryComparePlayerMaxHeart.cpp b/src/Game/AI/Query/queryComparePlayerMaxHeart.cpp new file mode 100644 index 00000000..c36dc2a6 --- /dev/null +++ b/src/Game/AI/Query/queryComparePlayerMaxHeart.cpp @@ -0,0 +1,23 @@ +#include "Game/AI/Query/queryComparePlayerMaxHeart.h" +#include <evfl/query.h> + +namespace uking::query { + +ComparePlayerMaxHeart::ComparePlayerMaxHeart(const InitArg& arg) : ksys::act::ai::Query(arg) {} + +ComparePlayerMaxHeart::~ComparePlayerMaxHeart() = default; + +// FIXME: implement +int ComparePlayerMaxHeart::doQuery() { + return -1; +} + +void ComparePlayerMaxHeart::loadParams(const evfl::QueryArg& arg) { + loadInt(arg.param_accessor, "Threshold"); +} + +void ComparePlayerMaxHeart::loadParams() { + getDynamicParam(&mThreshold, "Threshold"); +} + +} // namespace uking::query |
