define.h File Reference

File containing define module (all data program definition). More...

This graph shows which files directly or indirectly include this file:

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.


Detailed Description

File containing define module (all data program definition).

Definition in file define.h.


Define Documentation

#define D1 (  )     DBG(1, a)

#define D2 (  )     DBG(2, a)

#define D3 (  )     DBG(4, a)

#define D4 (  )     DBG(8, a)

#define D5 (  )     DBG(16, a)

#define D6 (  )     DBG(32, a)

D6 function.

Definition at line 209 of file define.h.

Referenced by get_denyArea(), loadCheckGame(), and main().

#define D7 (  )     DBG(64, a)

D7 function.

Definition at line 214 of file define.h.

Referenced by main().

#define D8 (  )     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 DBG ( A,
 ) 

No tracing.

Definition at line 175 of file define.h.

#define ID1   "Trace execution"

D1 title.

Definition at line 182 of file define.h.

Referenced by main().

#define ID2   "High-level info"

D2 title.

Definition at line 187 of file define.h.

Referenced by main().

#define ID3   "Main cycles info"

D3 title.

Definition at line 192 of file define.h.

Referenced by main().

#define ID4   "Medium-level info"

D4 title.

Definition at line 197 of file define.h.

Referenced by main().

#define ID5   "Low-level info"

D5 title.

Definition at line 202 of file define.h.

Referenced by main().

#define ID6   "Programmers details - 1"

D6 title.

Definition at line 207 of file define.h.

Referenced by main().

#define ID7   "Programmers details - 2"

D7 title.

Definition at line 212 of file define.h.

Referenced by main().

#define ID8   "Programmers details - 3"

D8 title.

Definition at line 217 of file define.h.

Referenced by main().

#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().

#define NDEBUG

No assertions.

Definition at line 177 of file define.h.


Variable Documentation

const unsigned short int BONUS_POINTS = 10 [static]

Bonus points score.

Definition at line 123 of file define.h.

Referenced by calcSchemaResults().

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]

const unsigned short int MAXC = 100 [static]

const unsigned short int MAXR = 100 [static]

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]

const unsigned short int MINR = 5 [static]

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]

No bonus points score.

Definition at line 125 of file define.h.

Referenced by calcSchemaResults().

const char NULLCHAR = '\0' [static]

const char PRGAIMS[] [static]

Initial value:

                "Simple game of labyrinth.\n"
                "<private>"
Program aims.

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>"
Program authors.

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/>."
Program license.

Definition at line 26 of file define.h.

Referenced by show_about(), and showUsage_and_setTracingVerbosity().

const char PRGLOGO[] = "../img/SMLabyrinth.png" [static]

Program logo.

Definition at line 54 of file define.h.

Referenced by gui(), and show_about().

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:

 
                "http://www.pietris.net/software/smlabyrinth/"
Program web link.

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().


Generated on Fri Apr 2 18:27:36 2010 for SMLabyrinth by  doxygen 1.5.8