Go to the source code of this file.
Defines | |
#define | MAX_RECORDNAME_LEN 15 |
Maximum record name length. | |
#define | MAX_RECORD_SHOW 20 |
Maximum shown record lines. | |
#define | DBG(A, B) |
No tracing. | |
#define | NDEBUG |
No assertions. | |
#define | ID1 "Trace execution" |
D1 title. | |
#define | D1(a) DBG(1, a) |
D1 function. | |
#define | ID2 "High-level info" |
D2 title. | |
#define | D2(a) DBG(2, a) |
D2 function. | |
#define | ID3 "Main cycles info" |
D3 title. | |
#define | D3(a) DBG(4, a) |
D3 function. | |
#define | ID4 "Medium-level info" |
D4 title. | |
#define | D4(a) DBG(8, a) |
D4 function. | |
#define | ID5 "Low-level info" |
D5 title. | |
#define | D5(a) DBG(16, a) |
D5 function. | |
#define | ID6 "Programmers details - 1" |
D6 title. | |
#define | D6(a) DBG(32, a) |
D6 function. | |
#define | ID7 "Programmers details - 2" |
D7 title. | |
#define | D7(a) DBG(64, a) |
D7 function. | |
#define | ID8 "Programmers details - 3" |
D8 title. | |
#define | D8(a) DBG(128,a) |
D8 function. | |
Variables | |
static const char | PRGNAME [] = "SMLabyrinth" |
Program name. | |
static const char | PRGVERS [] = "9.10.26" |
Program version. | |
static const char | PRGAUTH [] |
Program authors. | |
static const char | PRGLICS [] |
Program license. | |
static const char | PRGCPYR [] = "Copyright 2009 © MrC" |
Program copyright. | |
static const char | PRGAIMS [] |
Program aims. | |
static const char | PRGWBLK [] |
Program web link. | |
static const char | PRGLOGO [] = "../img/SMLabyrinth.png" |
Program logo. | |
static const char | NULLCHAR = '\0' |
Null character. | |
static const unsigned short int | MAXR = 100 |
Maximum number of rows. | |
static const unsigned short int | MAXC = 100 |
Maximum number of columns. | |
static const unsigned short int | MINR = 5 |
Minimum number of rows. | |
static const unsigned short int | MINC = 5 |
Minimum number of columns. | |
static const char | FREE = '.' |
Identify an open box. | |
static const char | CLOSE = 'X' |
Identify a close box. | |
static const char | DOOR = 'D' |
Identify a box containing a door. | |
static const char | START = 'S' |
Identify a box containing a start point. | |
static const unsigned short int | UNVISITED = 0 |
Identify an unvisited cell. | |
static const unsigned short int | VISIT1 = 1 |
Identify a visited cell from 'VISIT2' or 'UNIVISITED'. | |
static const unsigned short int | VISIT2 = 2 |
Identify a visited cell from 'VISIT1'. | |
static const unsigned short int | LOWERCASE = 1 |
Identify the lowercase check. | |
static const unsigned short int | UPPERCASE = 2 |
Identify the uppercase check. | |
static const unsigned short int | DIGITS = 4 |
Identify the digits check. | |
static const char | RECORD_FILE_NAME [] = "record.txt" |
Record (game) file name. | |
static const char | GAMES_DIR [] = "games" |
Directory that contains games. | |
static const char | GAMES_LEVEL_DIR [] = "level" |
Directory that contains games of certains level. | |
static const unsigned short int | GIVE_BONUS_PERC = 100 |
Minimum percentage to reach the bonus. | |
static const unsigned short int | NEW_GAME_ROUND = 10 |
Number of games in a tournament. | |
static const unsigned short int | BONUS_POINTS = 10 |
Bonus points score. | |
static const unsigned short int | NO_BONUS_POINTS = 0 |
No bonus points score. | |
static const unsigned short int | SEC_PER_LEVEL = 9 |
Maximum repetitive time to decrease level score. | |
static const unsigned short int | MIN_DIFFICULT = 1 |
Minimum value of difficult in generated game. | |
static const unsigned short int | MAX_DIFFICULT = 10 |
Maximum value of difficult in generated game. | |
static const char | COMMENT = '#' |
Character that identify a comment. | |
static const char | ENDLINE = '\n' |
Character that identify a new line. | |
static const unsigned int | MAX_ERR_BUFFER_LEN = 1000 |
Maximum length of error buffer. | |
static const unsigned int | MAX_OTH_BUFFER_LEN = 250 |
Maximum length of other buffer. |
Definition in file define.h.
#define D1 | ( | a | ) | DBG(1, a) |
D1 function.
Definition at line 184 of file define.h.
Referenced by allocResetVariable(), bestroute(), bestroute_check_in_data(), calcSchemaResults(), check_generateSchema(), checkDifferentColLen(), checkDoorStartPoint(), checkKeyPressed(), checkResponseErrorGenerateParameters(), checkResponseNameError(), checkRowColValues(), configure_event(), delete_event(), drawingAndSetSchemaInfo(), generate_game(), generateSchema(), get_player_name(), get_schema_name(), getdoors(), initializeCurrentGameState(), isallowedchar(), keypressed(), loadCheckGame(), main(), new_tournament(), newgame(), open_game(), printschema(), readCharacters(), readfile(), readSetGameRecord(), request_generate_parameters(), reverse_route_length(), save_record(), schema_round_search(), set_gtk_entry_text_from_num(), setGameRecordStructValue(), setSchemaDataStructures(), show_about(), show_help(), show_records(), skipCharacters(), updateSchemaCell(), visitCell(), and win().
#define D2 | ( | a | ) | DBG(2, a) |
D2 function.
Definition at line 189 of file define.h.
Referenced by bestroute(), calcSchemaResults(), create_routes(), delete_event(), drawingAndSetSchemaInfo(), get_player_name(), get_schema_name(), getRouteNumber(), keypressed(), main(), new_tournament(), newgame(), readfile(), readSetGameRecord(), request_generate_parameters(), reverse_route_length(), save_record(), and win().
#define D3 | ( | a | ) | DBG(4, a) |
D3 function.
Definition at line 194 of file define.h.
Referenced by create_routes(), draw_brush(), drawschema(), main(), save_record(), schema_round_search(), and set_number_of_available_cells().
#define D4 | ( | a | ) | DBG(8, a) |
D4 function.
Definition at line 199 of file define.h.
Referenced by bestroute(), create_routes(), delete_event(), isallowedchar(), main(), newgame(), save_schema_to_file(), show_about(), and show_help().
#define D5 | ( | a | ) | DBG(16, a) |
D5 function.
Definition at line 204 of file define.h.
Referenced by check_generateSchema(), color(), colorVisited(), create_routes(), expose_event(), gameMap_alloc_and_set(), get_denyArea(), get_direction_from_point(), get_MaxRouteLen(), getRouteNumber(), increase_schema_difficult(), isaccessible(), isallowedchar(), isDirectory(), main(), newgame(), point_in_random_direction(), save_schema_to_file(), schema_round_search(), set_number_of_available_cells(), visitCell(), and weight().
#define D6 | ( | a | ) | DBG(32, a) |
D6 function.
Definition at line 209 of file define.h.
Referenced by get_denyArea(), loadCheckGame(), and main().
#define D7 | ( | a | ) | DBG(64, a) |
#define D8 | ( | a | ) | DBG(128,a) |
D8 function.
Definition at line 219 of file define.h.
Referenced by get_direction_from_point(), main(), and point_in_random_direction().
#define ID1 "Trace execution" |
#define ID2 "High-level info" |
#define ID3 "Main cycles info" |
#define ID4 "Medium-level info" |
#define ID5 "Low-level info" |
#define ID6 "Programmers details - 1" |
#define ID7 "Programmers details - 2" |
#define ID8 "Programmers details - 3" |
#define MAX_RECORD_SHOW 20 |
Maximum shown record lines.
Definition at line 154 of file define.h.
Referenced by readSetGameRecord(), and save_record().
#define MAX_RECORDNAME_LEN 15 |
Maximum record name length.
Definition at line 152 of file define.h.
Referenced by get_player_name(), and readSetGameRecord().
const unsigned short int BONUS_POINTS = 10 [static] |
const char CLOSE = 'X' [static] |
Identify a close box.
Definition at line 78 of file define.h.
Referenced by color(), create_routes(), drawschema(), gameMap_alloc_and_set(), increase_schema_difficult(), isaccessible(), and weight().
const char COMMENT = '#' [static] |
Character that identify a comment.
Definition at line 139 of file define.h.
Referenced by readfile().
const unsigned short int DIGITS = 4 [static] |
Identify the digits check.
Definition at line 105 of file define.h.
Referenced by check_if_text_is_number(), checkResponseNameError(), isallowedchar(), and setGameRecordStructValue().
const char DOOR = 'D' [static] |
Identify a box containing a door.
Definition at line 80 of file define.h.
Referenced by checkDoorStartPoint(), color(), create_routes(), getdoors(), isaccessible(), keypressed(), and weight().
const char ENDLINE = '\n' [static] |
Character that identify a new line.
Definition at line 141 of file define.h.
Referenced by readCharacters(), readfile(), and skipCharacters().
const char FREE = '.' [static] |
Identify an open box.
Definition at line 76 of file define.h.
Referenced by color(), colorVisited(), create_routes(), drawschema(), increase_schema_difficult(), isaccessible(), and weight().
const char GAMES_DIR[] = "games" [static] |
Directory that contains games.
Definition at line 111 of file define.h.
Referenced by generate_game(), get_schema_name(), new_tournament(), and open_game().
const char GAMES_LEVEL_DIR[] = "level" [static] |
Directory that contains games of certains level.
Definition at line 113 of file define.h.
Referenced by get_schema_name(), and new_tournament().
const unsigned short int GIVE_BONUS_PERC = 100 [static] |
Minimum percentage to reach the bonus.
Definition at line 119 of file define.h.
Referenced by calcSchemaResults().
const unsigned short int LOWERCASE = 1 [static] |
Identify the lowercase check.
Definition at line 101 of file define.h.
Referenced by checkResponseNameError(), isallowedchar(), and setGameRecordStructValue().
const unsigned short int MAX_DIFFICULT = 10 [static] |
Maximum value of difficult in generated game.
Definition at line 133 of file define.h.
Referenced by check_generateSchema(), checkResponseErrorGenerateParameters(), generateSchema(), get_denyArea(), getRouteNumber(), and request_generate_parameters().
const unsigned int MAX_ERR_BUFFER_LEN = 1000 [static] |
Maximum length of error buffer.
Definition at line 147 of file define.h.
Referenced by checkResponseErrorGenerateParameters(), checkResponseNameError(), loadCheckGame(), and new_tournament().
const unsigned int MAX_OTH_BUFFER_LEN = 250 [static] |
Maximum length of other buffer.
Definition at line 149 of file define.h.
Referenced by checkResponseErrorGenerateParameters(), drawingAndSetSchemaInfo(), keypressed(), new_tournament(), request_generate_parameters(), show_records(), and win().
const unsigned short int MAXC = 100 [static] |
Maximum number of columns.
Definition at line 65 of file define.h.
Referenced by bestroute_check_in_data(), check_generateSchema(), checkResponseErrorGenerateParameters(), checkRowColValues(), generateSchema(), loadCheckGame(), and request_generate_parameters().
const unsigned short int MAXR = 100 [static] |
Maximum number of rows.
Definition at line 63 of file define.h.
Referenced by bestroute_check_in_data(), check_generateSchema(), checkResponseErrorGenerateParameters(), checkRowColValues(), generateSchema(), loadCheckGame(), and request_generate_parameters().
const unsigned short int MIN_DIFFICULT = 1 [static] |
Minimum value of difficult in generated game.
Definition at line 131 of file define.h.
Referenced by check_generateSchema(), checkResponseErrorGenerateParameters(), generateSchema(), getRouteNumber(), and request_generate_parameters().
const unsigned short int MINC = 5 [static] |
Minimum number of columns.
Definition at line 69 of file define.h.
Referenced by bestroute_check_in_data(), check_generateSchema(), checkResponseErrorGenerateParameters(), checkRowColValues(), generateSchema(), and request_generate_parameters().
const unsigned short int MINR = 5 [static] |
Minimum number of rows.
Definition at line 67 of file define.h.
Referenced by bestroute_check_in_data(), check_generateSchema(), checkResponseErrorGenerateParameters(), checkRowColValues(), generateSchema(), and request_generate_parameters().
const unsigned short int NEW_GAME_ROUND = 10 [static] |
Number of games in a tournament.
Definition at line 121 of file define.h.
Referenced by new_tournament(), and setGameRecordStructValue().
const unsigned short int NO_BONUS_POINTS = 0 [static] |
const char NULLCHAR = '\0' [static] |
Null character.
Definition at line 57 of file define.h.
Referenced by allocResetVariable(), checkResponseNameError(), drawingAndSetSchemaInfo(), get_schema_name(), keypressed(), new_tournament(), request_generate_parameters(), show_records(), and win().
const char PRGAIMS[] [static] |
Initial value:
"Simple game of labyrinth.\n" "<private>"
Definition at line 45 of file define.h.
Referenced by show_about(), and showUsage_and_setTracingVerbosity().
const char PRGAUTH[] [static] |
Initial value:
"<private>\n" "Email: <info[AT@]pietris[DOT.]net>\n" "\n" "MrC\n" "Email: <info[AT@]pietris[DOT.]net>"
Definition at line 18 of file define.h.
Referenced by show_about(), and showUsage_and_setTracingVerbosity().
const char PRGCPYR[] = "Copyright 2009 © MrC" [static] |
Program copyright.
Definition at line 42 of file define.h.
Referenced by show_about(), and showUsage_and_setTracingVerbosity().
const char PRGLICS[] [static] |
Initial value:
"This program is free software:\n" "you can redistribute it and/or modify it\n" "not until you have contacted and received an authorization" " replies from the authors\nand under the terms of the GNU" " General Public License as published by\n" "the Free Software Foundation, either version 3 of the" " License.\nThis program is distributed in the hope that it" " will be useful,\nbut WITHOUT ANY WARRANTY; without even the" " implied warranty of\nMERCHANTABILITY or FITNESS FOR" " A PARTICULAR PURPOSE. See the\nGNU General Public" " License for more details.\nYou should have received a copy" " of the GNU General Public License\nalong with this program." " If not, see <http://www.gnu.org/licenses/>."
Definition at line 26 of file define.h.
Referenced by show_about(), and showUsage_and_setTracingVerbosity().
const char PRGLOGO[] = "../img/SMLabyrinth.png" [static] |
const char PRGNAME[] = "SMLabyrinth" [static] |
Program name.
Definition at line 12 of file define.h.
Referenced by gui(), save_schema_to_file(), show_about(), and showUsage_and_setTracingVerbosity().
const char PRGVERS[] = "9.10.26" [static] |
Program version.
Using Year.Month.Day rule.
Definition at line 15 of file define.h.
Referenced by gui(), save_schema_to_file(), show_about(), and showUsage_and_setTracingVerbosity().
const char PRGWBLK[] [static] |
Initial value:
"https://www.pietris.net/software/smlabyrinth/"
Definition at line 50 of file define.h.
Referenced by show_about(), and showUsage_and_setTracingVerbosity().
const char RECORD_FILE_NAME[] = "record.txt" [static] |
Record (game) file name.
Definition at line 109 of file define.h.
Referenced by readSetGameRecord(), save_record(), and show_records().
const unsigned short int SEC_PER_LEVEL = 9 [static] |
Maximum repetitive time to decrease level score.
Definition at line 127 of file define.h.
Referenced by calcSchemaResults().
const char START = 'S' [static] |
Identify a box containing a start point.
Definition at line 82 of file define.h.
Referenced by checkDoorStartPoint(), color(), create_routes(), isaccessible(), and weight().
const unsigned short int UNVISITED = 0 [static] |
Identify an unvisited cell.
Definition at line 87 of file define.h.
Referenced by colorVisited(), setSchemaDataStructures(), and visitCell().
const unsigned short int UPPERCASE = 2 [static] |
Identify the uppercase check.
Definition at line 103 of file define.h.
Referenced by checkResponseNameError(), isallowedchar(), and setGameRecordStructValue().
const unsigned short int VISIT1 = 1 [static] |
Identify a visited cell from 'VISIT2' or 'UNIVISITED'.
Definition at line 89 of file define.h.
Referenced by colorVisited(), and visitCell().
const unsigned short int VISIT2 = 2 [static] |
Identify a visited cell from 'VISIT1'.
Definition at line 91 of file define.h.
Referenced by colorVisited(), and visitCell().