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
move/Move.h
- Committer:
- jiaxinZHOU
- Date:
- 2019-05-08
- Revision:
- 0:07c4fef6c0af
- Child:
- 1:538386e72e40
File content as of revision 0:07c4fef6c0af:
#ifndef MOVE_H #define MOVE_H #include "mbed.h" #include "N5110.h" #include "Gamepad.h" struct SnakeBody{ char _xx[4000]; char _yy[4000]; char _dir; }; struct Food{ char a; char b; }; class Move { public: Move(); ~Move(); void initial(); void onlcd(N5110 &lcd); void update(Gamepad &pad); void updatebody(); void getfood(); void die(N5110 &lcd ,Gamepad &pad); void eatfood(); private: int _x; int _y; int _length; Direction _d; }; #endif