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