1 // Emacs style mode select   -*- C++ -*-
2 //-----------------------------------------------------------------------------
3 //
4 // $Id: g_game.h 1854 2010-09-05 00:44:20Z ladna $
5 //
6 // Copyright (C) 1993-1996 by id Software, Inc.
7 // Copyright (C) 2006-2014 by The Odamex Team.
8 //
9 // This program is free software; you can redistribute it and/or
10 // modify it under the terms of the GNU General Public License
11 // as published by the Free Software Foundation; either version 2
12 // of the License, or (at your option) any later version.
13 //
14 // This program 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 // DESCRIPTION:
20 //   Duh.
21 //
22 //-----------------------------------------------------------------------------
23 
24 
25 #ifndef __G_GAME__
26 #define __G_GAME__
27 
28 #include "doomdef.h"
29 #include "d_event.h"
30 #include "d_player.h"
31 #include "g_level.h"
32 
33 //
34 // GAME
35 //
36 void G_DeathMatchSpawnPlayer(player_t &player);
37 void G_DoReborn(player_t &player);
38 
39 void G_DeferedPlayDemo(const char* demo);
40 
41 // Can be called by the startup code or M_Responder,
42 // calls P_SetupLevel or W_EnterWorld.
43 void G_LoadGame(char* name);
44 
45 void G_DoLoadGame(void);
46 
47 // Called by M_Responder.
48 void G_BuildSaveName(std::string &name, int slot);
49 void G_SaveGame(int slot, char* description);
50 
51 bool G_RecordDemo(const std::string& mapname, const std::string& basedemoname);
52 
53 void G_PlayDemo(char* name);
54 void G_DoPlayDemo(bool justStreamInput = false);
55 void G_TimeDemo(const char* name);
56 BOOL G_CheckDemoStatus(void);
57 void G_CleanupDemo();
58 
59 void G_WorldDone(void);
60 
61 void G_Ticker(void);
62 BOOL G_Responder(event_t*	ev);
63 
64 void G_ScreenShot(char *filename);
65 
66 void G_PlayerFinishLevel(player_t &player);
67 
68 extern std::vector<level_pwad_info_t> wadlevelinfos;
69 extern std::vector<cluster_info_t> wadclusterinfos;
70 extern int mapchange;
71 
72 extern bool timingdemo;
73 
74 #endif
75