XJEL2645 (19/20)
/
el17ll
Liu Liting 201199465
the_wall/the_wall.h
- Committer:
- Ting12138
- Date:
- 2020-05-14
- Revision:
- 13:a57a48e5e256
- Parent:
- 12:3b7811c3502c
File content as of revision 13:a57a48e5e256:
#ifndef THE_WALL_H #define THE_WALL_H #include "mbed.h" #include "N5110.h" #include "Gamepad.h" class the_wall { public: the_wall(); ~the_wall(); void init(int x,int gap,int width,int speed); void draw1(N5110 &lcd); void draw2(N5110 &lcd); void update(); void reset(); int get_x(); int get_height(); private: int _height; int _width; int _x; int _y; int _speed; int _gap; }; #endif