Number Crush  1.0
..
Functions
gridmanagement.cpp File Reference
#include <iostream>
#include <iomanip>
#include "gridmanagement.h"
#include "Correc_prof/type.h"
#include "Correc_prof/params.h"
Include dependency graph for gridmanagement.cpp:

Go to the source code of this file.

Functions

void ClearScreen ()
 Clear the current terminal. More...
 
void Color (const string &Col)
 
void DisplayGridWithLineAndColumnNumbersAndColor (const CMat &Mat, const CMyParam &Param)
 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 &Param, bool ShowLineNumber, bool ShowColor)
 Display the grid according to the parameters. More...
 
void InitGrid (CMat &Grid, unsigned Size)
 

Function Documentation

void ClearScreen ( )

Clear the current terminal.

Definition at line 12 of file gridmanagement.cpp.

Here is the caller graph for this function:

void Color ( const string &  Col)

Definition at line 17 of file gridmanagement.cpp.

Here is the caller graph for this function:

void DisplayGrid ( const CMat Mat,
const CMyParam Params,
bool  ShowLineNumber = true,
bool  ShowColor = true 
)

Display the grid according to the parameters.

Parameters
[in]Mat: Game grid
[in]Params: : List of usefull parameters
ShowLineNumber: true if we want to show line and color numbers, false otherwise.
ShowColor: true if we want to color the grid, false otherwise.

Definition at line 96 of file gridmanagement.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void DisplayGridWithLineAndColumnNumbers ( const CMat Mat)

Display the grid showing the line and the column numbers.

Parameters
[in]Mat: Game grid
Deprecated:
Do not use this function, it's just for debugging

Definition at line 75 of file gridmanagement.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

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.

Parameters
[in]Mat: Game grid
[in]Params: List of usefull parameters

Definition at line 23 of file gridmanagement.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void InitGrid ( CMat Grid,
unsigned  Size 
)

Definition at line 120 of file gridmanagement.cpp.

Here is the call graph for this function:

Here is the caller graph for this function: