feat: _check_collision for stage one of checks to collide
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user