summaryrefslogtreecommitdiff
path: root/src/KingSystem/ActorSystem/actAiRoot.cpp
diff options
context:
space:
mode:
authorLéo Lam <leo@leolam.fr>2020-12-09 17:17:25 +0100
committerLéo Lam <leo@leolam.fr>2020-12-09 18:11:24 +0100
commitfcbe17a3f0db98bdafdfd917210b03019de2d31f (patch)
tree90c949cab5c91d11a5d62b600b4cd7f33e7d7a61 /src/KingSystem/ActorSystem/actAiRoot.cpp
parentcd10f3774bd1e08dd7126958303730407158dd79 (diff)
ksys/act: Start adding RootAi
Diffstat (limited to 'src/KingSystem/ActorSystem/actAiRoot.cpp')
-rw-r--r--src/KingSystem/ActorSystem/actAiRoot.cpp19
1 files changed, 19 insertions, 0 deletions
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