Nuclide
Software Development Kit for id Tech
nodes.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2016-2020 Marco Cawthorne <marco@icculus.org>
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
17/* parse info_node entities and convert them to FTE compatible routing data */
18#define NODE_DEBUG
19
20typedef struct node_s {
22 float radius;
23
25 {
26 int node;
27 float dist;
28 int flags;
29 } *nb;
32
36
37/* info_nodes can do a lot more in theory, right now we don't */
38class info_node { };
39
40/* write current nodes to disk */
41void Nodes_Save(string);
42void Nodes_Load(string);
43void Nodes_Init(void);
Definition: info_node.qc:29
vector(vector) normalize
struct node_s node_t
void Nodes_Save(string)
Definition: nodes.qc:19
int g_iNodes
Definition: nodes.h:34
int g_nodes_present
Definition: nodes.h:35
void Nodes_Load(string)
Definition: nodes.qc:58
node_t * g_pNodes
Definition: nodes.h:33
void Nodes_Init(void)
Definition: nodes.qc:216
Definition: nodes.h:25
int flags
Definition: nodes.h:28
int node
Definition: nodes.h:26
float dist
Definition: nodes.h:27
Definition: nodes.h:20
float radius
Definition: nodes.h:22
struct node_s::neighbour_s * nb
vector origin
Definition: nodes.h:21
int nb_count
Definition: nodes.h:30