Number Crush
1.0
..
|
#include <iostream>
#include "game.h"
#include "Correc_prof/params.h"
#include "Correc_prof/gridmanagement.h"
#include <map>
Go to the source code of this file.
Functions | |
template<class T , class U > | |
void | ShowMap (const map< T, U > &AMap) |
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 | ) |
Display the menu according to the set of parameters.
[out] | Pos | : Position of the token to move |
[out] | Direction | : Direction of wanted movement |
[in] | Params | : List of usefull parameters |
Definition at line 17 of file game.cpp.
int ppal | ( | ) |