Subversion Repositories eduke32

Rev

Rev 2796 | Rev 3581 | 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
14
 
15
extern int32_t g_gameType;
16
 
17
#define DUKE                (g_gameType & GAMEFLAG_DUKE)
18
#define NAM                 (g_gameType & GAMEFLAG_NAM)
19
#define NAPALM              (g_gameType & GAMEFLAG_NAPALM)
20
#define WW2GI               (g_gameType & GAMEFLAG_WW2GI)
21
 
22
enum Games_t {
23
    GAME_DUKE = 0,
24
    GAME_NAM,
25
    GAME_NAPALM,
26
    GAME_WW2GI,
27
    GAMECOUNT
28
};
29
 
2796 helixhorne 30
extern const char *defaultgamegrp[GAMECOUNT];
31
extern const char *defaultdeffilename[GAMECOUNT];
32
extern const char *defaultconfilename;
33
extern const char *defaultgameconfilename[GAMECOUNT];
2726 hendricks2 34
 
35
extern char *g_grpNamePtr;
36
extern char *g_scriptNamePtr;
37
 
2796 helixhorne 38
extern const char *G_DefaultGrpFile(void);
39
extern const char *G_GrpFile(void);
2726 hendricks2 40
 
2796 helixhorne 41
extern const char *G_DefaultConFile(void);
42
extern const char *G_ConFile(void);
2726 hendricks2 43
 
44
extern void clearGrpNamePtr(void);
45
extern void clearDefNamePtr(void);
46
extern void clearScriptNamePtr(void);
47
 
3220 hendricks2 48
//////////
49
 
50
extern void G_MultiPskyInit(void);
51
 
2726 hendricks2 52
#endif