201199550 Li Boyuan PlaneWar Game on K64f

Dependencies:   mbed Gamepad N5110

plane.h

Committer:
LBY
Date:
2020-05-14
Revision:
0:36c99c50e688

File content as of revision 0:36c99c50e688:

#ifndef PLANE_H
#define PLANE_H

#include "Bitmap.h"
#include "N5110.h"
#include "Gamepad.h"


struct xy{
    int x;
    int y;
};

class plane{
    public:
    void init();
    void update(Gamepad &pad);
    void display(N5110 &lcd);
    xy getxy();
    int getwidth();
    int getheight();
    
    private:
    int _height;
    int _width;
    int data[56];
    xy _xy;
};
#endif