Nuclide
Software Development Kit for id Tech
NSRadar.h
Go to the documentation of this file.
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
59
60private:
61 /* internal */
62 vector m_vecOrigin;
63 bool m_bRotated;
64 string m_strMaterial;
65 float m_flScale;
66 float m_flHeight;
67 float m_flZoom;
68
69 vector m_vecVert1;
70 vector m_vecVert2;
71 vector m_vecVert3;
72 vector m_vecVert4;
73
74 bool m_bShowPlayers;
75
76 float m_flRadarPitch;
77
78 nonvirtual void CalculateVertices(void);
79 nonvirtual void CalculateVerticesSource(float, float);
80};
81 // 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