Number Crush
1.0
..
|
Set of usefull functions for the grid management. More...
Go to the source code of this file.
Functions | |
void | ClearScreen () |
Clear the current terminal. | |
void | Color (const std::string &Col) |
Set the color of the future input in the terminal. More... | |
void | DisplayGridWithLineAndColumnNumbersAndColor (const CMat &Mat, const CMyParam &Params) |
Display the grid showing the line and the column numbers. Everything is colored according to the set of parameters. More... | |
void | DisplayGridWithLineAndColumnNumbers (const CMat &Mat) |
Display the grid showing the line and the column numbers. More... | |
void | DisplayGrid (const CMat &Mat, const CMyParam &Params, bool ShowLineNumber=true, bool ShowColor=true) |
Display the grid according to the parameters. More... | |
void | InitGrid (CMat &Grid, const unsigned &Size) |
Initialize the grid according to the size. More... | |
Set of usefull functions for the grid management.
Definition in file gridmanagement.h.
void Color | ( | const std::string & | Col | ) |
Set the color of the future input in the terminal.
[in] | Col | : Next color to be used |
Display the grid according to the parameters.
[in] | Mat | : Game grid |
[in] | Params | : : List of usefull parameters |
[in] | ShowLineNumber | : true if we want to show line and color numbers, false otherwise. |
[in] | ShowColor | : true if we want to color the grid, false otherwise. |
Definition at line 96 of file gridmanagement.cpp.
void DisplayGridWithLineAndColumnNumbers | ( | const CMat & | Mat | ) |
Display the grid showing the line and the column numbers.
[in] | Mat | : Game grid |
Definition at line 75 of file gridmanagement.cpp.
Display the grid showing the line and the column numbers. Everything is colored according to the set of parameters.
[in] | Mat | : Game grid |
[in] | Params | : List of usefull parameters |
Definition at line 23 of file gridmanagement.cpp.
void InitGrid | ( | CMat & | Grid, |
const unsigned & | Size | ||
) |
Initialize the grid according to the size.
[out] | Grid | Game grid to be initalized |
[in] | Size | : Number of rows / columns of the grid (supposed to be squared) |