Implementing configuration file

This commit is contained in:
Denis Nuțiu 2016-12-11 16:25:29 +02:00
parent 3dbae3ef3b
commit 84763356da

View file

@ -31,17 +31,7 @@ int cols;
// Config settings. // Config settings.
config_t configuration; config_t configuration;
config_setting_t * cfg_setting; config_setting_t * cfg_setting;
// unsigned testM[4][4] = {
// {0, 0, 0, 0},
// {0, 0, 0, 0},
// {0, 0, 0, 0},
// {0, 0, 0, 0},
// };
unsigned ** testM; unsigned ** testM;
// The number will represent the death time, when it reaches 0, the cell
// becomes a death wall.
void make_visited_cell(unsigned * x) { *x |= VISITED_MASK; } void make_visited_cell(unsigned * x) { *x |= VISITED_MASK; }
void unmake_visited_cell(unsigned * x) { *x &= ~VISITED_MASK; } void unmake_visited_cell(unsigned * x) { *x &= ~VISITED_MASK; }