1 #ifndef LABYRINTH_LOAD_H 2 #define LABYRINTH_LOAD_H 15 TEST(Labyrinth_load, test1)
27 bool retVal = snake.
init(begin, direction, lenght);
48 char fileName[
MAXLINE] =
"testsave";
49 retVal = labyrinth.
load(fileName);
61 #endif // LABYRINTH_LOAD_H
class for containing and displaying the game field
Definitions and prototypes for Labyrinth class.
bool setLabyrinth(Point dimensions)
Sets the default values fro the variables as well as generating the labyritnh array with borders...
bool init(Point begin, short direction, int length)
Initializes snake as an entity without ancoring it anywhere.
bool load(char name[MAXLINE])
Mehod to load labyrinth from the file.
shared functions for testing
Describes the Snake entity of the game.
bool addSnake(Snake *snake)
Adding snake to the laburinth and getting the host snake(firest added snake)
void displayHandler(int displayMethod=-1)
A method which decides what dispaly method will be used in each situation.
Coordinates and style of the cell in console window.
TEST(Labyrinth_load, test1)
const int MVDOWN
snake's head is moving down