ELEC2645 (2019/20) / Mbed 2 deprecated ELEC2645_Project_el19zf

Dependencies:   mbed

Revision:
7:c49f3d3b672f
Parent:
6:dce38fe4e092
Child:
8:8287d2ef965d
--- a/shot/shot.h	Tue Apr 28 15:54:41 2020 +0000
+++ b/shot/shot.h	Wed Apr 29 05:10:57 2020 +0000
@@ -13,53 +13,47 @@
     @author Zeyu Feng
     @13 April 2020
    */
-   
+
+
 
-    
 
-struct shot_posandtype{
+struct shot_posandtype {
     int x;
     int y;
     int type;
     int dir;
 };
 
-class shot {
- 
-public:  
+class shot
+{
+
+public:
     //constructor
     shot();
     //destructor
     ~shot();
-    
+
     void init();
-    
+
     void init_pos(shot_posandtype* i);
-    
-    //int rand_dir();random direction of shot
-    
-    int rand_type();//give a random number from 0 - 3
-    
-    void gen_shot();//3 types direction 
-    
+
+    void gen_shot();
+
     void update();
-    
-    
-    
+
     void draw(N5110 &lcd);
-    
+
     void delete_shot();
-    
-    int _size;
-    
+
+    int _size;//use for resize number of vector
+
 private:
-    
+
     std::vector<shot_posandtype> _p;
     
-    
 };
 #endif
-    
-    
-    
+
 
+
+