ELEC2645 (2019/20) / Mbed 2 deprecated ELEC2645_Project_el19zf

Dependencies:   mbed

Revision:
10:02ab3324be6c
Parent:
9:62d6559f0d50
Child:
11:494cc44777fe
--- a/shot/shot.h	Sat May 09 08:27:07 2020 +0000
+++ b/shot/shot.h	Sun May 10 05:16:51 2020 +0000
@@ -34,7 +34,7 @@
     //random pos
     void init_pos(shot_posandtype* i);
     //increase number of shots along with time
-    void gen_shot();
+    void init_shot();
     //moving function
     void update();
 
@@ -45,6 +45,8 @@
     void set_size(int size);
     ////mutators
     int get_size();
+    
+    void gen_shot(int flag);
 
 private:
     std::vector<shot_posandtype> _p;