XenevaOS
Loading...
Searching...
No Matches
g_game.h
Go to the documentation of this file.
1//
2// Copyright(C) 1993-1996 Id Software, Inc.
3// Copyright(C) 2005-2014 Simon Howard
4//
5// This program is free software; you can redistribute it and/or
6// modify it under the terms of the GNU General Public License
7// as published by the Free Software Foundation; either version 2
8// of the License, or (at your option) any later version.
9//
10// This program is distributed in the hope that it will be useful,
11// but WITHOUT ANY WARRANTY; without even the implied warranty of
12// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13// GNU General Public License for more details.
14//
15// DESCRIPTION:
16// Duh.
17//
18
19
20#ifndef __G_GAME__
21#define __G_GAME__
22
23#include "doomdef.h"
24#include "d_event.h"
25#include "d_ticcmd.h"
26
27
28//
29// GAME
30//
31void G_DeathMatchSpawnPlayer (int playernum);
32
33void G_InitNew (skill_t skill, int episode, int map);
34
35// Can be called by the startup code or M_Responder.
36// A normal game starts at map 1,
37// but a warp test can start elsewhere
38void G_DeferedInitNew (skill_t skill, int episode, int map);
39
40void G_DeferedPlayDemo (char* demo);
41
42// Can be called by the startup code or M_Responder,
43// calls P_SetupLevel or W_EnterWorld.
44void G_LoadGame (char* name);
45
46void G_DoLoadGame (void);
47
48// Called by M_Responder.
49void G_SaveGame (int slot, char* description);
50
51// Only called by startup code.
52void G_RecordDemo (char* name);
53
54void G_BeginRecording (void);
55
56void G_PlayDemo (char* name);
57void G_TimeDemo (char* name);
58boolean G_CheckDemoStatus (void);
59
60void G_ExitLevel (void);
61void G_SecretExitLevel (void);
62
63void G_WorldDone (void);
64
65// Read current data from inputs and build a player movement command.
66
67void G_BuildTiccmd (ticcmd_t *cmd, int maketic);
68
69void G_Ticker (void);
70boolean G_Responder (event_t* ev);
71
72void G_ScreenShot (void);
73
75int G_VanillaVersionCode(void);
76
77extern int vanilla_savegame_limit;
78extern int vanilla_demo_limit;
79#endif
80
char * description
Definition d_main.c:941
int map
Definition d_mode.c:31
int episode
Definition d_mode.c:30
skill_t
Definition d_mode.h:80
struct drm_crtc struct drm_plane struct drm_plane const struct drm_crtc_funcs const char * name
Definition drm_crtc.h:1242
boolean G_Responder(event_t *ev)
Definition g_game.c:733
void G_LoadGame(char *name)
Definition g_game.c:1539
void G_RecordDemo(char *name)
Definition g_game.c:2010
void G_WorldDone(void)
Definition g_game.c:1494
void G_ExitLevel(void)
Definition g_game.c:1328
void G_DeathMatchSpawnPlayer(int playernum)
Definition g_game.c:1223
void G_SecretExitLevel(void)
Definition g_game.c:1335
void G_DeferedInitNew(skill_t skill, int episode, int map)
Definition g_game.c:1699
boolean G_CheckDemoStatus(void)
Definition g_game.c:2248
void G_PlayDemo(char *name)
void G_BeginRecording(void)
Definition g_game.c:2058
void G_Ticker(void)
Definition g_game.c:854
void G_ScreenShot(void)
Definition g_game.c:1296
void G_DeferedPlayDemo(char *demo)
Definition g_game.c:2107
void G_TimeDemo(char *name)
Definition g_game.c:2220
void G_SaveGame(int slot, char *description)
Definition g_game.c:1602
void G_InitNew(skill_t skill, int episode, int map)
Definition g_game.c:1728
void G_DoLoadGame(void)
Definition g_game.c:1548
void G_DrawMouseSpeedBox(void)
int vanilla_demo_limit
Definition g_game.c:231
int vanilla_savegame_limit
Definition g_game.c:230
void G_BuildTiccmd(ticcmd_t *cmd, int maketic)
Definition g_game.c:322
int G_VanillaVersionCode(void)
Definition g_game.c:2040
Definition d_event.h:43
Definition d_ticcmd.h:33