| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
|
| 22 |
|
| 23 |
|
| 24 |
|
| 25 |
|
| 26 |
|
| 27 |
|
| 28 |
|
| 29 |
|
| 30 |
|
| 31 |
|
| 32 |
|
| 33 |
|
| 34 |
|
| 35 |
|
| 36 |
|
| 37 |
|
| 38 |
|
| 39 |
|
| 40 |
|
| 41 |
|
| 42 |
|
| 43 |
|
| 44 |
|
| 45 |
|
| 46 |
|
| 47 |
|
| 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 |
|
| 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 |