Files
snake/include/fruit.hpp
T

17 lines
326 B
C++

#ifndef FRUIT_HPP
#define FRUIT_HPP
#include "point.hpp"
struct Fruit {
Fruit();
int unsigned m_row;
int unsigned m_col;
int unsigned m_total_eaten;
Point m_point;
void create_point();
void reset(std::array<std::array<char, COL>, ROW> &arr, int row, int col, int &score);
};
#endif // FRUIT_HPP