
Final Commit
Dependencies: mbed
Food/Food.h
- Committer:
- JRM1986
- Date:
- 2018-03-22
- Revision:
- 8:a2b431b9b3f7
- Parent:
- 7:c38800a428a6
- Child:
- 15:4c97fe30f3b7
File content as of revision 8:a2b431b9b3f7:
#ifndef FOOD_H #define FOOD_H #include "mbed.h" #include "FXOS8700CQ.h" #include "Gamepad.h" #include "N5110.h" /** Food Class * @brief Describes the methods and functions for the food * @author Joshua R. Marshall * @date Feb, 2018 */ class Food { public: Food(); // constructor ~Food(); // destructor void init(int pos_x, int pos_y); void update(); void draw(N5110 &lcd); // draws the food on the lcd Vector2D get_rand_pos(); // gets a random number between 0-48, and 0 - 84 private: int _x; int _y; }; #endif