summaryrefslogtreecommitdiff
path: root/engine-ocean/Game/Systems/AI/Actions/walkaction.h
diff options
context:
space:
mode:
authorjjesswan <jessica_wan@brown.edu>2024-04-22 21:56:26 -0400
committerjjesswan <jessica_wan@brown.edu>2024-04-22 21:56:26 -0400
commita556b45abf18f1bd509daaf63b66b7d55e9fd291 (patch)
treebc9b8a2d184c12aee236e7f9f276a34b84ca552d /engine-ocean/Game/Systems/AI/Actions/walkaction.h
parentcd7c76017a12bb548036571c1ff13e551369d06d (diff)
add engine version
Diffstat (limited to 'engine-ocean/Game/Systems/AI/Actions/walkaction.h')
-rw-r--r--engine-ocean/Game/Systems/AI/Actions/walkaction.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/engine-ocean/Game/Systems/AI/Actions/walkaction.h b/engine-ocean/Game/Systems/AI/Actions/walkaction.h
new file mode 100644
index 0000000..2e24864
--- /dev/null
+++ b/engine-ocean/Game/Systems/AI/Actions/walkaction.h
@@ -0,0 +1,29 @@
+#ifndef WALKACTION_H
+#define WALKACTION_H
+#include "Game/Components/TransformComponent.h"
+#include "Game/GameObjects/GameObject.h"
+#include "Game/Systems/AI/btnode.h"
+#include "glm/fwd.hpp"
+#include <memory>
+#include "btaction.h"
+
+class WalkAction : public BTNode
+{
+public:
+ WalkAction(std::string entity_id, std::map<std::string, BlackboardData>& global_blackboard);
+ Status update(float seconds) override;
+ void reset() override;
+ void setPath(glm::vec3 entity_pos);
+ void addChildren(BTNode *node) override;
+
+
+
+private:
+ std::vector<glm::vec3> m_path;
+ glm::vec3 m_destination;
+ std::map<std::string, BlackboardData>& m_global_blackboard;
+ std::string m_entity_id;
+};
+
+
+#endif // WALKACTION_H