ELEC2645 (2018/19) / Mbed 2 deprecated el17lw

Dependencies:   mbed

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