Rev 3884 | Rev 3975 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
2726 | hendricks2 | 1 | // |
2 | // Definitions of common game-only data structures/functions |
||
3 | // (and declarations of data appearing in both) |
||
4 | // for EDuke32 and Mapster32 |
||
5 | // |
||
6 | |||
7 | #ifndef EDUKE32_COMMON_GAME_H_ |
||
8 | #define EDUKE32_COMMON_GAME_H_ |
||
9 | |||
10 | #define GAMEFLAG_DUKE 0x00000001 |
||
11 | #define GAMEFLAG_NAM 0x00000002 |
||
12 | #define GAMEFLAG_NAPALM 0x00000004 |
||
13 | #define GAMEFLAG_WW2GI 0x00000008 |
||
3654 | terminx | 14 | #define GAMEFLAG_ADDON 0x00000010 |
3803 | terminx | 15 | #define GAMEFLAG_SHAREWARE 0x00000020 |
16 | #define GAMEFLAG_DUKEBETA 0x00000060 // includes 0x20 since it's a shareware beta |
||
2726 | hendricks2 | 17 | |
18 | extern int32_t g_gameType; |
||
19 | |||
20 | #define DUKE (g_gameType & GAMEFLAG_DUKE) |
||
21 | #define NAM (g_gameType & GAMEFLAG_NAM) |
||
22 | #define NAPALM (g_gameType & GAMEFLAG_NAPALM) |
||
23 | #define WW2GI (g_gameType & GAMEFLAG_WW2GI) |
||
3803 | terminx | 24 | #define SHAREWARE (g_gameType & GAMEFLAG_SHAREWARE) |
3886 | terminx | 25 | #define DUKEBETA ((g_gameType & GAMEFLAG_DUKEBETA) == GAMEFLAG_DUKEBETA) |
2726 | hendricks2 | 26 | |
27 | enum Games_t { |
||
28 | GAME_DUKE = 0, |
||
29 | GAME_NAM, |
||
30 | GAME_NAPALM, |
||
31 | GAME_WW2GI, |
||
32 | GAMECOUNT |
||
33 | }; |
||
34 | |||
3637 | terminx | 35 | enum instpath_t { |
36 | INSTPATH_STEAM, |
||
37 | INSTPATH_GOG, |
||
38 | NUMINSTPATHS |
||
39 | }; |
||
40 | |||
2796 | helixhorne | 41 | extern const char *defaultgamegrp[GAMECOUNT]; |
42 | extern const char *defaultdeffilename[GAMECOUNT]; |
||
43 | extern const char *defaultconfilename; |
||
44 | extern const char *defaultgameconfilename[GAMECOUNT]; |
||
2726 | hendricks2 | 45 | |
46 | extern char *g_grpNamePtr; |
||
47 | extern char *g_scriptNamePtr; |
||
48 | |||
2796 | helixhorne | 49 | extern const char *G_DefaultGrpFile(void); |
50 | extern const char *G_GrpFile(void); |
||
2726 | hendricks2 | 51 | |
2796 | helixhorne | 52 | extern const char *G_DefaultConFile(void); |
53 | extern const char *G_ConFile(void); |
||
2726 | hendricks2 | 54 | |
55 | extern void clearGrpNamePtr(void); |
||
56 | extern void clearDefNamePtr(void); |
||
57 | extern void clearScriptNamePtr(void); |
||
58 | |||
3220 | hendricks2 | 59 | ////////// |
60 | |||
61 | extern void G_MultiPskyInit(void); |
||
62 | |||
3581 | hendricks2 | 63 | ////////// |
64 | |||
3582 | hendricks2 | 65 | extern void G_ExtPreInit(void); |
66 | |||
3581 | hendricks2 | 67 | extern void G_AddSearchPaths(void); |
3654 | terminx | 68 | extern void G_CleanupSearchPaths(void); |
3581 | hendricks2 | 69 | |
3637 | terminx | 70 | extern const char * G_GetInstallPath(int32_t insttype); |
71 | |||
2726 | hendricks2 | 72 | #endif |