summaryrefslogtreecommitdiff
path: root/src/shooting.rs
diff options
context:
space:
mode:
authorJustin Worthe <justin.worthe@gmail.com>2017-05-13 21:01:14 +0200
committerJustin Worthe <justin.worthe@gmail.com>2017-05-13 21:01:14 +0200
commit872529bc9a13b1923047a7f9308abaa40eb63d3c (patch)
tree9da73efa835896ee206daeb262fde550aaa99907 /src/shooting.rs
parent36b72bfef7b7b8dea94546d11704ec529091bce1 (diff)
Random placement
Diffstat (limited to 'src/shooting.rs')
-rw-r--r--src/shooting.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/shooting.rs b/src/shooting.rs
new file mode 100644
index 0000000..14f2b81
--- /dev/null
+++ b/src/shooting.rs
@@ -0,0 +1,6 @@
+use actions::*;
+use math::*;
+
+pub fn shoot_randomly(map_size: u16) -> Action {
+ Action::Shoot(Point::random(map_size))
+}