aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/components.hpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/include/components.hpp b/include/components.hpp
index 5c067dd..5bafa02 100644
--- a/include/components.hpp
+++ b/include/components.hpp
@@ -295,7 +295,12 @@ struct Dialog {
/**
* Causes the entity to hop around.
*/
-struct Hop {}; // TODO require wander, for range?
+struct Hop {
+ Hop(float r = 0)
+ : hopRatio(r) {}
+
+ float hopRatio;
+};
/**
* Causes the entity to wander about.