Debian Codegraph @

editor/ebnode.h

raw symbols SCIP
1 /*
2 * Descent 3
3 * Copyright (C) 2024 Parallax Software
4 *
5 * This program is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation, either version 3 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17
18 --- HISTORICAL COMMENTS FOLLOW ---
19
20 * $Logfile: /DescentIII/Main/editor/ebnode.h $
21 * $Revision: 1.1.1.1 $
22 * $Date: 2003-08-26 03:57:37 $
23 * $Author: kevinb $
24 *
25 * BOA Helper Node functions
26 *
27 * $Log: not supported by cvs2svn $
28 *
29 * 7 4/27/99 11:37p Chris
30 * Improving the BNode system
31 *
32 * 6 4/26/99 10:31p Chris
33 * Improving the BNode system
34 *
35 * 5 4/25/99 9:02p Chris
36 * Improving the Bnode system
37 *
38 * 4 4/18/99 5:39a Chris
39 * Vastly improved the path node system
40 *
41 * 3 4/15/99 5:49p Chris
42 * Fixed a bug with rendering the BOAPath nodes
43 *
44 * 2 4/14/99 3:13p Chris
45 * Beginning to add BoaNode stuff
46 *
47 * $NoKeywords: $
48 */
49
50 #ifndef EBNODE_H_
51 #define EBNODE_H_
52
53 #include "bnode.h"
54 #include "room.h"
55 #include "mem.h"
56 #include "vecmat.h"
57 #include "3d.h"
58 #include "gr.h"
59
60 #define EBDRAW_NONE 0
61 #define EBDRAW_ROOM 1
62 #define EBDRAW_ROOM_AND_NEXT_ROOMS 2
63 #define EBDRAW_LEVEL 3
64
65 extern char EBN_draw_type;
66
67 extern void EBNode_MakeDefaultIntraRoomNodes(int roomnum);
68 extern void EBNode_MakeDefaultInterRoomEdges(int roomnum);
69 extern void EBNode_MakeFirstPass(void);
70 extern void EBNode_Draw(char draw_type, grViewport *vp, vector *viewer_eye, matrix *viewer_orient, float zoom);
71 extern void EBNode_Move(bool f_offset, int roomnum, int pnt, vector *pos);
72 extern int EBNode_AddNode(int roomnum, vector *pnt, bool f_from_editor, bool f_check_for_close_nodes);
73 // Note the 2 last parameters are for internal use ONLY never set them
74 extern void EBNode_AddEdge(int spnt, int sroom, int epnt, int eroom, bool f_make_reverse = true,
75 float computed_max_rad = -1.0f);
76 extern void EBNode_RemoveEdge(int spnt, int sroom, int epnt, int eroom, bool f_remove_reverse = true);
77 int EBNode_InsertNodeOnEdge(int spnt, int sroom, int epnt, int eroom);
78 void EBNode_RemoveNode(int roomnum, int pnt);
79 void EBNode_ClearLevel();
80 bool EBNode_VerifyGraph();
81 void EBNode_AutoEdgeNode(int spnt, int sroom);
82
83 #endif