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@8:0c6d6ed55851, 2020-05-22 (annotated)
- Committer:
- Albutt
- Date:
- Fri May 22 16:54:10 2020 +0000
- Revision:
- 8:0c6d6ed55851
- Parent:
- 6:546eba371942
- Child:
- 9:62fe47a1374f
Collision with Enemy
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 | 6:546eba371942 | 9 | Enemy(int seed); |
| Albutt | 5:51fd6635141f | 10 | ~Enemy(); |
| Albutt | 5:51fd6635141f | 11 | void init(); |
| Albutt | 5:51fd6635141f | 12 | void draw(N5110 &lcd); |
| Albutt | 5:51fd6635141f | 13 | void update(int player_x, int player_y); |
| Albutt | 5:51fd6635141f | 14 | int get_x(); |
| Albutt | 5:51fd6635141f | 15 | int get_y(); |
| Albutt | 8:0c6d6ed55851 | 16 | void reset(int seed); |
| Albutt | 8:0c6d6ed55851 | 17 | void dead(); |
| Albutt | 5:51fd6635141f | 18 | private: |
| Albutt | 5:51fd6635141f | 19 | int _x; |
| Albutt | 5:51fd6635141f | 20 | int _y; |
| Albutt | 5:51fd6635141f | 21 | int _speed; |
| Albutt | 8:0c6d6ed55851 | 22 | int four; |
| Albutt | 5:51fd6635141f | 23 | }; |