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
Basket.h@1:1144f48b5965, 2020-04-22 (annotated)
- Committer:
- el18jgb
- Date:
- Wed Apr 22 16:00:38 2020 +0000
- Revision:
- 1:1144f48b5965
there's a basket thing that moves side to side! woo!
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
el18jgb | 1:1144f48b5965 | 1 | #ifndef BASKET_H |
el18jgb | 1:1144f48b5965 | 2 | #define BASKET_H |
el18jgb | 1:1144f48b5965 | 3 | |
el18jgb | 1:1144f48b5965 | 4 | #include "mbed.h" |
el18jgb | 1:1144f48b5965 | 5 | #include "N5110.h" |
el18jgb | 1:1144f48b5965 | 6 | #include "Gamepad.h" |
el18jgb | 1:1144f48b5965 | 7 | |
el18jgb | 1:1144f48b5965 | 8 | /** Basket Class |
el18jgb | 1:1144f48b5965 | 9 | @date april 2020 |
el18jgb | 1:1144f48b5965 | 10 | */ |
el18jgb | 1:1144f48b5965 | 11 | |
el18jgb | 1:1144f48b5965 | 12 | class Basket |
el18jgb | 1:1144f48b5965 | 13 | { |
el18jgb | 1:1144f48b5965 | 14 | |
el18jgb | 1:1144f48b5965 | 15 | public: |
el18jgb | 1:1144f48b5965 | 16 | Basket(); |
el18jgb | 1:1144f48b5965 | 17 | ~Basket(); |
el18jgb | 1:1144f48b5965 | 18 | void init(); |
el18jgb | 1:1144f48b5965 | 19 | void draw(N5110 &lcd); |
el18jgb | 1:1144f48b5965 | 20 | void update(Gamepad &pad); |
el18jgb | 1:1144f48b5965 | 21 | //Vector2D get_pos(); |
el18jgb | 1:1144f48b5965 | 22 | |
el18jgb | 1:1144f48b5965 | 23 | private: |
el18jgb | 1:1144f48b5965 | 24 | |
el18jgb | 1:1144f48b5965 | 25 | int _height; |
el18jgb | 1:1144f48b5965 | 26 | int _width; |
el18jgb | 1:1144f48b5965 | 27 | int _x; |
el18jgb | 1:1144f48b5965 | 28 | int _y; |
el18jgb | 1:1144f48b5965 | 29 | //int d; |
el18jgb | 1:1144f48b5965 | 30 | float mag; |
el18jgb | 1:1144f48b5965 | 31 | int _speed; |
el18jgb | 1:1144f48b5965 | 32 | |
el18jgb | 1:1144f48b5965 | 33 | }; |
el18jgb | 1:1144f48b5965 | 34 | #endif |