1 /*
2  * nlarn.h
3  * Copyright (C) 2009-2020 Joachim de Groot <jdegroot@web.de>
4  *
5  * NLarn is free software: you can redistribute it and/or modify it
6  * under the terms of the GNU General Public License as published by the
7  * Free Software Foundation, either version 3 of the License, or
8  * (at your option) any later version.
9  *
10  * NLarn is distributed in the hope that it will be useful, but
11  * WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
13  * See the GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License along
16  * with this program.  If not, see <http://www.gnu.org/licenses/>.
17  */
18 
19 #ifndef __EXTDEFS_H_
20 #define __EXTDEFS_H_
21 
22 #include <setjmp.h>
23 
24 #include "game.h"
25 #include "position.h"
26 
27 /* game version string */
28 extern const char *nlarn_version;
29 
30 /* the entire game */
31 extern game *nlarn;
32 
33 /* death jump buffer - used to return to the main loop when the player has died */
34 extern jmp_buf nlarn_death_jump;
35 
36 /* file paths */
37 extern const char *nlarn_libdir;
38 extern const char *nlarn_mesgfile;
39 extern const char *nlarn_helpfile;
40 extern const char *nlarn_mazefile;
41 extern const char *nlarn_fortunes;
42 extern const char *nlarn_highscores;
43 extern const char *nlarn_inifile;
44 extern const char *nlarn_savefile;
45 
46 extern const position pos_invalid;
47 
48 /* textual representation of the player's gender */
49 extern const char *player_sex_str[PS_MAX];
50 #endif
51