Odamex
Setting the Standard in Multiplayer Doom
common/g_game.h
Go to the documentation of this file.
00001 // Emacs style mode select   -*- C++ -*- 
00002 //-----------------------------------------------------------------------------
00003 //
00004 // $Id: g_game.h 1854 2010-09-05 00:44:20Z ladna $
00005 //
00006 // Copyright (C) 1993-1996 by id Software, Inc.
00007 // Copyright (C) 2006-2010 by The Odamex Team.
00008 //
00009 // This program is free software; you can redistribute it and/or
00010 // modify it under the terms of the GNU General Public License
00011 // as published by the Free Software Foundation; either version 2
00012 // of the License, or (at your option) any later version.
00013 //
00014 // This program is distributed in the hope that it will be useful,
00015 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00016 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00017 // GNU General Public License for more details.
00018 //
00019 // DESCRIPTION:
00020 //   Duh.
00021 // 
00022 //-----------------------------------------------------------------------------
00023 
00024 
00025 #ifndef __G_GAME__
00026 #define __G_GAME__
00027 
00028 #include "doomdef.h"
00029 #include "d_event.h"
00030 #include "d_player.h"
00031 
00032 //
00033 // GAME
00034 //
00035 void G_DeathMatchSpawnPlayer(player_t &player);
00036 void G_DoReborn(player_t &player);
00037 
00038 void G_DeferedPlayDemo(const char* demo);
00039 
00040 // Can be called by the startup code or M_Responder,
00041 // calls P_SetupLevel or W_EnterWorld.
00042 void G_LoadGame(char* name);
00043 
00044 void G_DoLoadGame(void);
00045 
00046 // Called by M_Responder.
00047 void G_BuildSaveName(std::string &name, int slot);
00048 void G_SaveGame(int slot, char* description);
00049 
00050 // Only called by startup code.
00051 bool G_RecordDemo(const char* name);
00052 
00053 void G_BeginRecording(void);
00054 
00055 void G_PlayDemo(char* name);
00056 void G_DoPlayDemo(bool justStreamInput = false);
00057 void G_TimeDemo(char* name);
00058 BOOL G_CheckDemoStatus(void);
00059 
00060 void G_WorldDone(void);
00061 
00062 void G_Ticker(void);
00063 BOOL G_Responder(event_t*       ev);
00064 
00065 void G_ScreenShot(char *filename);
00066 
00067 void G_PlayerFinishLevel(player_t &player);
00068 
00069 extern level_pwad_info_t *wadlevelinfos;
00070 extern cluster_info_t *wadclusterinfos;
00071 extern size_t numwadlevelinfos;
00072 extern size_t numwadclusterinfos;
00073 
00074 #endif
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends