publish my project

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
dongyuhu
Date:
Wed Apr 29 10:51:02 2020 +0000
Parent:
6:49e77bcc975c
Commit message:
publish

Changed in this revision

Attacker/Attacker.h Show annotated file Show diff for this revision Revisions of this file
Me/Me.h Show annotated file Show diff for this revision Revisions of this file
Start/Start.h Show annotated file Show diff for this revision Revisions of this file
diff -r 49e77bcc975c -r 4b92c1ee6231 Attacker/Attacker.h
--- a/Attacker/Attacker.h	Wed Apr 29 09:12:18 2020 +0000
+++ b/Attacker/Attacker.h	Wed Apr 29 10:51:02 2020 +0000
@@ -15,23 +15,39 @@
 {
 
 public:
+    /** Constructor */
     Attacker();
+    /** Destructor */ 
     ~Attacker();
+    /** Initialization */
     void init1(int size,int speed);
+    /** Initialization */
     void init2(int size,int speed);
+    /** Initialization */
     void init3(int size,int speed);
+    /** Initialization */
     void init4(int size,int speed);
+    /** Initialization */
     void init5(int size,int speed);
+    /** Initialization */
     void init6(int size,int speed);
+    /** Initialization */
     void init7(int size,int speed);
+    /** Initialization */
     void init8(int size,int speed);
                          
+    /** draw pattern on lcd*/ 
     void draw(N5110 &lcd);
+    /** Update the values */
     void update();
+    /** Get the velocity */
     Vector2D get_velocity();
+    /** Set position */
     void set_velocity(Vector2D v);
 
+    /** Get the position */
     Vector2D get_pos();
+    /** Set position */
     void set_pos(Vector2D p);
     
 private:
diff -r 49e77bcc975c -r 4b92c1ee6231 Me/Me.h
--- a/Me/Me.h	Wed Apr 29 09:12:18 2020 +0000
+++ b/Me/Me.h	Wed Apr 29 10:51:02 2020 +0000
@@ -15,11 +15,17 @@
 {
 public:
 
+    /** Constructor */
     Me();
+    /** Destructor */
     ~Me();
+    /** Initialization */
     void init(int x,int y,int height,int width);
+    /** draw pattern on lcd*/
     void draw(N5110 &lcd);
+    /** Update the values */
     void update(Direction d);
+    /** Get the position */ 
     Vector2D get_pos();
 
 private:
diff -r 49e77bcc975c -r 4b92c1ee6231 Start/Start.h
--- a/Start/Start.h	Wed Apr 29 09:12:18 2020 +0000
+++ b/Start/Start.h	Wed Apr 29 10:51:02 2020 +0000
@@ -17,15 +17,32 @@
 {
 
 public:
+    /** Constructor */
     Start();
+    /** Destructor */ 
     ~Start();
 
+    /** Initialization 
+    *@param the values of height,width and speed(int) 
+    */ 
     void init(int me_width,int me_height,int attacker_size,int speed);
+    
+    /** read input of Gamepad */
     void read_input(Gamepad &pad);
+    
+    /** Update the values */ 
     void update(Gamepad &pad);
+    
+    /** draw pattern on lcd*/
     void draw(N5110 &lcd);
+    /** get the value of human life
+    *@return the current value of human life
+    */ 
 
     void check_wall_collision(Gamepad &pad);
+    /** get the value of score
+    *@return the current value of score
+    */ 
     void check_body_collisions(Gamepad &pad);
 private: