/include/point.hpp |
---|
0,0 → 1,9 |
struct point |
{ |
public: |
point(int x, int y); |
~point(); |
int X; |
int Y; |
} |
/include/snake.hpp |
---|
0,0 → 1,17 |
#include "point.hpp" |
#include <vector> |
class snake |
{ |
public: |
snake(); |
~snake(); |
nextPoint(point newPoint); |
vector<point> points; // list of points snake occupies |
// colour |
int R; |
int G; |
int B; |
}; |