Nuclide
Software Development Kit for id Technology
NSRadar.h
1/*
2 * Copyright (c) 2023 Vera Visions LLC.
3 *
4 * Permission to use, copy, modify, and distribute this software for any
5 * purpose with or without fee is hereby granted, provided that the above
6 * copyright notice and this permission notice appear in all copies.
7 *
8 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
9 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
10 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
11 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
12 * WHATSOEVER RESULTING FROM LOSS OF MIND, USE, DATA OR PROFITS, WHETHER
13 * IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING
14 * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
15*/
16
28class
30{
31public:
32 void NSRadar(void);
33
35 nonvirtual NSRadar InitForCurrentMap(void);
37 nonvirtual NSRadar InitWithMapname(string);
38
40 nonvirtual NSRadar InitFromHLTVScript(string);
42 nonvirtual NSRadar InitFromSourceHLTVScript(string);
44 nonvirtual NSRadar InitWireframe(void);
46 nonvirtual NSRadar InitEmpty(void);
47
48 nonvirtual void RenderOverviewPlane(void);
49 nonvirtual void RenderWireframePlane(void);
50
51 nonvirtual void SetRadarPitch(float);
52
53 virtual void RenderPlayerIcon(entity);
54
55 /* overrides */
56 virtual void RenderView(void);
57 virtual void SetupView(void);
58
59private:
60 /* internal */
61 vector m_vecOrigin;
62 bool m_bRotated;
63 string m_strMaterial;
64 float m_flScale;
65 float m_flHeight;
66 float m_flZoom;
67
68 vector m_vecVert1;
69 vector m_vecVert2;
70 vector m_vecVert3;
71 vector m_vecVert4;
72
73 bool m_bShowPlayers;
74
75 float m_flRadarPitch;
76
77 nonvirtual void CalculateVertices(void);
78 nonvirtual void CalculateVerticesSource(float, float);
79};
80 // end of client
Tasked with managing overview/radar type widgets.
Definition: NSRadar.h:30
This class represents 3D views, used for rendering the game.
Definition: NSView.h:50