removing points list and trying to work with the board along
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user