catch me if you can  0.1
gridmanagement.h
Go to the documentation of this file.
1 #ifndef GRIDMANAGEMENT_H
2 #define GRIDMANAGEMENT_H
3 
13 #include <string>
14 
15 #include "type.h" //nos types
16 
21 void ClearScreen ();
22 
28 void Color (const std::string & Col);
29 
30 
37 void DisplayGrid (const CMat & Mat);
38 
39 
48 void InitGrid (CMat & Mat, unsigned NbLine, unsigned NbColumn, CPosition & PosPlayer1, CPosition & PosPlayer2);
49 
50 #endif // GRIDMANAGEMENT_H
void ClearScreen()
Clear the current terminal.
void Color(const std::string &Col)
Set the color of the future input in the terminal.
std::pair< unsigned, unsigned > CPosition
CPosition : a pair gathering the coordinates in the grid.
Definition: type.h:30
std::vector< CVLine > CMat
CMat : alias to a game grid type.
Definition: type.h:25
void InitGrid(CMat &Mat, unsigned NbLine, unsigned NbColumn, CPosition &PosPlayer1, CPosition &PosPlayer2)
void DisplayGrid(const CMat &Mat)
Definition of usefull types or aliases for the project.