feat: _check_collision for stage one of checks to collide

This commit is contained in:
DarthMooMancer
2025-09-16 09:10:41 -04:00
parent 3d184ee7a7
commit c25beb21fb
4 changed files with 74 additions and 20 deletions
+4 -3
View File
@@ -2,17 +2,18 @@
#define ELEMENTS_HPP
#include <vector>
#include "globals.hpp"
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') {};
Point() : m_row(0), m_col(0), m_symbol(2), m_direction('n'), m_collide(false) {};
Point(int row, int col) : m_row(row), m_col(col), m_symbol(2), m_direction('n'), m_collide(false) {};
char m_direction;
int m_row;
int m_col;
int m_symbol;
bool m_collide;
void assign();
void assign(int row, int col);
std::string to_string();
};
struct PointCollection {