Main.h (2962B)
1 /* 2 =========================================================================== 3 4 Doom 3 BFG Edition GPL Source Code 5 Copyright (C) 1993-2012 id Software LLC, a ZeniMax Media company. 6 7 This file is part of the Doom 3 BFG Edition GPL Source Code ("Doom 3 BFG Edition Source Code"). 8 9 Doom 3 BFG Edition Source Code is free software: you can redistribute it and/or modify 10 it under the terms of the GNU General Public License as published by 11 the Free Software Foundation, either version 3 of the License, or 12 (at your option) any later version. 13 14 Doom 3 BFG Edition Source Code is distributed in the hope that it will be useful, 15 but WITHOUT ANY WARRANTY; without even the implied warranty of 16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 GNU General Public License for more details. 18 19 You should have received a copy of the GNU General Public License 20 along with Doom 3 BFG Edition Source Code. If not, see <http://www.gnu.org/licenses/>. 21 22 In addition, the Doom 3 BFG Edition Source Code is also subject to certain additional terms. You should have received a copy of these additional terms immediately following the terms and conditions of the GNU General Public License which accompanied the Doom 3 BFG Edition Source Code. If not, please request a copy in writing from id Software at the address below. 23 24 If you have questions concerning this license or the applicable additional terms, you may contact in writing id Software LLC, c/o ZeniMax Media Inc., Suite 120, Rockville, Maryland 20850 USA. 25 26 =========================================================================== 27 */ 28 29 30 #ifndef _MAIN_H_ 31 #define _MAIN_H_ 32 33 #include "idlib/precompiled.h" 34 35 #include "../doom/doomlib.h" 36 #include "../doom/doominterface.h" 37 #include "../doom/globaldata.h" 38 39 40 // DHM - Nerve :: Enable demo recording for game clips 41 #define _DEMO_RECORDING 42 43 #ifdef _DEBUG 44 #define safeOutputDebug(x) printf( "%s", x ); 45 #else 46 #define safeOutputDebug(x) 47 #endif 48 49 struct SplitscreenData { 50 int PLAYERCOUNT; 51 int globalSkill; 52 int globalEpisode; 53 int globalLevel; 54 int globalTimeLimit; 55 int globalFragLimit; 56 }; 57 58 void DL_InitNetworking( DoomInterface *pdi ); 59 60 extern int PLAYERCOUNT; 61 extern bool globalNetworking; 62 extern bool debugOutput; 63 extern BOOL globalLicenseFullGame; 64 extern int globalRichPresenceState; // values from spa.h X_CONTEXT_PRESENCE 65 extern int globalNeedUpsell; 66 // PS3 67 //extern HXUISTRINGTABLE globalStrings; // gStrings for short 68 extern bool globalPauseTime; 69 70 71 enum MenuStates{ 72 MENU_NONE, 73 MENU_XBOX_SYSTEM, 74 MENU_PAUSE, 75 MENU_UPSELL, 76 MENU_UPSELL_INVITE, 77 MENU_ENDLEVEL_UPSELL, 78 MENU_ERROR_MESSAGE, 79 MENU_ERROR_MESSAGE_FATAL, 80 MENU_END_LEVEL, 81 MENU_END_EPISODE, 82 MENU_END_CAST, 83 MENU_END_LEVEL_COOP, 84 MENU_END_LEVEL_DM, 85 MENU_END_GAME_LOBBY, 86 MENU_END_GAME_LOBBY_PLAYER, 87 MENU_LOBBY, 88 MENU_LOBBY_PLAYER, 89 MENU_INVITE, 90 MENU_COUNT 91 }; 92 93 typedef struct { 94 int maxPing; 95 96 const wchar_t * image; 97 } PingImage_t; 98 99 extern PingImage_t pingsImages[]; 100 101 102 #endif