Rev 13 | Rev 16 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
12 | freddie | 1 | #ifndef SNAKE_HPP |
2 | #define SNAKE_HPP |
||
3 | |||
4 | enum Direction |
||
5 | { |
||
13 | tom | 6 | Up, |
7 | Down, |
||
8 | Left, |
||
9 | Right |
||
12 | freddie | 10 | }; |
11 | |||
12 | class Snake |
||
13 | { |
||
14 | public: |
||
15 | Snake(); |
||
16 | |||
17 | void nextPoint(Point newPoint); |
||
14 | freddie | 18 | void move(); |
12 | freddie | 19 | |
20 | // Stuff that should be private |
||
21 | vector<Point> points; // list of points snake occupies |
||
22 | |||
23 | // Colour Values |
||
24 | int R; |
||
25 | int G; |
||
26 | int B; |
||
27 | |||
28 | Direction direction; |
||
29 | |||
30 | }; |
||
31 | |||
32 | #endif // SNAKE_HPP |