![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
Final Submission. I have read and agreed with Statement of Academic Integrity.
Dependencies: mbed Gamepad N5110 Joystick
Snake/Snake.h
- Committer:
- el16dlc
- Date:
- 2019-05-09
- Revision:
- 4:0fc3441556e1
- Parent:
- 3:660de4311976
- Child:
- 10:aedca0082855
File content as of revision 4:0fc3441556e1:
#ifndef SNAKE_H #define SNAKE_H #include "mbed.h" #include "N5110.h" #include "Gamepad.h" class Snake { public: // constructor Snake(); // destructor ~Snake(); void init(); void draw_head(N5110 &lcd); void set_snake_posX(int snake_posX); // mutators void set_snake_posY(int snake_posY); int get_snake_posX(); //accessors int get_snake_posY(); void draw_food(N5110 &lcd); void set_food_posX(int food_posX); // mutators void set_food_posY(int food_posY); int get_food_posX(); //accessors int get_food_posY(); private: int _snake_posX; int _snake_posY; int _food_posX; int _food_posY; }; #endif