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.
Map/Map.h@3:3d35ab70b565, 2019-05-06 (annotated)
- Committer:
- el17ttds
- Date:
- Mon May 06 19:50:27 2019 +0000
- Revision:
- 3:3d35ab70b565
- Parent:
- 2:ee9b361ba6df
- Child:
- 4:3446009e2f38
Full movement on map
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
el17ttds | 2:ee9b361ba6df | 1 | #include "mbed.h" |
el17ttds | 2:ee9b361ba6df | 2 | #include "N5110.h" |
el17ttds | 2:ee9b361ba6df | 3 | #include "Gamepad.h" |
el17ttds | 2:ee9b361ba6df | 4 | |
el17ttds | 2:ee9b361ba6df | 5 | class Map { |
el17ttds | 3:3d35ab70b565 | 6 | |
el17ttds | 2:ee9b361ba6df | 7 | public: |
el17ttds | 2:ee9b361ba6df | 8 | Map(); |
el17ttds | 3:3d35ab70b565 | 9 | void init(int width, int height, int swidth, int sheight); |
el17ttds | 2:ee9b361ba6df | 10 | void write(int pix_x, int pix_y); |
el17ttds | 2:ee9b361ba6df | 11 | void draw(N5110 &lcd); |
el17ttds | 2:ee9b361ba6df | 12 | private: |
el17ttds | 2:ee9b361ba6df | 13 | int _w; |
el17ttds | 2:ee9b361ba6df | 14 | int _h; |
el17ttds | 2:ee9b361ba6df | 15 | int _x1; |
el17ttds | 2:ee9b361ba6df | 16 | int _x2; |
el17ttds | 2:ee9b361ba6df | 17 | int _y1; |
el17ttds | 2:ee9b361ba6df | 18 | int _y2; |
el17ttds | 3:3d35ab70b565 | 19 | int _swidth; |
el17ttds | 3:3d35ab70b565 | 20 | int _sheight; |
el17ttds | 3:3d35ab70b565 | 21 | int _x1_pos; |
el17ttds | 3:3d35ab70b565 | 22 | int _y1_pos; |
el17ttds | 2:ee9b361ba6df | 23 | }; |