Subversion Repositories sssnakesss

Rev

Rev 11 | Rev 13 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

#include <vector>

using namespace std;

#include "point.hpp"
#include "snake.hpp"

Snake::Snake()
{
    R = 255;
    G = 255;
    B = 0;
    direction = up;
}

void Snake::nextPoint(Point newPoint)
{
    points.insert(points.begin(), newPoint);
    points.pop_back();
}