ELEC2645 (2019/20) / Mbed 2 deprecated ELEC2645_Project_el18jgb

Dependencies:   mbed

Revision:
20:6db651a3cfec
Parent:
19:33c77517cb88
--- a/Pup/Pup.h	Thu May 21 13:54:14 2020 +0000
+++ b/Pup/Pup.h	Fri May 22 14:06:35 2020 +0000
@@ -7,27 +7,67 @@
 #include "Aim.h"
 #include "Heston.h"
 
-/** Power up Class
-@date april 2020
-*/ 
+/** Power up class
+ * @brief clock to slow heston sprite
+ * @author Joe Body, University of Leeds
+ * @date May 2020
+ */   
 
 class Pup
 {
 
 public:
+
+    /** Constructor */
     Pup();
+    
+    /** Destructor */
     ~Pup();
+    
+    /** Initalises Pup*/
     void init();
-    void draw(N5110 &lcd, bool state);
+    /** Draws the first type of spike
+    * @param lcd @details N5110 object
+    */
+    void draw(N5110 &lcd);
+    
+    /** set initial semi random random position of a clock based on cursor
+    * @param int x
+    * @param int y 
+    */
     void position(int x, int y);
+    
+    /** gets co-ordinates of the sprite
+    * @ return position vector  
+    */
     Vector2D get_pos();
+    
+    /** set co ordinates of sprite 
+    * @param int x 
+    * @param int y 
+    */
     void set_pos(int x, int y);
     
 private:
-
+    
+    /**vertical size sprite
+    * @return _height
+    */
     int _height;
+    
+    /**horizontal size sprite
+    * @return _height
+    */
     int _width;
+    
+    /** x position of sprite
+    * @return _x
+    */
     int _x;
+    
+    /** y position of sprite
+    * @return _y
+    */
     int _y;
 
 };