12 lines
215 B
C++
12 lines
215 B
C++
#ifndef SNAKE_HPP
|
|
#define SNAKE_HPP
|
|
|
|
struct Snake {
|
|
Snake(int default_direction);
|
|
int get_direction() const;
|
|
void set_direction(int x);
|
|
int direction; // 1: Down, 2: Up, 3: Left, 4: Right
|
|
};
|
|
|
|
#endif
|