|
Odamex
Setting the Standard in Multiplayer Doom
|
00001 // Emacs style mode select -*- C++ -*- 00002 //----------------------------------------------------------------------------- 00003 // 00004 // $Id: st_stuff.h 1788 2010-08-24 04:42:57Z russellrice $ 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 // Status bar code. 00021 // Does the face/direction indicator animatin. 00022 // Does palette indicators as well (red pain/berserk, bright pickup) 00023 // 00024 //----------------------------------------------------------------------------- 00025 00026 00027 #ifndef __STSTUFF_H__ 00028 #define __STSTUFF_H__ 00029 00030 #include "doomtype.h" 00031 #include "d_event.h" 00032 00033 // [RH] Turned these into variables 00034 // Size of statusbar. 00035 // Now ([RH] truly) sensitive for scaling. 00036 extern int ST_HEIGHT; 00037 extern int ST_WIDTH; 00038 extern int ST_X; 00039 extern int ST_Y; 00040 00041 // 00042 // STATUS BAR 00043 // 00044 00045 // Called by main loop. 00046 bool ST_Responder (event_t* ev); 00047 00048 // Called by main loop. 00049 void ST_Ticker (void); 00050 00051 // Called by main loop. 00052 void ST_Drawer (void); 00053 00054 // Called when the console player is spawned on each level. 00055 void ST_Start (void); 00056 00057 // Called by startup code. 00058 void ST_Init (void); 00059 00060 // Draw the HUD (only if old status bar is not drawn) 00061 void ST_newDraw (void); 00062 00063 // Draw the CTF HUD (separated for spectator) 00064 void ST_newDrawCTF (void); 00065 00066 // Draws name of player currently in control of the status bar 00067 void ST_nameDraw (int y); 00068 00069 // Called on init and whenever player's skin changes 00070 void ST_loadGraphics (void); 00071 00072 00073 // States for status bar code. 00074 typedef enum 00075 { 00076 AutomapState, 00077 FirstPersonState 00078 00079 } st_stateenum_t; 00080 00081 bool ST_Responder(event_t* ev); 00082 00083 // [RH] Base blending values (for e.g. underwater) 00084 extern int BaseBlendR, BaseBlendG, BaseBlendB; 00085 extern float BaseBlendA; 00086 00087 00088 #endif 00089 00090