13 #include "../Common/common.h" 14 #include "../Snake/snake.h" 16 #include "../Ball/ball.h" 70 std::string reserved =
"!";
79 void updateLabyrinth();
84 bool setLabyrinth(
Point dimensions);
85 bool addSnake(
Snake* snake);
86 bool addPoint(
Point p);
87 bool rmPoint(
Point p);
91 short isFree(
Point p);
DisplayHandler dispHandler
class for containing and displaying the game field
Describes the Ball entity of the game.
void freeDisplay()
No extra stimulus, displaying the default way.
Definitions and prototypes for Change class.
const int DISPPART
the whole labyrinth doesn't fit, so we are displaying it partialy
void displayFull()
redraw every Point of the labyrinth
const int DISPFULL
the whole labyrinth can fit and was redrawed
void displayPartialy()
display labyrinth partialy, using the start and end Points
void displayUpdated()
draw only the changed Points when the labyrinth is being fully displayed
void forcedDisplay(int displayMethod)
got an extra stimulus for displaying in a certain method
Describes the Snake entity of the game.
void displayHandler(int displayMethod)
handler for choosing the approriate display method in the current environment
const int DISPUPD
the whole labyrinth can fit and was already fully redrawn so we just need to redraw the changed Point...
Coordinates and style of the cell in console window.