201199550 Li Boyuan PlaneWar Game on K64f

Dependencies:   mbed Gamepad N5110

Revision:
0:36c99c50e688
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/engine.h	Thu May 14 10:14:48 2020 +0000
@@ -0,0 +1,36 @@
+#ifndef ENGINE_H
+#define ENGINE_H
+
+#include "plane.h"
+#include "life.h"
+#include "Bitmap.h"
+#include "N5110.h"
+#include "Gamepad.h"
+
+
+struct bomb{
+    int x;
+    int y;
+    int width;
+    int height;
+    int *data;
+};
+struct bullet{
+    int x;
+    int y;
+};
+
+enum events{
+    DEAD,
+    FIRE,
+    ELMININATE,
+    NONE,
+};
+class engine{
+    public:
+    void init();
+    events evet_check(plane &p, bomb &b, Gamepad &pad, bullet &bu);
+    void fire(int x,int y, bullet &b);
+    int randombomb();
+};
+#endif
\ No newline at end of file