optimizations
This commit is contained in:
+1
-1
@@ -24,7 +24,7 @@ struct Point {
|
||||
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);
|
||||
void on_fruit_eaten(Point (*board)[COL], Point** buffer);
|
||||
bool segment_overlap(Point** buffer);
|
||||
|
||||
#endif // ELEMENT_HPP
|
||||
|
||||
+1
-4
@@ -2,9 +2,6 @@
|
||||
#define INPUT_HPP
|
||||
#include "element.hpp"
|
||||
|
||||
struct Input {
|
||||
int m_getch = 0;
|
||||
void get_input(enum Direction &dir, bool &r);
|
||||
};
|
||||
void get_input(enum Direction &dir, bool &r);
|
||||
|
||||
#endif // INPUT_HPP
|
||||
|
||||
+1
-1
@@ -5,7 +5,7 @@
|
||||
#include "element.hpp"
|
||||
|
||||
struct Window {
|
||||
Point* m_board[ROW][COL] = {};
|
||||
Point m_board[ROW][COL] = {};
|
||||
void clear_display();
|
||||
void draw_display(int milliseconds);
|
||||
void update_display(Point** buffer);
|
||||
|
||||
Reference in New Issue
Block a user