deemo1

Dependencies:   mbed

Revision:
3:1db91ad3ab84
Parent:
2:03cd3bb32511
--- a/Boss/Boss.h	Tue May 12 08:01:52 2020 +0000
+++ b/Boss/Boss.h	Tue May 12 15:13:22 2020 +0000
@@ -0,0 +1,39 @@
+#ifndef BOSS_H
+#define BOSS_H
+ 
+#include "mbed.h"
+#include "N5110.h"
+#include "Gamepad.h"
+#include "Battleship.h"
+
+/** Boss Class  
+* @brief Boss 
+* @author Haoyan Zhang  
+* @date May, 2020 
+*/ 
+
+class Boss
+{
+public:
+       
+       Boss();
+       ~Boss();
+       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;
+        int _height;
+        int _width;
+        int _x;
+        int _y;
+};
+#endif
+
+       
\ No newline at end of file