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@0:fd8eda608206, 2019-05-08 (annotated)
- Committer:
- davidwst421
- Date:
- Wed May 08 18:50:21 2019 +0000
- Revision:
- 0:fd8eda608206
- Child:
- 1:f09ff0ed98fd
12
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
davidwst421 | 0:fd8eda608206 | 1 | #ifndef WALL_H |
davidwst421 | 0:fd8eda608206 | 2 | #define WALL_H |
davidwst421 | 0:fd8eda608206 | 3 | |
davidwst421 | 0:fd8eda608206 | 4 | #include "mbed.h" |
davidwst421 | 0:fd8eda608206 | 5 | #include "N5110.h" |
davidwst421 | 0:fd8eda608206 | 6 | #include "Gamepad.h" |
davidwst421 | 0:fd8eda608206 | 7 | |
davidwst421 | 0:fd8eda608206 | 8 | class Wall |
davidwst421 | 0:fd8eda608206 | 9 | { |
davidwst421 | 0:fd8eda608206 | 10 | |
davidwst421 | 0:fd8eda608206 | 11 | public: |
davidwst421 | 0:fd8eda608206 | 12 | Wall(); |
davidwst421 | 0:fd8eda608206 | 13 | ~Wall(); |
davidwst421 | 0:fd8eda608206 | 14 | void init(int x,int gap,int width,int speed); |
davidwst421 | 0:fd8eda608206 | 15 | void draw1(N5110 &lcd); |
davidwst421 | 0:fd8eda608206 | 16 | void draw2(N5110 &lcd); |
davidwst421 | 0:fd8eda608206 | 17 | void update(); |
davidwst421 | 0:fd8eda608206 | 18 | void reset(); |
davidwst421 | 0:fd8eda608206 | 19 | Vector2D get_height(); |
davidwst421 | 0:fd8eda608206 | 20 | |
davidwst421 | 0:fd8eda608206 | 21 | private: |
davidwst421 | 0:fd8eda608206 | 22 | |
davidwst421 | 0:fd8eda608206 | 23 | int _height; |
davidwst421 | 0:fd8eda608206 | 24 | int _width; |
davidwst421 | 0:fd8eda608206 | 25 | int _x; |
davidwst421 | 0:fd8eda608206 | 26 | int _y; |
davidwst421 | 0:fd8eda608206 | 27 | int _speed; |
davidwst421 | 0:fd8eda608206 | 28 | }; |
davidwst421 | 0:fd8eda608206 | 29 | #endif |