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.
lib/Barrel/Barrel.h@11:b288d01533cc, 2019-05-07 (annotated)
- Committer:
- Kern_EL17KJTF
- Date:
- Tue May 07 23:01:46 2019 +0000
- Revision:
- 11:b288d01533cc
- Parent:
- 10:28575a6eaa13
- Child:
- 18:80c47cfe9802
External variables implemented and working.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Kern_EL17KJTF | 10:28575a6eaa13 | 1 | /* |
Kern_EL17KJTF | 10:28575a6eaa13 | 2 | ELEC2645 Project |
Kern_EL17KJTF | 10:28575a6eaa13 | 3 | Barrel.h |
Kern_EL17KJTF | 10:28575a6eaa13 | 4 | Class file for Barrel in Donkey Kong game. |
Kern_EL17KJTF | 10:28575a6eaa13 | 5 | */ |
Kern_EL17KJTF | 10:28575a6eaa13 | 6 | |
Kern_EL17KJTF | 10:28575a6eaa13 | 7 | #ifndef BARREL_H |
Kern_EL17KJTF | 10:28575a6eaa13 | 8 | #define BARREL_H |
Kern_EL17KJTF | 10:28575a6eaa13 | 9 | |
Kern_EL17KJTF | 10:28575a6eaa13 | 10 | #include "mbed.h" |
Kern_EL17KJTF | 10:28575a6eaa13 | 11 | #include "N5110.h" |
Kern_EL17KJTF | 10:28575a6eaa13 | 12 | #include "Barrel.h" |
Kern_EL17KJTF | 10:28575a6eaa13 | 13 | #include "Donkey.h" |
Kern_EL17KJTF | 10:28575a6eaa13 | 14 | |
Kern_EL17KJTF | 11:b288d01533cc | 15 | extern int barrel_x; |
Kern_EL17KJTF | 11:b288d01533cc | 16 | extern int barrel_y; |
Kern_EL17KJTF | 11:b288d01533cc | 17 | extern int barrel_speed; |
Kern_EL17KJTF | 11:b288d01533cc | 18 | extern int barrel_min; |
Kern_EL17KJTF | 11:b288d01533cc | 19 | extern int barrel_max; |
Kern_EL17KJTF | 11:b288d01533cc | 20 | extern float barrel_time; |
Kern_EL17KJTF | 11:b288d01533cc | 21 | extern int running; |
Kern_EL17KJTF | 11:b288d01533cc | 22 | |
Kern_EL17KJTF | 10:28575a6eaa13 | 23 | class Barrel |
Kern_EL17KJTF | 10:28575a6eaa13 | 24 | { |
Kern_EL17KJTF | 10:28575a6eaa13 | 25 | |
Kern_EL17KJTF | 10:28575a6eaa13 | 26 | public: |
Kern_EL17KJTF | 10:28575a6eaa13 | 27 | |
Kern_EL17KJTF | 10:28575a6eaa13 | 28 | |
Kern_EL17KJTF | 10:28575a6eaa13 | 29 | Barrel(); |
Kern_EL17KJTF | 10:28575a6eaa13 | 30 | |
Kern_EL17KJTF | 10:28575a6eaa13 | 31 | ~Barrel(); |
Kern_EL17KJTF | 10:28575a6eaa13 | 32 | void barrel_drop(Gamepad &pad, N5110 &lcd, Donkey &dky); |
Kern_EL17KJTF | 10:28575a6eaa13 | 33 | }; |
Kern_EL17KJTF | 10:28575a6eaa13 | 34 | |
Kern_EL17KJTF | 10:28575a6eaa13 | 35 | |
Kern_EL17KJTF | 10:28575a6eaa13 | 36 | #endif |