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@10:28575a6eaa13, 2019-05-07 (annotated)
- Committer:
- Kern_EL17KJTF
- Date:
- Tue May 07 22:49:13 2019 +0000
- Revision:
- 10:28575a6eaa13
- Child:
- 11:b288d01533cc
Classes setup without error.
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 | 10:28575a6eaa13 | 15 | class Barrel |
Kern_EL17KJTF | 10:28575a6eaa13 | 16 | { |
Kern_EL17KJTF | 10:28575a6eaa13 | 17 | |
Kern_EL17KJTF | 10:28575a6eaa13 | 18 | public: |
Kern_EL17KJTF | 10:28575a6eaa13 | 19 | |
Kern_EL17KJTF | 10:28575a6eaa13 | 20 | int barrel_x; |
Kern_EL17KJTF | 10:28575a6eaa13 | 21 | int barrel_y; |
Kern_EL17KJTF | 10:28575a6eaa13 | 22 | int barrel_speed; |
Kern_EL17KJTF | 10:28575a6eaa13 | 23 | int barrel_min; |
Kern_EL17KJTF | 10:28575a6eaa13 | 24 | int barrel_max; |
Kern_EL17KJTF | 10:28575a6eaa13 | 25 | float barrel_time; |
Kern_EL17KJTF | 10:28575a6eaa13 | 26 | int running; |
Kern_EL17KJTF | 10:28575a6eaa13 | 27 | |
Kern_EL17KJTF | 10:28575a6eaa13 | 28 | Barrel(); |
Kern_EL17KJTF | 10:28575a6eaa13 | 29 | |
Kern_EL17KJTF | 10:28575a6eaa13 | 30 | ~Barrel(); |
Kern_EL17KJTF | 10:28575a6eaa13 | 31 | |
Kern_EL17KJTF | 10:28575a6eaa13 | 32 | void barrel_init(); |
Kern_EL17KJTF | 10:28575a6eaa13 | 33 | void barrel_drop(Gamepad &pad, N5110 &lcd, Donkey &dky); |
Kern_EL17KJTF | 10:28575a6eaa13 | 34 | }; |
Kern_EL17KJTF | 10:28575a6eaa13 | 35 | |
Kern_EL17KJTF | 10:28575a6eaa13 | 36 | |
Kern_EL17KJTF | 10:28575a6eaa13 | 37 | #endif |