Nuclide
Software Development Kit for id Tech
nodes.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2016-2020 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
21/* parse info_node entities and convert them to FTE compatible routing data */
22#define NODE_DEBUG
23#define COST_INFINITE 99999
24
26typedef struct {
28 float m_flRadius; /* used for picking the closest waypoint. aka proximity weight. also relaxes routes inside the area. */
30 {
32 float m_flCost;
34 } *m_pNeighbour;
36} node_t;
37
40
46void Nodes_Flush(void);
47void Nodes_Init(void);
48bool Nodes_Available(void);
49 // end of nav
void Nodes_Flush(void)
Definition: nodes.qc:188
bool Nodes_Available(void)
Definition: nodes.qc:113
void Nodes_Init(void)
Definition: nodes.qc:173
int g_iNodes
Definition: nodes.h:39
node_t * g_pNodes
Definition: nodes.h:38
Definition: nodes.h:30
int m_iFlags
Definition: nodes.h:33
int m_iNode
Definition: nodes.h:31
float m_flCost
Definition: nodes.h:32
Data holding Node entries.
Definition: nodes.h:26
int m_numNeighbours
Definition: nodes.h:35
vector m_vecOrigin
Definition: nodes.h:27
float m_flRadius
Definition: nodes.h:28