Subversion Repositories sssnakesss

Rev

Rev 10 | Rev 12 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
10 tom 1
#include <vector>
2
 
3
using namespace std;
4
 
5
#include "point.hpp"
9 freddie 6
#include "snake.hpp"
7
 
10 tom 8
Snake::Snake()
9 freddie 9
{
11 freddie 10
    R = 255;
11
    G = 255;
12
    B = 0;
10 tom 13
}
14
 
15
void Snake::nextPoint(Point newPoint)
16
{
11 freddie 17
    points.insert(points.begin(), newPoint);
18
    points.pop_back();
10 tom 19
}