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.
Diff: lib/Barrel/Barrel.h
- Revision:
- 10:28575a6eaa13
- Child:
- 11:b288d01533cc
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/lib/Barrel/Barrel.h Tue May 07 22:49:13 2019 +0000 @@ -0,0 +1,37 @@ +/* +ELEC2645 Project +Barrel.h +Class file for Barrel in Donkey Kong game. +*/ + +#ifndef BARREL_H +#define BARREL_H + +#include "mbed.h" +#include "N5110.h" +#include "Barrel.h" +#include "Donkey.h" + +class Barrel +{ + + public: + + int barrel_x; + int barrel_y; + int barrel_speed; + int barrel_min; + int barrel_max; + float barrel_time; + int running; + + Barrel(); + + ~Barrel(); + + void barrel_init(); + void barrel_drop(Gamepad &pad, N5110 &lcd, Donkey &dky); +}; + + +#endif \ No newline at end of file