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: Head up display
|
|
|
|
//
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
#ifndef __HU_STUFF_H__
|
|
|
|
#define __HU_STUFF_H__
|
|
|
|
|
2014-07-09 07:15:51 +00:00
|
|
|
#include "doomtype.h"
|
|
|
|
|
2008-09-14 23:54:38 +00:00
|
|
|
struct event_t;
|
|
|
|
class player_t;
|
2006-02-24 04:48:15 +00:00
|
|
|
|
|
|
|
//
|
|
|
|
// Globally visible constants.
|
|
|
|
//
|
2006-12-21 04:34:43 +00:00
|
|
|
#define HU_FONTSTART BYTE('!') // the first font characters
|
2012-04-25 01:43:50 +00:00
|
|
|
#define HU_FONTEND BYTE('\377') // the last font characters
|
2006-02-24 04:48:15 +00:00
|
|
|
|
|
|
|
// Calculate # of glyphs in font.
|
2006-12-21 04:34:43 +00:00
|
|
|
#define HU_FONTSIZE (HU_FONTEND - HU_FONTSTART + 1)
|
2006-02-24 04:48:15 +00:00
|
|
|
|
|
|
|
//
|
|
|
|
// Chat routines
|
|
|
|
//
|
|
|
|
|
|
|
|
void CT_Init (void);
|
2006-09-14 00:02:31 +00:00
|
|
|
bool CT_Responder (event_t* ev);
|
2006-02-24 04:48:15 +00:00
|
|
|
void CT_Drawer (void);
|
|
|
|
|
|
|
|
extern int chatmodeon;
|
|
|
|
|
|
|
|
// [RH] Draw deathmatch scores
|
|
|
|
|
2008-06-01 07:52:33 +00:00
|
|
|
void HU_DrawScores (player_t *me);
|
2012-08-10 02:49:41 +00:00
|
|
|
void HU_GetPlayerWidths(int &maxnamewidth, int &maxscorewidth, int &maxiconheight);
|
2008-12-16 03:15:03 +00:00
|
|
|
void HU_DrawColorBar(int x, int y, int height, int playernum);
|
|
|
|
int HU_GetRowColor(player_t *player, bool hightlight);
|
2006-02-24 04:48:15 +00:00
|
|
|
|
2014-06-17 07:23:34 +00:00
|
|
|
// Sorting routines
|
|
|
|
|
2014-07-09 07:15:51 +00:00
|
|
|
int STACK_ARGS comparepoints(const void *arg1, const void *arg2);
|
|
|
|
int STACK_ARGS compareteams(const void *arg1, const void *arg2);
|
2014-06-17 07:23:34 +00:00
|
|
|
|
2006-02-24 04:48:15 +00:00
|
|
|
#endif
|