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
Floors/Floors.h@15:4efa04a6a376, 2019-04-23 (annotated)
- Committer:
- el17m2h
- Date:
- Tue Apr 23 23:14:06 2019 +0000
- Revision:
- 15:4efa04a6a376
- Parent:
- 14:529f798adae4
- Child:
- 20:a359092079b0
Changed the main function so that the back button takes the user back to the welcome menu.;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
el17m2h | 1:0001cb3eb053 | 1 | #ifndef FLOORS_H |
el17m2h | 1:0001cb3eb053 | 2 | #define FLOORS_H |
el17m2h | 1:0001cb3eb053 | 3 | |
el17m2h | 1:0001cb3eb053 | 4 | #include "mbed.h" |
el17m2h | 1:0001cb3eb053 | 5 | #include "N5110.h" |
el17m2h | 1:0001cb3eb053 | 6 | #include "Gamepad.h" |
el17m2h | 8:90e789413e0b | 7 | |
el17m2h | 1:0001cb3eb053 | 8 | class Floors{ |
el17m2h | 1:0001cb3eb053 | 9 | public: |
el17m2h | 1:0001cb3eb053 | 10 | Floors(); |
el17m2h | 1:0001cb3eb053 | 11 | ~Floors(); |
el17m2h | 11:2041290b5a74 | 12 | void init(int y, int width, int height); |
el17m2h | 1:0001cb3eb053 | 13 | void draw(N5110 &lcd); |
el17m2h | 15:4efa04a6a376 | 14 | void update(float doodler_pos_y); |
el17m2h | 14:529f798adae4 | 15 | Vector2D get_position(); |
el17m2h | 14:529f798adae4 | 16 | void set_position(Vector2D pos); // mutators |
el17m2h | 14:529f798adae4 | 17 | void set_score(int score); |
el17m2h | 1:0001cb3eb053 | 18 | |
el17m2h | 1:0001cb3eb053 | 19 | private: |
el17m2h | 1:0001cb3eb053 | 20 | int _height; |
el17m2h | 1:0001cb3eb053 | 21 | int _width; |
el17m2h | 15:4efa04a6a376 | 22 | float _doodler_pos_y; |
el17m2h | 14:529f798adae4 | 23 | Vector2D _position; |
el17m2h | 1:0001cb3eb053 | 24 | |
el17m2h | 1:0001cb3eb053 | 25 | }; |
el17m2h | 1:0001cb3eb053 | 26 | #endif |