shorthand names without being to short for clarity
This commit is contained in:
+9
-9
@@ -10,19 +10,19 @@ enum Direction {
|
||||
RIGHT = 1
|
||||
};
|
||||
|
||||
struct Point {
|
||||
struct Vector2i {
|
||||
int x, y;
|
||||
char m_symbol;
|
||||
char id;
|
||||
enum Direction m_dir;
|
||||
Point() : x(0), y(0), m_symbol('@') {}
|
||||
Point(int x, int y, char s) : x(x), y(y), m_symbol(s) {}
|
||||
void set_new_point(int x, int y);
|
||||
Vector2i() : x(0), y(0), id('@') {}
|
||||
Vector2i(int x, int y, char s) : x(x), y(y), id(s) {}
|
||||
void set(int x, int y);
|
||||
};
|
||||
|
||||
int get_score();
|
||||
void determine_index_zero_pos(Point** buffer);
|
||||
void move_tail_indicies(Point** buffer);
|
||||
void on_fruit_eaten(Point (*board)[COL], Point** buffer);
|
||||
bool segment_overlap(Point** buffer);
|
||||
void determine_index_zero_pos(Vector2i** buf);
|
||||
void move_tail_indicies(Vector2i** buf);
|
||||
void on_fruit_eaten(Vector2i (*board)[COL], Vector2i** buf);
|
||||
bool segment_overlap(Vector2i** buf);
|
||||
|
||||
#endif // ELEMENT_HPP
|
||||
|
||||
Reference in New Issue
Block a user