game is in a working state again, now just cleaning up
This commit is contained in:
+1
-10
@@ -3,14 +3,12 @@
|
||||
|
||||
#include "globals.hpp"
|
||||
|
||||
static int _score = 0;
|
||||
|
||||
struct Point {
|
||||
int m_row;
|
||||
int m_col;
|
||||
char m_symbol;
|
||||
int m_direction;
|
||||
Point() : m_row(0), m_col(0), m_symbol('@') {}
|
||||
Point() : m_row(-1), m_col(-1), m_symbol('@') {}
|
||||
Point(int x, int y, char s) : m_row(x), m_col(y), m_symbol(s) {}
|
||||
Point(int x, int y, char s, int d) : m_row(x), m_col(y), m_symbol(s), m_direction(d) {}
|
||||
void to_string();
|
||||
@@ -19,13 +17,6 @@ struct Point {
|
||||
|
||||
void determine_index_zero_pos(Point* (*board)[COL], Point** segments);
|
||||
void move_tail_indicies(Point** segments);
|
||||
void input_new_tail(Point *(*board)[10], Point** segments);
|
||||
void on_fruit_eaten(Point* (*board)[COL], Point** segments);
|
||||
|
||||
struct Fruit {
|
||||
Fruit();
|
||||
Point m_point {0, 0, 'o'};
|
||||
void on_fruit_eaten(Point* (*board)[COL], Point** segments);
|
||||
};
|
||||
|
||||
#endif // ELEMENT_HPP
|
||||
|
||||
Reference in New Issue
Block a user