Yuheng Huo / Mbed 2 deprecated hyh_copy

Dependencies:   mbed FXOS8700CQ

Engine/engine.h

Committer:
Neowless
Date:
2020-05-15
Revision:
1:48b0bf0bcda8
Child:
2:cc9d8ec2e1f4

File content as of revision 1:48b0bf0bcda8:

#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