The original snake game for the mbedgc

Dependencies:   mbed EthernetNetIf HTTPClient

Fork of SimpleLib_03272011 by J.P. Armstrong

mbedGC/Snake.h

Committer:
jp
Date:
2011-04-02
Revision:
0:011be8250218

File content as of revision 0:011be8250218:

#define Node struct NodeStruct

Node
{
    int x, y;
    Node * next;
};

class Snake
{
    public:
        Snake( );
        void addHead( int xC, int yC );
        void removeTail( );
        int getTailXCor();
        int getTailYCor();
        int getSize();
        
    private:
        Node * head;
        Node * tail;
        int size;
};