Subversion Repositories sssnakesss

Rev

Rev 10 | Rev 12 | 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;
}

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