refactor: renamed snake to element and moved fruit to element. Removed a lot of unused functions and variables
This commit is contained in:
+2
-4
@@ -2,7 +2,6 @@
|
||||
#define POINT_HPP
|
||||
|
||||
#include <array>
|
||||
#include <string>
|
||||
#include "globals.hpp"
|
||||
|
||||
struct Point {
|
||||
@@ -13,9 +12,8 @@ struct Point {
|
||||
Point(int x, int y) : m_row(x), m_col(y) {}
|
||||
Point(int x, int y, int dir) : m_row(x), m_col(y), m_direction(dir) {}
|
||||
|
||||
std::string to_string() const;
|
||||
void clear(std::array<std::array<char, COL>, ROW> &arr) const;
|
||||
void set_new_point(int x, int y, int dir);
|
||||
void clear(std::array<std::array<char, COL>, ROW> &board) const;
|
||||
void set_new_point(int row, int col, int dir);
|
||||
};
|
||||
|
||||
#endif // POINT_HPP
|
||||
|
||||
Reference in New Issue
Block a user