Rev 12 | Rev 14 | 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); |
||
| 18 | |||
| 19 | // Stuff that should be private |
||
| 20 | vector<Point> points; // list of points snake occupies |
||
| 21 | |||
| 22 | // Colour Values |
||
| 23 | int R; |
||
| 24 | int G; |
||
| 25 | int B; |
||
| 26 | |||
| 27 | Direction direction; |
||
| 28 | |||
| 29 | }; |
||
| 30 | |||
| 31 | #endif // SNAKE_HPP |