1 // Emacs style mode select   -*- C++ -*-
2 //-----------------------------------------------------------------------------
3 //
4 // $Id$
5 //
6 // Copyright (C) 2012 by Alex Mayfield.
7 //
8 // This program is free software; you can redistribute it and/or
9 // modify it under the terms of the GNU General Public License
10 // as published by the Free Software Foundation; either version 2
11 // of the License, or (at your option) any later version.
12 //
13 // This program is distributed in the hope that it will be useful,
14 // but WITHOUT ANY WARRANTY; without even the implied warranty of
15 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16 // GNU General Public License for more details.
17 //
18 // DESCRIPTION:
19 //   HUD elements.
20 //
21 //-----------------------------------------------------------------------------
22 
23 #ifndef __HU_ELEMENTS_H__
24 #define __HU_ELEMENTS_H__
25 
26 #include <string>
27 
28 namespace hud {
29 
30 std::string HelpText(void);
31 std::string SpyPlayerName(int& color);
32 std::string IntermissionTimer(void);
33 std::string Warmup(int& color);
34 std::string Timer(int& color);
35 std::string PersonalSpread(int& color);
36 std::string PersonalScore(int& color);
37 std::string NetdemoElapsed(void);
38 std::string NetdemoMaps(void);
39 std::string ClientsSplit(void);
40 std::string PlayersSplit(void);
41 byte CountTeamPlayers(byte team);
42 byte CountSpectators(void);
43 std::string TeamPlayers(int& color, byte team);
44 std::string TeamName(int& color, byte team);
45 std::string TeamFrags(int& color, byte team);
46 std::string TeamPoints(int& color, byte team);
47 std::string TeamKD(int& color, byte team);
48 std::string TeamPing(int& color, byte team);
49 
50 void EAPlayerColors(int x, int y,
51                     const unsigned short w, const unsigned short h,
52                     const float scale,
53                     const x_align_t x_align, const y_align_t y_align,
54                     const x_align_t x_origin, const y_align_t y_origin,
55                     const short padding, const short limit);
56 void EATeamPlayerColors(int x, int y,
57                         const unsigned short w, const unsigned short h,
58                         const float scale,
59                         const x_align_t x_align, const y_align_t y_align,
60                         const x_align_t x_origin, const y_align_t y_origin,
61                         const short padding, const short limit,
62                         const byte team);
63 void EAPlayerNames(int x, int y, const float scale,
64                    const x_align_t x_align, const y_align_t y_align,
65                    const x_align_t x_origin, const y_align_t y_origin,
66                    const short padding, const short limit,
67                    const bool force_opaque = false);
68 void EATeamPlayerNames(int x, int y, const float scale,
69                        const x_align_t x_align, const y_align_t y_align,
70                        const x_align_t x_origin, const y_align_t y_origin,
71                        const short padding, const short limit,
72                        const byte team, const bool force_opaque = false);
73 void EASpectatorNames(int x, int y, const float scale,
74                       const x_align_t x_align, const y_align_t y_align,
75                       const x_align_t x_origin, const y_align_t y_origin,
76                       const short padding, short skip, const short limit,
77                       const bool force_opaque = false);
78 void EAPlayerFrags(int x, int y, const float scale,
79                    const x_align_t x_align, const y_align_t y_align,
80                    const x_align_t x_origin, const y_align_t y_origin,
81                    const short padding, const short limit,
82                    const bool force_opaque = false);
83 void EATeamPlayerFrags(int x, int y, const float scale,
84                        const x_align_t x_align, const y_align_t y_align,
85                        const x_align_t x_origin, const y_align_t y_origin,
86                        const short padding, const short limit,
87                        const byte team, const bool force_opaque = false);
88 void EAPlayerKills(int x, int y, const float scale,
89                    const x_align_t x_align, const y_align_t y_align,
90                    const x_align_t x_origin, const y_align_t y_origin,
91                    const short padding, const short limit,
92                    const bool force_opaque = false);
93 void EAPlayerDeaths(int x, int y, const float scale,
94                     const x_align_t x_align, const y_align_t y_align,
95                     const x_align_t x_origin, const y_align_t y_origin,
96                     const short padding, const short limit,
97                     const bool force_opaque = false);
98 void EATeamPlayerPoints(int x, int y, const float scale,
99                         const x_align_t x_align, const y_align_t y_align,
100                         const x_align_t x_origin, const y_align_t y_origin,
101                         const short padding, const short limit,
102                         const byte team, const bool force_opaque = false);
103 void EAPlayerKD(int x, int y, const float scale,
104                 const x_align_t x_align, const y_align_t y_align,
105                 const x_align_t x_origin, const y_align_t y_origin,
106                 const short padding, const short limit,
107                 const bool force_opaque = false);
108 void EATeamPlayerKD(int x, int y, const float scale,
109                     const x_align_t x_align, const y_align_t y_align,
110                     const x_align_t x_origin, const y_align_t y_origin,
111                     const short padding, const short limit,
112                     const byte team, const bool force_opaque = false);
113 void EAPlayerTimes(int x, int y, const float scale,
114                    const x_align_t x_align, const y_align_t y_align,
115                    const x_align_t x_origin, const y_align_t y_origin,
116                    const short padding, const short limit,
117                    const bool force_opaque = false);
118 void EATeamPlayerTimes(int x, int y, const float scale,
119                        const x_align_t x_align, const y_align_t y_align,
120                        const x_align_t x_origin, const y_align_t y_origin,
121                        const short padding, const short limit,
122                        const byte team, const bool force_opaque);
123 void EAPlayerPings(int x, int y, const float scale,
124                    const x_align_t x_align, const y_align_t y_align,
125                    const x_align_t x_origin, const y_align_t y_origin,
126                    const short padding, const short limit,
127                    const bool force_opaque = false);
128 void EATeamPlayerPings(int x, int y, const float scale,
129                        const x_align_t x_align, const y_align_t y_align,
130                        const x_align_t x_origin, const y_align_t y_origin,
131                        const short padding, const short limit,
132                        const byte team, const bool force_opaque = false);
133 void EASpectatorPings(int x, int y, const float scale,
134                       const x_align_t x_align, const y_align_t y_align,
135                       const x_align_t x_origin, const y_align_t y_origin,
136                       const short padding, short skip, const short limit,
137                       const bool force_opaque = false);
138 void EATargets(int x, int y, const float scale,
139                const x_align_t x_align, const y_align_t y_align,
140                const x_align_t x_origin, const y_align_t y_origin,
141                const short padding, const short limit,
142                const bool force_opaque = false);
143 }
144 
145 #endif
146