Files
snake/include/point.hpp
T
2025-05-12 17:15:25 -04:00

19 lines
381 B
C++

#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 to_string() 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