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
Enemy/Enemy.h@5:51fd6635141f, 2020-05-20 (annotated)
- Committer:
- Albutt
- Date:
- Wed May 20 21:39:09 2020 +0000
- Revision:
- 5:51fd6635141f
- Child:
- 6:546eba371942
Enemy Class Finished;
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| Albutt | 5:51fd6635141f | 1 | #include "mbed.h" |
| Albutt | 5:51fd6635141f | 2 | #include "N5110.h" |
| Albutt | 5:51fd6635141f | 3 | #include "Gamepad.h" |
| Albutt | 5:51fd6635141f | 4 | |
| Albutt | 5:51fd6635141f | 5 | |
| Albutt | 5:51fd6635141f | 6 | class Enemy |
| Albutt | 5:51fd6635141f | 7 | { |
| Albutt | 5:51fd6635141f | 8 | public: |
| Albutt | 5:51fd6635141f | 9 | |
| Albutt | 5:51fd6635141f | 10 | Enemy(); |
| Albutt | 5:51fd6635141f | 11 | ~Enemy(); |
| Albutt | 5:51fd6635141f | 12 | void init(); |
| Albutt | 5:51fd6635141f | 13 | void draw(N5110 &lcd); |
| Albutt | 5:51fd6635141f | 14 | void update(int player_x, int player_y); |
| Albutt | 5:51fd6635141f | 15 | int get_x(); |
| Albutt | 5:51fd6635141f | 16 | int get_y(); |
| Albutt | 5:51fd6635141f | 17 | |
| Albutt | 5:51fd6635141f | 18 | private: |
| Albutt | 5:51fd6635141f | 19 | |
| Albutt | 5:51fd6635141f | 20 | int _x; |
| Albutt | 5:51fd6635141f | 21 | int _y; |
| Albutt | 5:51fd6635141f | 22 | int _speed; |
| Albutt | 5:51fd6635141f | 23 | }; |