OpenMoHAA 0.82.0
Loading...
Searching...
No Matches
g_main.h
1/*
2===========================================================================
3Copyright (C) 1999-2005 Id Software, Inc.
4
5This file is part of Quake III Arena source code.
6
7Quake III Arena source code is free software; you can redistribute it
8and/or modify it under the terms of the GNU General Public License as
9published by the Free Software Foundation; either version 2 of the License,
10or (at your option) any later version.
11
12Quake III Arena source code is distributed in the hope that it will be
13useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
14MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15GNU General Public License for more details.
16
17You should have received a copy of the GNU General Public License
18along with Quake III Arena source code; if not, write to the Free Software
19Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
20===========================================================================
21*/
22//
23// g_main.h -- Global header file for g_main.cpp
24
25#pragma once
26
27#include "g_local.h"
28#include "gamecvars.h"
29
30class Player;
31
32extern qboolean LoadingSavegame;
33extern qboolean LoadingServer;
34extern game_import_t gi;
35extern game_export_t globals;
36extern int g_protocol;
37extern target_game_e g_target_game;
38
39extern qboolean g_iInThinks;
40extern qboolean g_bBeforeThinks;
41
42extern gentity_t active_edicts;
43extern gentity_t free_edicts;
44
45extern int sv_numtraces;
46extern int sv_numpmtraces;
47
48extern usercmd_t *current_ucmd;
49extern usereyes_t *current_eyeinfo;
50extern Player *g_pPlayer;
51
52void G_ExitWithError(const char *error);
53void G_AllocGameData(void);
54void G_DeAllocGameData(void);
55void G_ClientDrawBoundingBoxes(void);
56void G_ClientDrawTags(void);
Definition player.h:127