2006-02-24 04:48:15 +00:00
|
|
|
// Emacs style mode select -*- C++ -*-
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
//
|
|
|
|
// $Id:$
|
|
|
|
//
|
|
|
|
// Copyright (C) 1993-1996 by id Software, Inc.
|
|
|
|
//
|
|
|
|
// This source is available for distribution and/or modification
|
|
|
|
// only under the terms of the DOOM Source Code License as
|
|
|
|
// published by id Software. All rights reserved.
|
|
|
|
//
|
|
|
|
// The source is distributed in the hope that it will be useful,
|
|
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
// FITNESS FOR A PARTICULAR PURPOSE. See the DOOM Source Code License
|
|
|
|
// for more details.
|
|
|
|
//
|
|
|
|
// DESCRIPTION:
|
|
|
|
// Duh.
|
|
|
|
//
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef __G_GAME__
|
|
|
|
#define __G_GAME__
|
|
|
|
|
2008-09-14 23:54:38 +00:00
|
|
|
struct event_t;
|
|
|
|
struct PNGHandle;
|
2006-02-24 04:48:15 +00:00
|
|
|
|
|
|
|
|
|
|
|
//
|
|
|
|
// GAME
|
|
|
|
//
|
|
|
|
void G_DeathMatchSpawnPlayer (int playernum);
|
|
|
|
|
2010-03-02 04:51:16 +00:00
|
|
|
void G_DeferedPlayDemo (const char* demo);
|
2006-02-24 04:48:15 +00:00
|
|
|
|
|
|
|
// Can be called by the startup code or M_Responder,
|
|
|
|
// calls P_SetupLevel or W_EnterWorld.
|
2006-05-16 02:50:18 +00:00
|
|
|
void G_LoadGame (const char* name);
|
2006-02-24 04:48:15 +00:00
|
|
|
|
|
|
|
void G_DoLoadGame (void);
|
|
|
|
|
|
|
|
// Called by M_Responder.
|
|
|
|
void G_SaveGame (const char *filename, const char *description);
|
|
|
|
|
|
|
|
// Only called by startup code.
|
2010-03-02 04:51:16 +00:00
|
|
|
void G_RecordDemo (const char* name);
|
2006-02-24 04:48:15 +00:00
|
|
|
|
2006-04-16 19:09:36 +00:00
|
|
|
void G_BeginRecording (const char *startmap);
|
2006-02-24 04:48:15 +00:00
|
|
|
|
|
|
|
void G_PlayDemo (char* name);
|
2010-03-02 04:51:16 +00:00
|
|
|
void G_TimeDemo (const char* name);
|
2006-09-14 00:02:31 +00:00
|
|
|
bool G_CheckDemoStatus (void);
|
2006-02-24 04:48:15 +00:00
|
|
|
|
|
|
|
void G_WorldDone (void);
|
|
|
|
|
|
|
|
void G_Ticker (void);
|
2006-09-14 00:02:31 +00:00
|
|
|
bool G_Responder (event_t* ev);
|
2006-02-24 04:48:15 +00:00
|
|
|
|
|
|
|
void G_ScreenShot (char *filename);
|
|
|
|
|
2006-05-03 22:45:01 +00:00
|
|
|
FString G_BuildSaveName (const char *prefix, int slot);
|
2006-02-24 04:48:15 +00:00
|
|
|
|
|
|
|
struct PNGHandle;
|
|
|
|
bool G_CheckSaveGameWads (PNGHandle *png, bool printwarn);
|
|
|
|
|
|
|
|
enum EFinishLevelType
|
|
|
|
{
|
|
|
|
FINISH_SameHub,
|
|
|
|
FINISH_NextHub,
|
|
|
|
FINISH_NoHub
|
|
|
|
};
|
|
|
|
|
2010-06-18 03:35:41 +00:00
|
|
|
void G_PlayerFinishLevel (int player, EFinishLevelType mode, int flags);
|
2006-02-24 04:48:15 +00:00
|
|
|
|
2008-01-11 01:43:37 +00:00
|
|
|
void G_DoReborn (int playernum, bool freshbot);
|
|
|
|
|
2006-02-24 04:48:15 +00:00
|
|
|
// Adds pitch to consoleplayer's viewpitch and clamps it
|
|
|
|
void G_AddViewPitch (int look);
|
|
|
|
|
|
|
|
// Adds to consoleplayer's viewangle if allowed
|
|
|
|
void G_AddViewAngle (int yaw);
|
|
|
|
|
|
|
|
#define BODYQUESIZE 32
|
|
|
|
class AActor;
|
|
|
|
extern AActor *bodyque[BODYQUESIZE];
|
|
|
|
extern int bodyqueslot;
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|