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
Pup/Pup.h@13:cfdfe60a2327, 2020-05-18 (annotated)
- Committer:
- el18jgb
- Date:
- Mon May 18 15:46:04 2020 +0000
- Revision:
- 13:cfdfe60a2327
- Parent:
- Pup.h@7:04a7826ff7e4
- Child:
- 19:33c77517cb88
good bit of a clean up to create and test new functions withing classes with ease;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
el18jgb | 7:04a7826ff7e4 | 1 | #ifndef PUP_H |
el18jgb | 7:04a7826ff7e4 | 2 | #define PUP_H |
el18jgb | 7:04a7826ff7e4 | 3 | |
el18jgb | 7:04a7826ff7e4 | 4 | #include "mbed.h" |
el18jgb | 7:04a7826ff7e4 | 5 | #include "N5110.h" |
el18jgb | 7:04a7826ff7e4 | 6 | #include "Gamepad.h" |
el18jgb | 7:04a7826ff7e4 | 7 | #include "Aim.h" |
el18jgb | 7:04a7826ff7e4 | 8 | #include "Heston.h" |
el18jgb | 7:04a7826ff7e4 | 9 | |
el18jgb | 7:04a7826ff7e4 | 10 | /** Power up Class |
el18jgb | 7:04a7826ff7e4 | 11 | @date april 2020 |
el18jgb | 7:04a7826ff7e4 | 12 | */ |
el18jgb | 7:04a7826ff7e4 | 13 | |
el18jgb | 7:04a7826ff7e4 | 14 | class Pup |
el18jgb | 7:04a7826ff7e4 | 15 | { |
el18jgb | 7:04a7826ff7e4 | 16 | |
el18jgb | 7:04a7826ff7e4 | 17 | public: |
el18jgb | 7:04a7826ff7e4 | 18 | Pup(); |
el18jgb | 7:04a7826ff7e4 | 19 | ~Pup(); |
el18jgb | 7:04a7826ff7e4 | 20 | void init(); |
el18jgb | 7:04a7826ff7e4 | 21 | void draw(N5110 &lcd, bool state); |
el18jgb | 7:04a7826ff7e4 | 22 | void position(int x, int y); |
el18jgb | 7:04a7826ff7e4 | 23 | Vector2D get_pos(); |
el18jgb | 7:04a7826ff7e4 | 24 | |
el18jgb | 7:04a7826ff7e4 | 25 | private: |
el18jgb | 7:04a7826ff7e4 | 26 | |
el18jgb | 7:04a7826ff7e4 | 27 | int _height; |
el18jgb | 7:04a7826ff7e4 | 28 | int _width; |
el18jgb | 7:04a7826ff7e4 | 29 | int _x; |
el18jgb | 7:04a7826ff7e4 | 30 | int _y; |
el18jgb | 7:04a7826ff7e4 | 31 | |
el18jgb | 7:04a7826ff7e4 | 32 | }; |
el18jgb | 7:04a7826ff7e4 | 33 | |
el18jgb | 7:04a7826ff7e4 | 34 | #endif |