Number Crush
1.0
..
|
Set of functions usefull for the game. More...
#include "Correc_prof/type.h"
Go to the source code of this file.
Functions | |
void | Menu (CPosition &Pos, char &Direction, const CMyParam &Params) |
Display the menu according to the set of parameters. More... | |
void | MakeAMove (CMat &Grid, const CPosition &Pos, const char &Direction, const CMyParam &Params) |
Swap the token from its inital place to its final destination. More... | |
bool | AtLeastThreeInARow (const CMat &Mat, CPosition &Pos, unsigned &HowMany) |
Chek if there is at least 3 token in the same row. More... | |
bool | AtLeastThreeInAColumn (const CMat &Mat, CPosition &Pos, unsigned &HowMany) |
Chek if there is at least 3 token in the same column. More... | |
void | RemovalInColumn (CMat &Mat, const CPosition &Pos, const unsigned &HowMany) |
Remove "Howmany" same tokens starting from "Pos". More... | |
void | RemovalInRow (CMat &Mat, const CPosition &Pos, const unsigned &HowMany) |
Remove "Howmany" same tokens starting from "Pos". More... | |
unsigned | ComputeScore (const unsigned &HowMany) |
Computer the score. More... | |
int | ppal () |
new main More... | |
Chek if there is at least 3 token in the same column.
[in] | Mat | : Game grid |
[out] | Pos | : Position of the first token from wich there is at least 3 times the same token in the same column |
[out] | HowMany | : How many the same token appears consecutivelly in this column |
Definition at line 65 of file game.cpp.
Chek if there is at least 3 token in the same row.
[in] | Mat | : Game grid |
[out] | Pos | : Position of the first token from wich there is at least 3 times the same token in the same row |
[out] | HowMany | : How many the same token appears consecutivelly in this row |
Definition at line 47 of file game.cpp.
unsigned ComputeScore | ( | const unsigned & | HowMany | ) |
int ppal | ( | ) |