FTEQW
Documentation of the FTE engine source tree.
Main Page
Classes
Files
File List
File Members
sbar.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 1996-1997 Id Software, Inc.
3
4
This program is free software; you can redistribute it and/or
5
modify it under the terms of the GNU General Public License
6
as published by the Free Software Foundation; either version 2
7
of the License, or (at your option) any later version.
8
9
This program is distributed in the hope that it will be useful,
10
but WITHOUT ANY WARRANTY; without even the implied warranty of
11
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
12
13
See the GNU General Public License for more details.
14
15
You should have received a copy of the GNU General Public License
16
along with this program; if not, write to the Free Software
17
Foundation, 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
27
extern
int
sb_lines
;
// scan lines to draw
28
29
void
Sbar_Init
(
void
);
30
struct
player_info_s
;
31
qboolean
Sbar_UpdateTeamStatus
(
struct
player_info_s
*player,
char
*status);
32
33
void
Sbar_Changed
(
void
);
34
// call whenever any of the client stats represented on the sbar changes
35
36
qboolean
Sbar_ShouldDraw
(
playerview_t
*pv);
37
void
Sbar_Draw
(
playerview_t
*pv);
//uses the current r_refdef.grect
38
void
Sbar_DrawScoreboard
(
playerview_t
*pv);
39
// called every frame by screen
40
41
void
Sbar_IntermissionOverlay
(
playerview_t
*pv);
42
// called each frame after the level has been completed
43
44
void
Sbar_FinaleOverlay
(
void
);
45
46
void
Sbar_PQ_Team_New
(
unsigned
int
team
,
unsigned
int
shirt);
47
void
Sbar_PQ_Team_Frags
(
unsigned
int
team
,
int
frags
);
48
void
Sbar_PQ_Team_Reset
(
void
);
49
50
void
Sbar_Start
(
void
);
51
void
Sbar_Flush
(
void
);
52
int
Sbar_TranslateHudClick
(
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
68
unsigned
int
Sbar_ColorForMap
(
unsigned
int
m);
69
70
void
Sbar_SortFrags
(
qboolean
includespec,
qboolean
teamsort);
71
extern
int
scoreboardlines
;
72
extern
int
fragsort
[];
qboolean
qboolean
Definition:
api_menu.h:34
team
cvar_t team
Definition:
cl_main.c:151
frags
short frags
Definition:
sbar.c:1557
Sbar_PQ_Team_New
void Sbar_PQ_Team_New(unsigned int team, unsigned int shirt)
Definition:
sbar.c:1559
Sbar_TranslateHudClick
int Sbar_TranslateHudClick(void)
Definition:
sbar.c:2095
scoreboardlines
int scoreboardlines
Definition:
sbar.c:1590
Sbar_Changed
void Sbar_Changed(void)
Definition:
sbar.c:977
Sbar_Flush
void Sbar_Flush(void)
Definition:
sbar.c:1002
Sbar_ColorForMap
unsigned int Sbar_ColorForMap(unsigned int m)
Definition:
sbar.c:1579
Sbar_UpdateTeamStatus
qboolean Sbar_UpdateTeamStatus(struct player_info_s *player, char *status)
Definition:
sbar.c:2858
fragsort
int fragsort[]
Definition:
sbar.c:1591
Sbar_PQ_Team_Frags
void Sbar_PQ_Team_Frags(unsigned int team, int frags)
Definition:
sbar.c:1565
Sbar_Init
void Sbar_Init(void)
Definition:
sbar.c:1166
Sbar_IntermissionOverlay
void Sbar_IntermissionOverlay(playerview_t *pv)
Definition:
sbar.c:4169
sb_lines
int sb_lines
Definition:
sbar.c:139
Sbar_PQ_Team_Reset
void Sbar_PQ_Team_Reset(void)
Definition:
sbar.c:1571
Sbar_FinaleOverlay
void Sbar_FinaleOverlay(void)
Sbar_Start
void Sbar_Start(void)
Definition:
sbar.c:1007
Sbar_ShouldDraw
qboolean Sbar_ShouldDraw(playerview_t *pv)
Definition:
sbar.c:2352
Sbar_SortFrags
void Sbar_SortFrags(qboolean includespec, qboolean teamsort)
Definition:
sbar.c:1597
Sbar_Draw
void Sbar_Draw(playerview_t *pv)
Definition:
sbar.c:3019
Sbar_DrawScoreboard
void Sbar_DrawScoreboard(playerview_t *pv)
Definition:
sbar.c:2374
player_info_s
Definition:
client.h:159
playerview_s
Definition:
client.h:639
fteqw
engine
client
sbar.h
Generated by
1.9.3