Subversion Repositories eduke32

Rev

Rev 3637 | Rev 3803 | 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
2726 hendricks2 15
 
16
extern int32_t g_gameType;
17
 
18
#define DUKE                (g_gameType & GAMEFLAG_DUKE)
19
#define NAM                 (g_gameType & GAMEFLAG_NAM)
20
#define NAPALM              (g_gameType & GAMEFLAG_NAPALM)
21
#define WW2GI               (g_gameType & GAMEFLAG_WW2GI)
22
 
23
enum Games_t {
24
    GAME_DUKE = 0,
25
    GAME_NAM,
26
    GAME_NAPALM,
27
    GAME_WW2GI,
28
    GAMECOUNT
29
};
30
 
3637 terminx 31
enum instpath_t {
32
    INSTPATH_STEAM,
33
    INSTPATH_GOG,
34
    NUMINSTPATHS
35
};
36
 
2796 helixhorne 37
extern const char *defaultgamegrp[GAMECOUNT];
38
extern const char *defaultdeffilename[GAMECOUNT];
39
extern const char *defaultconfilename;
40
extern const char *defaultgameconfilename[GAMECOUNT];
2726 hendricks2 41
 
42
extern char *g_grpNamePtr;
43
extern char *g_scriptNamePtr;
44
 
2796 helixhorne 45
extern const char *G_DefaultGrpFile(void);
46
extern const char *G_GrpFile(void);
2726 hendricks2 47
 
2796 helixhorne 48
extern const char *G_DefaultConFile(void);
49
extern const char *G_ConFile(void);
2726 hendricks2 50
 
51
extern void clearGrpNamePtr(void);
52
extern void clearDefNamePtr(void);
53
extern void clearScriptNamePtr(void);
54
 
3220 hendricks2 55
//////////
56
 
57
extern void G_MultiPskyInit(void);
58
 
3581 hendricks2 59
//////////
60
 
3582 hendricks2 61
extern void G_ExtPreInit(void);
62
 
3581 hendricks2 63
extern void G_AddSearchPaths(void);
3654 terminx 64
extern void G_CleanupSearchPaths(void);
3581 hendricks2 65
 
3637 terminx 66
extern const char * G_GetInstallPath(int32_t insttype);
67
 
2726 hendricks2 68
#endif