deemo1

Dependencies:   mbed

Revision:
4:9fa0c5edd1a1
Child:
5:32dbfaf578dd
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Acid/Acid.h	Tue May 12 15:54:51 2020 +0000
@@ -0,0 +1,60 @@
+#ifndef ACID_H
+#define ACID_H
+ 
+#include "mbed.h"
+#include "N5110.h"
+#include "Gamepad.h"
+#include "Boss.h"
+/** Acid Class  
+* @brief Acid  
+* @author Haoyan Zhang  
+* @date April, 2020 
+*/ 
+
+class Acid
+{ 
+public:
+       
+       Acid();
+       
+       ~Acid();
+       
+       void init(int height,int width,int speed);
+       
+       void draw(N5110 &lcd);
+       
+       void update();
+       
+       void set_velocity(Vector2D v);
+       
+       Vector2D get_velocity();
+       
+       Vector2D get_pos();
+       
+       void set_pos(Vector2D p);
+       
+private:
+         
+        Vector2D _velocity;
+        
+        Boss _Boss;
+        
+        int _height;
+        
+        int _width;
+       
+        int _x;
+        
+        int _y;
+             
+};
+#endif
+
+       
+       
+       
+       
+       
+       
+       
+            
\ No newline at end of file