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
Coin/Coin.h
- Committer:
- lewisgw
- Date:
- 2019-04-06
- Revision:
- 15:876c047a6ec9
- Child:
- 21:20478f086bc2
File content as of revision 15:876c047a6ec9:
/** 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