feat: added bird, removed line in readme as it no longer applies

This commit is contained in:
DarthMooMancer
2025-09-03 09:17:52 -04:00
parent 100ecc61f5
commit 2a728c5fda
9 changed files with 24 additions and 10 deletions
+2 -1
View File
@@ -2,13 +2,14 @@
#define ELEMENTS_HPP
struct Point {
Point();
Point(int row, int col) : m_row(row), m_col(col) {};
int m_row;
int m_col;
};
struct Bird {
Point m_body;
};
#endif
+2 -2
View File
@@ -1,10 +1,10 @@
#ifndef INPUT_HPP
#define INPUT_HPP
// #include "elements.hpp"
#include "elements.hpp"
struct Input {
int _getch = 0;
void get_input(bool &running);
void get_input(bool &running, Bird &bird);
};
#endif
+2 -2
View File
@@ -3,11 +3,11 @@
#include <array>
#include "globals.hpp"
// #include "elements.hpp"
#include "elements.hpp"
struct Window {
std::array<std::array<char, COL>, ROW> m_board = {};
void update_display();
void update_display(Bird &bird);
};
#endif