|
Snoke
|
Describes the Ball entity of the game. More...
#include <ball.h>

Public Member Functions | |
| bool | init (Point dim) |
| Initialization. More... | |
| Point | getCoords () |
| Get the ball coords without giving the direct access. More... | |
| bool | setCoords (Point p) |
| Sets coordinates of the ball to given if they are correct. More... | |
| std::mt19937 * | getRandomEngine () |
Public Attributes | |
| std::uniform_int_distribution< int > | distributionX |
| std::uniform_int_distribution< int > | distributionY |
Private Attributes | |
| Point | position |
| std::mt19937 | randomEngine |
| uint32_t | seed |
Describes the Ball entity of the game.
| position | - Coordinates(x, y) of a Ball in the Console window |
| randomEngine | - variable, responible for the 'random' during the game |
| seed_val | - value 'feeded' to the 'random' generator |
| distributionX | - an equally likely int distribution for x coordinate of a Ball |
| distributionY | - an equally likely int distribution for y coordinate of a Ball |
| Point Ball::getCoords | ( | ) |
| std::mt19937 * Ball::getRandomEngine | ( | ) |
| bool Ball::init | ( | Point | fieldSize | ) |
| bool Ball::setCoords | ( | Point | p | ) |