Li Boyuan / Mbed 2 deprecated PlaneWar

Dependencies:   mbed Gamepad N5110

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers plane.h Source File

plane.h

00001 #ifndef PLANE_H
00002 #define PLANE_H
00003 
00004 #include "Bitmap.h"
00005 #include "N5110.h"
00006 #include "Gamepad.h"
00007 
00008 
00009 struct xy{
00010     int x;
00011     int y;
00012 };
00013 
00014 class plane{
00015     public:
00016     void init();
00017     void update(Gamepad &pad);
00018     void display(N5110 &lcd);
00019     xy getxy();
00020     int getwidth();
00021     int getheight();
00022     
00023     private:
00024     int _height;
00025     int _width;
00026     int data[56];
00027     xy _xy;
00028 };
00029 #endif