Liu Liting 201199465

Dependencies:   mbed N5110

Committer:
Ting12138
Date:
Thu May 14 15:42:14 2020 +0000
Revision:
13:a57a48e5e256
Parent:
12:3b7811c3502c
the 2645 project

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Ting12138 12:3b7811c3502c 1 #ifndef THE_WALL_H
Ting12138 12:3b7811c3502c 2 #define THE_WALL_H
Ting12138 12:3b7811c3502c 3
Ting12138 12:3b7811c3502c 4 #include "mbed.h"
Ting12138 12:3b7811c3502c 5 #include "N5110.h"
Ting12138 12:3b7811c3502c 6 #include "Gamepad.h"
Ting12138 12:3b7811c3502c 7
Ting12138 12:3b7811c3502c 8
Ting12138 12:3b7811c3502c 9 class the_wall
Ting12138 12:3b7811c3502c 10 {
Ting12138 12:3b7811c3502c 11
Ting12138 12:3b7811c3502c 12 public:
Ting12138 12:3b7811c3502c 13 the_wall();
Ting12138 12:3b7811c3502c 14 ~the_wall();
Ting12138 12:3b7811c3502c 15
Ting12138 12:3b7811c3502c 16 void init(int x,int gap,int width,int speed);
Ting12138 12:3b7811c3502c 17 void draw1(N5110 &lcd);
Ting12138 12:3b7811c3502c 18 void draw2(N5110 &lcd);
Ting12138 12:3b7811c3502c 19 void update();
Ting12138 12:3b7811c3502c 20 void reset();
Ting12138 12:3b7811c3502c 21 int get_x();
Ting12138 12:3b7811c3502c 22 int get_height();
Ting12138 12:3b7811c3502c 23
Ting12138 12:3b7811c3502c 24 private:
Ting12138 12:3b7811c3502c 25 int _height;
Ting12138 12:3b7811c3502c 26 int _width;
Ting12138 12:3b7811c3502c 27 int _x;
Ting12138 12:3b7811c3502c 28 int _y;
Ting12138 12:3b7811c3502c 29 int _speed;
Ting12138 12:3b7811c3502c 30 int _gap;
Ting12138 12:3b7811c3502c 31 };
Ting12138 12:3b7811c3502c 32 #endif