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
ReflectionPaddle/RePaddle.h@12:2af7b4868033, 2020-05-27 (annotated)
- Committer:
- Mousky
- Date:
- Wed May 27 07:00:37 2020 +0000
- Revision:
- 12:2af7b4868033
Final Version;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Mousky | 12:2af7b4868033 | 1 | #ifndef REPADDLE_H |
Mousky | 12:2af7b4868033 | 2 | #define REPADDLE_H |
Mousky | 12:2af7b4868033 | 3 | |
Mousky | 12:2af7b4868033 | 4 | #include "mbed.h" |
Mousky | 12:2af7b4868033 | 5 | #include "N5110.h" |
Mousky | 12:2af7b4868033 | 6 | #include "Gamepad.h" |
Mousky | 12:2af7b4868033 | 7 | #include "Paddle.h" |
Mousky | 12:2af7b4868033 | 8 | |
Mousky | 12:2af7b4868033 | 9 | class RePaddle |
Mousky | 12:2af7b4868033 | 10 | { |
Mousky | 12:2af7b4868033 | 11 | public: |
Mousky | 12:2af7b4868033 | 12 | RePaddle(); |
Mousky | 12:2af7b4868033 | 13 | ~RePaddle(); |
Mousky | 12:2af7b4868033 | 14 | void init(int size); |
Mousky | 12:2af7b4868033 | 15 | void draw(N5110 &lcd); |
Mousky | 12:2af7b4868033 | 16 | Vector2D get_pos(); |
Mousky | 12:2af7b4868033 | 17 | void set_pos(Vector2D p); |
Mousky | 12:2af7b4868033 | 18 | private: |
Mousky | 12:2af7b4868033 | 19 | int _size; |
Mousky | 12:2af7b4868033 | 20 | int _x; |
Mousky | 12:2af7b4868033 | 21 | int _y; |
Mousky | 12:2af7b4868033 | 22 | }; |
Mousky | 12:2af7b4868033 | 23 | #endif |