Nuclide
Software Development Kit for id Tech
Main Page
Related Pages
Classes
Files
File List
File Members
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
20
typedef
struct
node_s
{
21
vector
origin
;
22
float
radius
;
23
24
struct
neighbour_s
25
{
26
int
node
;
27
float
dist
;
28
int
flags
;
29
} *
nb
;
30
int
nb_count
;
31
}
node_t
;
32
33
node_t
*
g_pNodes
;
34
int
g_iNodes
;
35
int
g_nodes_present
;
36
37
/* info_nodes can do a lot more in theory, right now we don't */
38
class
info_node
{ };
39
40
/* write current nodes to disk */
41
void
Nodes_Save
(
string
);
42
void
Nodes_Load
(
string
);
43
void
Nodes_Init
(
void
);
info_node
Definition:
info_node.qc:29
vector
vector(vector) normalize
node_t
struct node_s node_t
Nodes_Save
void Nodes_Save(string)
Definition:
nodes.qc:19
g_iNodes
int g_iNodes
Definition:
nodes.h:34
g_nodes_present
int g_nodes_present
Definition:
nodes.h:35
Nodes_Load
void Nodes_Load(string)
Definition:
nodes.qc:58
g_pNodes
node_t * g_pNodes
Definition:
nodes.h:33
Nodes_Init
void Nodes_Init(void)
Definition:
nodes.qc:216
node_s::neighbour_s
Definition:
nodes.h:25
node_s::neighbour_s::flags
int flags
Definition:
nodes.h:28
node_s::neighbour_s::node
int node
Definition:
nodes.h:26
node_s::neighbour_s::dist
float dist
Definition:
nodes.h:27
node_s
Definition:
nodes.h:20
node_s::radius
float radius
Definition:
nodes.h:22
node_s::nb
struct node_s::neighbour_s * nb
node_s::origin
vector origin
Definition:
nodes.h:21
node_s::nb_count
int nb_count
Definition:
nodes.h:30
src
server
nodes.h
Generated by
1.9.3