ELEC2645 (2018/19) / Mbed 2 deprecated el17m2h_public

Dependencies:   mbed

Revision:
37:71f2cd073739
Parent:
29:15e9640646b7
--- a/Enemy/Enemy.h	Thu May 09 14:22:29 2019 +0000
+++ b/Enemy/Enemy.h	Thu May 09 14:30:45 2019 +0000
@@ -16,11 +16,32 @@
 public:
     Enemy();
     ~Enemy();
+    
+    /**
+    @brief Function to set the enemy's position on top of the floor's position
+    @param Vector2D floor_pos
+    @details The function uses the parameters of the enemy and the floor's size to place the enemy on top of the floor.
+    */
     void update(Vector2D floor_pos);
+    
+    /**
+    @brief Prints the enemy into the LCD screen
+    @param N5110 &lcd
+    @details The function draws a sprite of 12 x 12 bits that shows the image of the enemy ghost
+    */
     void draw(N5110 &lcd);
+    
+    /**
+    @brief Function to place the enemy at a position out of the screen's visibility
+    @details The function draws sets the position of the enemy to a value where it will not be visible in the screen
+    */
     void erase();
+    
+    /**
+    @brief Returns the current enemy's position
+    @details Gets the current value in the enemy's class for the enemy's position and returns it as a 2D vector
+    */
     Vector2D get_position();
-    void set_score(int score);
 
 private:
     Vector2D _position;