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.
Diff: Snake/Snake.h
- Revision:
- 18:b391caa5754c
- Parent:
- 17:54e13faeaf64
- Child:
- 19:05cc9f801468
diff -r 54e13faeaf64 -r b391caa5754c Snake/Snake.h
--- a/Snake/Snake.h	Fri Apr 05 06:28:13 2019 +0000
+++ b/Snake/Snake.h	Mon Apr 08 05:57:04 2019 +0000
@@ -30,7 +30,13 @@
     *
     *   This function updates the Snake sprite position on screen.
     */
-    void update(Direction d,float mag,int length, int speed);
+    void update(Direction d,float mag,int length, int speed, int* b0_to_b14);
+    
+    /** Set Position
+    *
+    *   This function is used to change the position of the snake sprites to specific coordinates when called.
+    */
+    void set_pos(Vector2D s);
     
     /** Get Position
     *
@@ -51,9 +57,23 @@
     Vector2D get_pos_before12(int length);
     Vector2D get_pos_before13(int length);
     Vector2D get_pos_before14(int length);
-    Vector2D get_pos_before15(int length);
     
     int m;
+    int b0;
+    int b1;
+    int b2;
+    int b3;
+    int b4;
+    int b5;
+    int b6;
+    int b7;
+    int b8;
+    int b9;
+    int b10;
+    int b11;
+    int b12;
+    int b13;
+    int b14; 
     private:
     int _speed;
     int _x;