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
Diff: Snake/Snake.h
- Revision:
- 19:b437806e579b
- Parent:
- 18:406fc298a7c4
- Child:
- 21:63c5590cb2c2
diff -r 406fc298a7c4 -r b437806e579b Snake/Snake.h
--- a/Snake/Snake.h Mon Apr 30 08:11:40 2018 +0000
+++ b/Snake/Snake.h Mon Apr 30 10:13:35 2018 +0000
@@ -34,12 +34,18 @@
Snake(); // constructor
~Snake(); // destructor
- void init(Direction in, Direction cur);
+ void init(Direction in, Direction cur, int pos_x, int pos_y);
void update(Direction in, Direction cur);
void draw(N5110 &lcd);
void set_snake_direction(Direction input, Direction current);
+ void set_current(Direction input, Direction current);
+ void set_north(Direction input, Direction current);
+ void set_east(Direction input, Direction current);
+ void set_south(Direction input, Direction current);
+ void set_west(Direction input, Direction current);
+
Direction get_snake_direction();
void set_current_direction(Direction input);