summaryrefslogtreecommitdiff
path: root/sim/include
diff options
context:
space:
mode:
Diffstat (limited to 'sim/include')
-rw-r--r--sim/include/kurator/sim/FloatingMovement.h27
-rw-r--r--sim/include/kurator/sim/components.h10
2 files changed, 27 insertions, 10 deletions
diff --git a/sim/include/kurator/sim/FloatingMovement.h b/sim/include/kurator/sim/FloatingMovement.h
new file mode 100644
index 0000000..352377d
--- /dev/null
+++ b/sim/include/kurator/sim/FloatingMovement.h
@@ -0,0 +1,27 @@
+#pragma once
+
+#include <entt/entity/registry.hpp>
+#include <entt/signal/dispatcher.hpp>
+
+#include "Point.h"
+
+
+namespace kurator
+{
+namespace sim
+{
+
+
+struct FloatingMovement
+{
+ double max_speed;
+ double acceleration;
+ double deceleration;
+ double destination_boundary = 100.0;
+ Point speed = {0.0, 0.0};
+ static void update(entt::registry& registry, entt::dispatcher& dispatcher, float dt);
+};
+
+
+} // namespace sim
+} // namespace kurator
diff --git a/sim/include/kurator/sim/components.h b/sim/include/kurator/sim/components.h
index 6fbab55..47ff5b2 100644
--- a/sim/include/kurator/sim/components.h
+++ b/sim/include/kurator/sim/components.h
@@ -33,16 +33,6 @@ struct AIState
};
-struct FloatingMovement
-{
- double max_speed;
- double acceleration;
- double deceleration;
- double destination_boundary;
- Point speed = {0.0, 0.0};
-};
-
-
struct HitPoints
{
double health;