Nuclide
Software Development Kit for id Technology (BETA)
nodes.h
1/*
2 * Copyright (c) 2016-2025 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
24typedef struct {
25 vector m_origin;
26 float m_nodeRadius; /* used for picking the closest waypoint. aka proximity weight. also relaxes routes inside the area. */
28 {
32 } *m_neighborList;
35
36graphNode_t *g_nodeGraph;
37int g_nodeCount;
38
44void Nodes_Flush(void);
45void Nodes_Init(void);
46bool Nodes_Available(void);
47 // end of nav
void Nodes_Flush(void)
Definition: nodes.qc:186
bool Nodes_Available(void)
Definition: nodes.qc:113
void Nodes_Init(void)
Definition: nodes.qc:169
Definition: nodes.h:28
int m_travelFlags
Definition: nodes.h:31
float m_travelCost
Definition: nodes.h:30
int m_nodeID
Definition: nodes.h:29
Data holding Node entries.
Definition: nodes.h:24
vector m_origin
Definition: nodes.h:25
int m_neighborCount
Definition: nodes.h:33
float m_nodeRadius
Definition: nodes.h:26