feat: fruits, globals, input, snake, point, window
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
#ifndef POINT_HPP
|
||||
#define POINT_HPP
|
||||
|
||||
#include <array>
|
||||
#include "globals.hpp"
|
||||
|
||||
struct Point {
|
||||
int m_row;
|
||||
int m_col;
|
||||
Point() {}
|
||||
Point(int x, int y) : m_row(x), m_col(y) {}
|
||||
|
||||
std::string get_point() const;
|
||||
void clear(std::array<std::array<char, COL>, ROW> &arr) const;
|
||||
std::pair<int, int> get_point(int direction, int row, int col);
|
||||
};
|
||||
|
||||
#endif // POINT_HPP
|
||||
Reference in New Issue
Block a user