ELEC2645 (2019/20) / Mbed 2 deprecated ELEC2645_Project_el19zf

Dependencies:   mbed

Revision:
15:3571beaaeed8
Parent:
13:eb60628db8bf
Child:
16:cf2bfada3adf
--- a/shot/shot.h	Fri May 15 08:04:39 2020 +0000
+++ b/shot/shot.h	Fri May 15 12:21:45 2020 +0000
@@ -36,10 +36,10 @@
     /**produce a random_pos(21,0)(42,0)(63,0)(21,45)(42,45)(63,45)
     *@param vector_i(shot_posandtype*)
     */
-    void init_pos(shot_posandtype* i);
+    void init_pos(shot_posandtype *i);
     
     /**move shots in their own directions*/
-    void update(N5110 &lcd);
+    void update();
     
     /**generate shots as time goes on*/
     void update_shot();
@@ -60,16 +60,21 @@
     *@param size(int)
     */
     void set_size(int size);
+    
+    void set_shot(int x, int y, int type, int Direction);
 
     /**mutators get size
     *@return current size
     */
     int get_size();
+    
+    Vector2D get_shot();
 
 private:
     std::vector<shot_posandtype> _p;
     int _size;
     float _size_f;
+    Vector2D _shot_pos;
 };
 #endif