DarkPlaces
Game engine based on the Quake 1 engine by id Software, developed by LadyHavoc
 
com_game.h
Go to the documentation of this file.
1/*
2Copyright (C) 2000-2021 DarkPlaces contributors
3
4This program is free software; you can redistribute it and/or
5modify it under the terms of the GNU General Public License
6as published by the Free Software Foundation; either version 2
7of the License, or (at your option) any later version.
8
9This program is distributed in the hope that it will be useful,
10but WITHOUT ANY WARRANTY; without even the implied warranty of
11MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
12
13See the GNU General Public License for more details.
14
15You should have received a copy of the GNU General Public License
16along with this program; if not, write to the Free Software
17Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18
19*/
20
21#ifndef COM_GAME_H
22#define COM_GAME_H
23
24#include "qdefs.h"
25
69
70// Master switch for some hacks/changes that eventually should become cvars.
71#define IS_NEXUIZ_DERIVED(g) ((g) == GAME_NEXUIZ || (g) == GAME_XONOTIC || (g) == GAME_VORETOURNAMENT)
72// Pre-csqcmodels era.
73#define IS_OLDNEXUIZ_DERIVED(g) ((g) == GAME_NEXUIZ || (g) == GAME_VORETOURNAMENT)
74
75extern gamemode_t gamemode;
76extern const char *gamename;
77extern const char *gamenetworkfiltername;
78extern const char *gamedirname1;
79extern const char *gamedirname2;
80extern const char *gamescreenshotname;
81extern const char *gameuserdirname;
82extern char com_modname[MAX_OSPATH];
83
85
86void COM_InitGameType (void);
87int COM_ChangeGameTypeForGameDirs(unsigned numgamedirs, const char *gamedirs[], qbool failmissing, qbool init);
88
89#endif
char com_modname[MAX_OSPATH]
Definition com_game.c:33
const char * gamescreenshotname
Definition com_game.c:31
const char * gamedirname2
Definition com_game.c:30
void COM_InitGameType(void)
Definition com_game.c:95
const char * gameuserdirname
Definition com_game.c:32
gamemode_t gamemode
Definition com_game.c:26
const char * gamedirname1
Definition com_game.c:29
const char * gamenetworkfiltername
Definition com_game.c:28
int COM_ChangeGameTypeForGameDirs(unsigned numgamedirs, const char *gamedirs[], qbool failmissing, qbool init)
Definition com_game.c:122
gamemode_t com_startupgamegroup
Definition com_game.c:36
gamemode_t
Definition com_game.h:27
@ GAME_TEU
Definition com_game.h:37
@ GAME_SETHERAL
Definition com_game.h:40
@ GAME_BATTLEMECH
Definition com_game.h:38
@ GAME_CONTAGIONTHEORY
Definition com_game.h:49
@ GAME_BATTLEMETAL
added by Cloudwalk for Subject9x
Definition com_game.h:62
@ GAME_NEXUIZ
Definition com_game.h:33
@ GAME_STEELSTORMREVENANTS
added by motorsep 07/19/2015
Definition com_game.h:56
@ GAME_DOOMBRINGER
added by Cloudwalk for kristus
Definition com_game.h:61
@ GAME_BLOODOMNICIDE
Definition com_game.h:52
@ GAME_QUOTH
Definition com_game.h:31
@ GAME_COUNT
Definition com_game.h:66
@ GAME_EDU2P
Definition com_game.h:50
@ GAME_ROGUE
Definition com_game.h:30
@ GAME_TRANSFUSION
Definition com_game.h:35
@ GAME_STEELSTORM
added by motorsep
Definition com_game.h:53
@ GAME_MOONHELM
Definition com_game.h:59
@ GAME_STEELSTORM2
added by motorsep
Definition com_game.h:54
@ GAME_PROPHECY
Definition com_game.h:51
@ GAME_DARSANA
Definition com_game.h:48
@ GAME_OPENQUARTZ
this game sucks
Definition com_game.h:43
@ GAME_VORETOURNAMENT
Definition com_game.h:60
@ GAME_QUAKE15
added by bones_was_here as it depends on an old bug and a workaround
Definition com_game.h:63
@ GAME_TOMESOFMEPHISTOPHELES
added by motorsep
Definition com_game.h:57
@ GAME_GOODVSBAD2
Definition com_game.h:36
@ GAME_NEOTERIC
Definition com_game.h:42
@ GAME_THEHUNTED
Definition com_game.h:46
@ GAME_NEHAHRA
Definition com_game.h:32
@ GAME_STRAPBOMB
added by motorsep for Urre
Definition com_game.h:58
@ GAME_NORMAL
Definition com_game.h:28
@ GAME_CTSJ2
added by bones_was_here as it has a race condition that requires a workaound
Definition com_game.h:65
@ GAME_TENEBRAE
full of evil hackery
Definition com_game.h:41
@ GAME_XONOTIC
Definition com_game.h:34
@ GAME_AD
added by bones_was_here as it depends on old DP behaviour or csqc_lowres
Definition com_game.h:64
@ GAME_PRYDON
Definition com_game.h:44
@ GAME_SSAMMO
added by motorsep
Definition com_game.h:55
@ GAME_ZYMOTIC
Definition com_game.h:39
@ GAME_DELUXEQUAKE
Definition com_game.h:45
@ GAME_HIPNOTIC
Definition com_game.h:29
@ GAME_DEFEATINDETAIL2
Definition com_game.h:47
const char * gamename
Definition com_game.c:27
#define MAX_OSPATH
max length of a filesystem pathname
Definition qdefs.h:175
bool qbool
Definition qtypes.h:9