![]() |
LogDoctor 3.00
Parse Apache2/Nginx/IIS logs and view dinamically generated statistics
|
Public Member Functions | |
unsigned | X () const |
Returns the position on the X-axis. | |
unsigned | Y () const |
Returns the position on the Y-axis. | |
bool | inTile (const unsigned x, const unsigned y) const |
Checks whether is there a part of the snake in the given position. | |
void | spawn (const Snake &snake, const Snake &snake_) |
Spawns the egg/rat in a new position. | |
void | move (const Snake &snake) |
Moves the rat. | |
void | update (const unsigned new_x, const unsigned new_y) |
Updates the position and direction of the entity. | |
unsigned Food::Y | ( | ) | const |
Returns the position on the Y-axis.
Returns the image