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
Diff: Coin/Coin.h
- Revision:
- 15:876c047a6ec9
- Child:
- 21:20478f086bc2
diff -r 9861fe85c803 -r 876c047a6ec9 Coin/Coin.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Coin/Coin.h Sat Apr 06 17:13:37 2019 +0000 @@ -0,0 +1,30 @@ +/** Coin Class +* @brief Generates a coin for the skateboarder to collect * @author Lewis Wooltorton +* @date April 2019 +*/ + +#ifndef COIN_H +#define COIN_H + +#include "mbed.h" + +class Coin { + public: + Coin(); + ~Coin(); + + void init(); + void generate_coin(); + void update_coin(int rand_x, int rand_y); + int * get_coin_sprite(); + int get_coin_x(); + int get_coin_y(); + + private: + int _x; + int _y; + int _coin_counter; + bool _rotate_coin; + +}; +#endif \ No newline at end of file