SimpleLib_03272011

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers Snake.h Source File

Snake.h

00001 #define Node struct NodeStruct
00002 
00003 Node
00004 {
00005     int x, y;
00006     Node * next;
00007 };
00008 
00009 class Snake
00010 {
00011     public:
00012         Snake( );
00013         void addHead( int xC, int yC );
00014         void removeTail( );
00015         int getTailXCor();
00016         int getTailYCor();
00017         int getSize();
00018         
00019     private:
00020         Node * head;
00021         Node * tail;
00022         int size;
00023 };