Nuclide
Software Development Kit for id Technology (BETA)
Main Page
Related Pages
Modules
Classes
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
24
typedef
struct
{
25
vector
m_origin
;
26
float
m_nodeRadius
;
/* used for picking the closest waypoint. aka proximity weight. also relaxes routes inside the area. */
27
struct
neighbour_s
28
{
29
int
m_nodeID
;
30
float
m_travelCost
;
31
int
m_travelFlags
;
32
} *m_neighborList;
33
int
m_neighborCount
;
34
}
graphNode_t
;
35
36
graphNode_t
*g_nodeGraph;
37
int
g_nodeCount;
38
44
void
Nodes_Flush
(
void
);
45
void
Nodes_Init
(
void
);
46
bool
Nodes_Available
(
void
);
47
// end of nav
Nodes_Flush
void Nodes_Flush(void)
Definition:
nodes.qc:186
Nodes_Available
bool Nodes_Available(void)
Definition:
nodes.qc:113
Nodes_Init
void Nodes_Init(void)
Definition:
nodes.qc:169
graphNode_t::neighbour_s
Definition:
nodes.h:28
graphNode_t::neighbour_s::m_travelFlags
int m_travelFlags
Definition:
nodes.h:31
graphNode_t::neighbour_s::m_travelCost
float m_travelCost
Definition:
nodes.h:30
graphNode_t::neighbour_s::m_nodeID
int m_nodeID
Definition:
nodes.h:29
graphNode_t
Data holding Node entries.
Definition:
nodes.h:24
graphNode_t::m_origin
vector m_origin
Definition:
nodes.h:25
graphNode_t::m_neighborCount
int m_neighborCount
Definition:
nodes.h:33
graphNode_t::m_nodeRadius
float m_nodeRadius
Definition:
nodes.h:26
src
nav
nodes.h
2009-2025 (C) Nuclide is a project by
Vera Visions, L.L.C.
and is available under the
ISC License
.