]> git.localhorst.tv Git - blank.git/blobdiff - src/ai/RoamState.hpp
experiments with ai states and steering
[blank.git] / src / ai / RoamState.hpp
diff --git a/src/ai/RoamState.hpp b/src/ai/RoamState.hpp
new file mode 100644 (file)
index 0000000..3a560e0
--- /dev/null
@@ -0,0 +1,24 @@
+#ifndef BLANK_AI_ROAMSTATE_HPP_
+#define BLANK_AI_ROAMSTATE_HPP_
+
+#include "AIState.hpp"
+
+
+namespace blank {
+
+/// randomly waltz about the landscape
+/// hold at random
+/// start chasing a player if one comes near
+
+class RoamState
+: public AIState {
+
+       void Enter(AIController &) const override;
+       void Update(AIController &, Entity &, float dt) const override;
+       void Exit(AIController &) const override;
+
+};
+
+}
+
+#endif