Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef SNAKE_H_INCLUDED
- #define SNAKE_H_INCLUDED
- #include <deque>
- class SnakeHead {
- private:
- int posX, posY;
- // Snake head functions
- void input();
- void movement();
- };
- class SnakePart {
- private:
- std::deque<SnakePart> parts;
- void advance(int x, int y, bool loose_tail);
- };
- #endif // SNAKE_H_INCLUDED
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement