This commit is contained in:
DarthMooMancer
2025-05-12 17:15:25 -04:00
parent ad605dd7a2
commit ff942631aa
16 changed files with 96 additions and 73 deletions
+9 -3
View File
@@ -1,11 +1,17 @@
#ifndef SNAKE_HPP
#define SNAKE_HPP
#include <vector>
#include "point.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
void create_tail(int row, int col);
void update_tails_count();
std::vector<Point> m_tails;
int m_direction; // 1: Down, 2: Up, 3: Left, 4: Right
int m_tails_count;
};
#endif