FTEQW
Documentation of the FTE engine source tree.
sbar.h
Go to the documentation of this file.
1/*
2Copyright (C) 1996-1997 Id Software, Inc.
3
4This program is free software; you can redistribute it and/or
5modify it under the terms of the GNU General Public License
6as published by the Free Software Foundation; either version 2
7of the License, or (at your option) any later version.
8
9This program is distributed in the hope that it will be useful,
10but WITHOUT ANY WARRANTY; without even the implied warranty of
11MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
12
13See the GNU General Public License for more details.
14
15You should have received a copy of the GNU General Public License
16along with this program; if not, write to the Free Software
17Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18
19*/
20
21// the status bar is only redrawn if something has changed, but if anything
22// does, the entire thing will be redrawn for the next vid.numpages frames.
23
24#ifdef QUAKEHUD
25#define SBAR_HEIGHT 24
26
27extern int sb_lines; // scan lines to draw
28
29void Sbar_Init (void);
30struct player_info_s;
31qboolean Sbar_UpdateTeamStatus(struct player_info_s *player, char *status);
32
33void Sbar_Changed (void);
34// call whenever any of the client stats represented on the sbar changes
35
37void Sbar_Draw (playerview_t *pv); //uses the current r_refdef.grect
39// called every frame by screen
40
42// called each frame after the level has been completed
43
45
46void Sbar_PQ_Team_New(unsigned int team, unsigned int shirt);
47void Sbar_PQ_Team_Frags(unsigned int team, int frags);
48void Sbar_PQ_Team_Reset(void);
49
50void Sbar_Start (void);
51void Sbar_Flush (void);
53
54#else
55#define sb_lines 0
56#define Sbar_Init()
57#define Sbar_Start()
58#define Sbar_Changed()
59#define Sbar_Draw(pv)
60#define Sbar_Flush()
61#define Sbar_ShouldDraw(pv) false
62#define Sbar_DrawScoreboard(pv)
63#define Sbar_FinaleOverlay()
64#define Sbar_IntermissionOverlay(pv)
65#define Sbar_TranslateHudClick() 0
66#endif
67
68unsigned int Sbar_ColorForMap (unsigned int m);
69
70void Sbar_SortFrags (qboolean includespec, qboolean teamsort);
71extern int scoreboardlines;
72extern int fragsort[];
qboolean
Definition: api_menu.h:34
cvar_t team
Definition: cl_main.c:151
short frags
Definition: sbar.c:1557
void Sbar_PQ_Team_New(unsigned int team, unsigned int shirt)
Definition: sbar.c:1559
int Sbar_TranslateHudClick(void)
Definition: sbar.c:2095
int scoreboardlines
Definition: sbar.c:1590
void Sbar_Changed(void)
Definition: sbar.c:977
void Sbar_Flush(void)
Definition: sbar.c:1002
unsigned int Sbar_ColorForMap(unsigned int m)
Definition: sbar.c:1579
qboolean Sbar_UpdateTeamStatus(struct player_info_s *player, char *status)
Definition: sbar.c:2858
int fragsort[]
Definition: sbar.c:1591
void Sbar_PQ_Team_Frags(unsigned int team, int frags)
Definition: sbar.c:1565
void Sbar_Init(void)
Definition: sbar.c:1166
void Sbar_IntermissionOverlay(playerview_t *pv)
Definition: sbar.c:4169
int sb_lines
Definition: sbar.c:139
void Sbar_PQ_Team_Reset(void)
Definition: sbar.c:1571
void Sbar_FinaleOverlay(void)
void Sbar_Start(void)
Definition: sbar.c:1007
qboolean Sbar_ShouldDraw(playerview_t *pv)
Definition: sbar.c:2352
void Sbar_SortFrags(qboolean includespec, qboolean teamsort)
Definition: sbar.c:1597
void Sbar_Draw(playerview_t *pv)
Definition: sbar.c:3019
void Sbar_DrawScoreboard(playerview_t *pv)
Definition: sbar.c:2374
Definition: client.h:159
Definition: client.h:639