mirror of
https://github.com/ZDoom/qzdoom-gpl.git
synced 2024-12-13 13:40:53 +00:00
6227906072
some changes to the MAPINFO parser which tried to access the texture manager to check if the level name patches exist. That check had to be moved to where the intermission screen is set up. - Fixed: 'bloodcolor' ignored the first parameter value when given a list of integers. Please note that this creates an incompatibility between old and new versions so if you want to create something that works with both 2.2.0 and current versions better use the string format version for the color parameter! - Rewrote the DECORATE property parser so that the parser is completely separated from the property handlers. This should allow reuse of all the handler code for a new format if Doomscript requires one. - Fixed: PClass::InitializeActorInfo copied too many bytes if a subclass's defaults were larger than the parent's. - Moved A_ChangeFlag to thingdef_codeptr.cpp. - Moved translation related code from thingdef_properties.cpp to r_translate.cpp and rewrote the translation parser to use FScanner instead of strtol. - replaced DECORATE's 'alpha default' by 'defaultalpha' for consistency. Since this was never used outside zdoom.pk3 it's not critical. - Removed support for game specific pickup messages because the only thing this was ever used for - Raven's invulnerability item - has already been split up into a Heretic and Hexen version. SVN r1240 (trunk)
91 lines
2 KiB
C++
91 lines
2 KiB
C++
// 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:
|
|
// Intermission.
|
|
//
|
|
//-----------------------------------------------------------------------------
|
|
|
|
#ifndef __WI_STUFF__
|
|
#define __WI_STUFF__
|
|
|
|
#include "doomdef.h"
|
|
|
|
class FTexture;
|
|
|
|
//
|
|
// INTERMISSION
|
|
// Structure passed e.g. to WI_Start(wb)
|
|
//
|
|
struct wbplayerstruct_t
|
|
{
|
|
bool in; // whether the player is in game
|
|
|
|
// Player stats, kills, collected items etc.
|
|
int skills;
|
|
int sitems;
|
|
int ssecret;
|
|
int stime;
|
|
int frags[MAXPLAYERS];
|
|
int fragcount; // [RH] Cumulative frags for this player
|
|
|
|
};
|
|
|
|
struct wbstartstruct_t
|
|
{
|
|
int finished_ep;
|
|
int next_ep;
|
|
|
|
FString current; // [RH] Name of map just finished
|
|
FString next; // next level, [RH] actual map name
|
|
|
|
FTexture *LName0;
|
|
FTexture *LName1;
|
|
|
|
int maxkills;
|
|
int maxitems;
|
|
int maxsecret;
|
|
int maxfrags;
|
|
|
|
// the par time and sucktime
|
|
int partime; // in tics
|
|
int sucktime; // in minutes
|
|
|
|
// total time for the entire current game
|
|
int totaltime;
|
|
|
|
// index of this player in game
|
|
int pnum;
|
|
|
|
wbplayerstruct_t plyr[MAXPLAYERS];
|
|
};
|
|
|
|
// Intermission stats.
|
|
// Parameters for world map / intermission.
|
|
extern wbstartstruct_t wminfo;
|
|
|
|
|
|
// Called by main loop, animate the intermission.
|
|
void WI_Ticker ();
|
|
|
|
// Called by main loop,
|
|
// draws the intermission directly into the screen buffer.
|
|
void WI_Drawer ();
|
|
|
|
// Setup for an intermission screen.
|
|
void WI_Start (wbstartstruct_t *wbstartstruct);
|
|
|
|
#endif
|