ELEC2645 (2018/19) / Mbed 2 deprecated el17lw

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