Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed
Wall/Wall.h
- Committer:
- davidwst421
- Date:
- 2019-05-09
- Revision:
- 14:13e82f720bea
- Parent:
- 1:f09ff0ed98fd
- Child:
- 15:749c595b19e2
File content as of revision 14:13e82f720bea:
#ifndef WALL_H #define WALL_H #include "mbed.h" #include "N5110.h" #include "Gamepad.h" class Wall { public: Wall(); ~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: // parameters of the walls int _height; int _width; int _x; int _y; int _speed; int _gap; }; #endif