removing points list and trying to work with the board along

This commit is contained in:
DarthMooMancer
2025-09-18 21:32:53 -04:00
parent b446c4c158
commit 28bd852531
5 changed files with 44 additions and 21 deletions
+5 -2
View File
@@ -5,6 +5,10 @@
#include <string>
#include "globals.hpp"
struct Point;
void move(Point* board[ROW][COL]);
void create_point_on_board(Point* board[ROW][COL]);
struct Point {
Point() : m_row(0), m_col(0), m_symbol(2), m_direction('n') {};
Point(int row, int col) : m_row(row), m_col(col), m_symbol(2), m_direction('n') {};
@@ -19,9 +23,8 @@ struct Point {
struct PointCollection {
std::vector<Point> m_point_list;
void move(Point* m_board[ROW][COL]);
void collide_with_adjacent(Point* board[ROW][COL]);
void set_direction(char direction);
void set_direction(char direction, Point* board[ROW][COL]);
};
#endif