20 if(fieldSize.
x > 2 && fieldSize.
y > 2)
24 distributionX = *(
new std::uniform_int_distribution<int>(1, fieldSize.
x - 1));
25 distributionY = *(
new std::uniform_int_distribution<int>(1, fieldSize.
y - 1));
std::mt19937 * getRandomEngine()
definitions and prototypes for Ball class
Point getCoords()
Get the ball coords without giving the direct access.
bool init(Point dim)
Initialization.
std::mt19937 randomEngine
std::uniform_int_distribution< int > distributionX
bool setCoords(Point p)
Sets coordinates of the ball to given if they are correct.
std::uniform_int_distribution< int > distributionY
Coordinates and style of the cell in console window.