Yuheng Huo / Mbed 2 deprecated hyh_copy

Dependencies:   mbed FXOS8700CQ

Committer:
Neowless
Date:
Fri May 15 12:32:47 2020 +0000
Revision:
1:48b0bf0bcda8
Child:
2:cc9d8ec2e1f4
test;

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Neowless 1:48b0bf0bcda8 1 #ifndef ENGINE_H
Neowless 1:48b0bf0bcda8 2 #define ENGINE_H
Neowless 1:48b0bf0bcda8 3
Neowless 1:48b0bf0bcda8 4 #include "plane.h"
Neowless 1:48b0bf0bcda8 5 #include "life.h"
Neowless 1:48b0bf0bcda8 6 #include "Bitmap.h"
Neowless 1:48b0bf0bcda8 7 #include "N5110.h"
Neowless 1:48b0bf0bcda8 8 #include "Gamepad.h"
Neowless 1:48b0bf0bcda8 9
Neowless 1:48b0bf0bcda8 10
Neowless 1:48b0bf0bcda8 11 struct bomb{
Neowless 1:48b0bf0bcda8 12 int x;
Neowless 1:48b0bf0bcda8 13 int y;
Neowless 1:48b0bf0bcda8 14 int width;
Neowless 1:48b0bf0bcda8 15 int height;
Neowless 1:48b0bf0bcda8 16 int *data;
Neowless 1:48b0bf0bcda8 17 };
Neowless 1:48b0bf0bcda8 18 struct bullet{
Neowless 1:48b0bf0bcda8 19 int x;
Neowless 1:48b0bf0bcda8 20 int y;
Neowless 1:48b0bf0bcda8 21 };
Neowless 1:48b0bf0bcda8 22
Neowless 1:48b0bf0bcda8 23 enum events{
Neowless 1:48b0bf0bcda8 24 DEAD,
Neowless 1:48b0bf0bcda8 25 FIRE,
Neowless 1:48b0bf0bcda8 26 ELMININATE,
Neowless 1:48b0bf0bcda8 27 NONE,
Neowless 1:48b0bf0bcda8 28 };
Neowless 1:48b0bf0bcda8 29 class engine{
Neowless 1:48b0bf0bcda8 30 public:
Neowless 1:48b0bf0bcda8 31 void init();
Neowless 1:48b0bf0bcda8 32 events evet_check(plane &p, bomb &b, Gamepad &pad, bullet &bu);
Neowless 1:48b0bf0bcda8 33 void fire(int x,int y, bullet &b);
Neowless 1:48b0bf0bcda8 34 int randombomb();
Neowless 1:48b0bf0bcda8 35 };
Neowless 1:48b0bf0bcda8 36 #endif
Neowless 1:48b0bf0bcda8 37