remove: to_string in elements
This commit is contained in:
@@ -10,7 +10,6 @@ struct Point {
|
|||||||
int m_col;
|
int m_col;
|
||||||
char m_symbol;
|
char m_symbol;
|
||||||
void assign(int row, int col);
|
void assign(int row, int col);
|
||||||
void to_string();
|
|
||||||
};
|
};
|
||||||
|
|
||||||
struct Bird {
|
struct Bird {
|
||||||
|
|||||||
@@ -6,10 +6,6 @@ void Point::assign(int row, int col) {
|
|||||||
m_col = col;
|
m_col = col;
|
||||||
}
|
}
|
||||||
|
|
||||||
void Point::to_string() {
|
|
||||||
std::cout << "(" << m_row << ", " << m_col << ")" << std::endl;
|
|
||||||
}
|
|
||||||
|
|
||||||
void Bird::move() {
|
void Bird::move() {
|
||||||
if(m_fly) {
|
if(m_fly) {
|
||||||
m_body.m_row--;
|
m_body.m_row--;
|
||||||
|
|||||||
Reference in New Issue
Block a user