From fcbe17a3f0db98bdafdfd917210b03019de2d31f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9o=20Lam?= Date: Wed, 9 Dec 2020 17:17:25 +0100 Subject: ksys/act: Start adding RootAi --- src/KingSystem/ActorSystem/actAiRoot.cpp | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 src/KingSystem/ActorSystem/actAiRoot.cpp (limited to 'src/KingSystem/ActorSystem/actAiRoot.cpp') diff --git a/src/KingSystem/ActorSystem/actAiRoot.cpp b/src/KingSystem/ActorSystem/actAiRoot.cpp new file mode 100644 index 00000000..041ab86c --- /dev/null +++ b/src/KingSystem/ActorSystem/actAiRoot.cpp @@ -0,0 +1,19 @@ +#include "KingSystem/ActorSystem/actAiRoot.h" + +namespace ksys::act::ai { + +RootAi::RootAi(const InitArg& arg) : Ai(arg) { + mBehaviorsByStopAndCalcTiming[0].fill({}); + mBehaviorsByStopAndCalcTiming[1].fill({}); +} + +RootAi::~RootAi() { + mQueries.finalize(); + mBehaviors.finalize(); + mAis.finalize(); + mActions.finalize(); + if (_140) + delete _140; +} + +} // namespace ksys::act::ai -- cgit v1.2.3