Snake game for a 5x5 LED matrix

Dependencies:   MCP23S17 mbed

Revision:
0:dc906408980e
Child:
1:5fcb94bb03db
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/snake.h	Wed Oct 09 16:23:20 2013 +0000
@@ -0,0 +1,30 @@
+#include "mbed.h"
+#include "bodyPiece.h"
+#include <list>
+
+
+typedef enum {
+    Up,Down,Left,Right
+} Direction;
+
+class snake
+{
+public:
+    snake(char startRow, char startCol);
+    void move(char newHeadRow, char newHeadCol);
+    int movementSpeed;
+    Direction movementDirection;
+    void addPiece();
+
+private:
+    std::list<bodyPiece> snakeBody;
+    int bodySize;
+};
+
+class food
+{
+public:
+    char currRow, currCol;
+    food(char row, char col);
+    void moveFood(char row, char col);
+};