rework(snake): added tail get_new_point for managing tail movement
This commit is contained in:
1 parent
ff942631aa
commit
a128048a8f
12 files changed
+79
-56
No files matched your search
@@ -7,6 +7,7 @@
|
||||
struct Snake {
|
||||
Snake(int default_direction);
|
||||
void create_tail(int row, int col);
|
||||
std::pair<int, int> get_new_point(int tail_index, int direction, int row, int col);
|
||||
void update_tails_count();
|
||||
|
||||
std::vector<Point> m_tails;
|
||||
|
||||
Reference in new issue
Block a user