aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorClyne Sullivan <tullivan99@gmail.com>2017-01-05 07:31:32 -0500
committerClyne Sullivan <tullivan99@gmail.com>2017-01-05 07:31:32 -0500
commitcbd154a4834f56146dbe744ee2d2c6dccc04c5cb (patch)
tree71c0aba63b67062de4de98e993ae925f3c201967 /include
parentd7d1b397197893f0ce49b28f762711b7a9ef1087 (diff)
todo finder
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.