Subversion Repositories sssnakesss

Rev

Rev 12 | Rev 14 | 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();
}