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 __NLARN_H_ 20 #define __NLARN_H_ 21 22 #include <setjmp.h> 23 24 #include "game.h" 25 26 #define VERSION_MAJOR 0 /* this is the present version # of the program */ 27 #define VERSION_MINOR 7 28 #define VERSION_PATCH 6 29 30 /* this allows to add the id of the current commit to the version information */ 31 #ifndef GITREV 32 #define GITREV "" 33 #endif 34 35 /* game version string */ 36 const char *nlarn_version; 37 38 /* the entire game */ 39 game *nlarn; 40 41 /* death jump buffer - used to return to the main loop when the player has died */ 42 extern jmp_buf nlarn_death_jump; 43 44 /* file paths */ 45 const char *nlarn_libdir; 46 const char *nlarn_mesgfile; 47 const char *nlarn_helpfile; 48 const char *nlarn_mazefile; 49 const char *nlarn_fortunes; 50 const char *nlarn_highscores; 51 const char *nlarn_inifile; 52 const char *nlarn_savefile; 53 54 #endif 55