#ifndef SNAKE_HPP #define SNAKE_HPP #include #include "point.hpp" struct Snake { Snake(int default_direction, int row, int col); Point m_head; std::vector m_tails; int m_direction; // 1: Down, 2: Up, 3: Left, 4: Right void create_tail(int row, int col); // Adds a new tail to m_tails at { row, col } void get_new_tail_point(int tail_index, int direction); }; #endif