diff options
author | Justin Worthe <justin.worthe@gmail.com> | 2017-05-13 21:01:14 +0200 |
---|---|---|
committer | Justin Worthe <justin.worthe@gmail.com> | 2017-05-13 21:01:14 +0200 |
commit | 872529bc9a13b1923047a7f9308abaa40eb63d3c (patch) | |
tree | 9da73efa835896ee206daeb262fde550aaa99907 /src/shooting.rs | |
parent | 36b72bfef7b7b8dea94546d11704ec529091bce1 (diff) |
Random placement
Diffstat (limited to 'src/shooting.rs')
-rw-r--r-- | src/shooting.rs | 6 |
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)) +} |