Number Crush  1.0
..
gridmanagement.h
Go to the documentation of this file.
1 #ifndef GRIDMANAGEMENT_H
2 #define GRIDMANAGEMENT_H
3 
13 #include <string>
14 
15 #include "Correc_prof/type.h" //nos types
16 #include "Correc_prof/nsutil.h"
17 
22 void ClearScreen ();
23 
29 void Color (const std::string & Col);
30 
38 void DisplayGridWithLineAndColumnNumbersAndColor (const CMat & Mat, const CMyParam & Params);
39 
46 void DisplayGridWithLineAndColumnNumbers (const CMat & Mat);
47 
56 void DisplayGrid (const CMat & Mat, const CMyParam & Params, bool ShowLineNumber = true, bool ShowColor = true);
57 
58 
65 void InitGrid (CMat & Grid, const unsigned & Size);
66 
67 #endif // GRIDMANAGEMENT_H
void DisplayGridWithLineAndColumnNumbers(const CMat &Mat)
Display the grid showing the line and the column numbers.
void ClearScreen()
Clear the current terminal.
void Color(const std::string &Col)
Set the color of the future input in the terminal.
void DisplayGrid(const CMat &Mat, const CMyParam &Params, bool ShowLineNumber=true, bool ShowColor=true)
Display the grid according to the parameters.
Struct containing all the game&#39;s parameters.
Definition: type.h:35
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 ...
std::vector< CVLine > CMat
CMat : alias to a game grid type.
Definition: type.h:25
void InitGrid(CMat &Grid, const unsigned &Size)
Initialize the grid according to the size.
Set of usefull functions.
Definition of usefull types or aliases for the project.