1 // Emacs style mode select -*- C++ -*- 2 //----------------------------------------------------------------------------- 3 // 4 // $Id:$ 5 // 6 // Copyright (C) 1993-1996 by id Software, Inc. 7 // 8 // This source is available for distribution and/or modification 9 // only under the terms of the DOOM Source Code License as 10 // published by id Software. All rights reserved. 11 // 12 // The source is distributed in the hope that it will be useful, 13 // but WITHOUT ANY WARRANTY; without even the implied warranty of 14 // FITNESS FOR A PARTICULAR PURPOSE. See the DOOM Source Code License 15 // for more details. 16 // 17 // DESCRIPTION: Head up display 18 // 19 //----------------------------------------------------------------------------- 20 21 #ifndef __HU_STUFF_H__ 22 #define __HU_STUFF_H__ 23 24 #include "doomtype.h" 25 26 struct event_t; 27 class player_t; 28 29 // 30 // Globally visible constants. 31 // 32 #define HU_FONTSTART BYTE('!') // the first font characters 33 #define HU_FONTEND BYTE('\377') // the last font characters 34 35 // Calculate # of glyphs in font. 36 #define HU_FONTSIZE (HU_FONTEND - HU_FONTSTART + 1) 37 38 // 39 // Chat routines 40 // 41 42 void CT_Init (void); 43 bool CT_Responder (event_t* ev); 44 void CT_Drawer (void); 45 46 extern int chatmodeon; 47 48 // [RH] Draw deathmatch scores 49 50 void HU_DrawScores (player_t *me); 51 void HU_GetPlayerWidths(int &maxnamewidth, int &maxscorewidth, int &maxiconheight); 52 void HU_DrawColorBar(int x, int y, int height, int playernum); 53 int HU_GetRowColor(player_t *player, bool hightlight); 54 55 extern bool SB_ForceActive; 56 57 // Sorting routines 58 59 int STACK_ARGS comparepoints(const void *arg1, const void *arg2); 60 int STACK_ARGS compareteams(const void *arg1, const void *arg2); 61 62 #endif 63