]> icculus.org git repositories - btb/d2x.git/blob - main/editor/medwall.h
load player files regardless of byte order of sig
[btb/d2x.git] / main / editor / medwall.h
1 /*
2 THE COMPUTER CODE CONTAINED HEREIN IS THE SOLE PROPERTY OF PARALLAX
3 SOFTWARE CORPORATION ("PARALLAX").  PARALLAX, IN DISTRIBUTING THE CODE TO
4 END-USERS, AND SUBJECT TO ALL OF THE TERMS AND CONDITIONS HEREIN, GRANTS A
5 ROYALTY-FREE, PERPETUAL LICENSE TO SUCH END-USERS FOR USE BY SUCH END-USERS
6 IN USING, DISPLAYING,  AND CREATING DERIVATIVE WORKS THEREOF, SO LONG AS
7 SUCH USE, DISPLAY OR CREATION IS FOR NON-COMMERCIAL, ROYALTY OR REVENUE
8 FREE PURPOSES.  IN NO EVENT SHALL THE END-USER USE THE COMPUTER CODE
9 CONTAINED HEREIN FOR REVENUE-BEARING PURPOSES.  THE END-USER UNDERSTANDS
10 AND AGREES TO THE TERMS HEREIN AND ACCEPTS THE SAME BY USE OF THIS FILE.  
11 COPYRIGHT 1993-1998 PARALLAX SOFTWARE CORPORATION.  ALL RIGHTS RESERVED.
12 */
13 /*
14  * $Source: /cvs/cvsroot/d2x/main/editor/medwall.h,v $
15  * $Revision: 1.1 $
16  * $Author: bradleyb $
17  * $Date: 2001-10-25 02:27:17 $
18  * 
19  * Created from version 1.6 of main\wall.h
20  * 
21  * $Log: not supported by cvs2svn $
22  * Revision 1.1.1.1  1999/06/14 22:02:40  donut
23  * Import of d1x 1.37 source.
24  *
25  * Revision 2.0  1995/02/27  11:35:10  john
26  * Version 2.0! No anonymous unions, Watcom 10.0, with no need
27  * for bitmaps.tbl.
28  * 
29  * Revision 1.9  1994/09/28  17:31:51  mike
30  * Prototype copy_group_walls().
31  * 
32  * Revision 1.8  1994/08/05  21:18:16  matt
33  * Allow two doors to be linked together
34  * 
35  * Revision 1.7  1994/06/20  22:30:10  yuan
36  * Fixed crazy runaway trigger bug that Adam found
37  * 
38  * Revision 1.6  1994/05/30  20:22:58  yuan
39  * New triggers.
40  * 
41  * Revision 1.5  1994/05/25  18:08:37  yuan
42  * Revamping walls and triggers interface.
43  * Wall interface complete, but triggers are still in progress.
44  * 
45  * Revision 1.4  1994/05/18  18:22:04  yuan
46  * Fixed delete segment and walls bug.
47  * 
48  * Revision 1.3  1994/03/17  18:08:41  yuan
49  * New wall stuff... Cut out switches....
50  * 
51  * Revision 1.2  1994/03/15  16:34:10  yuan
52  * Fixed bm loader (might have some changes in walls and switches)
53  * 
54  * Revision 1.1  1994/02/10  17:52:01  matt
55  * Initial revision
56  * 
57  * 
58  * 
59  */
60
61 #ifndef _MEDWALL_H
62 #define _MEDWALL_H
63
64 #include "wall.h"
65 #include "inferno.h"
66 #include "segment.h"
67
68 extern int wall_add_removable(); 
69
70 // Restores all the walls to original status
71 extern int wall_restore_all();
72
73 // Reset a wall.
74 extern void wall_reset(segment *seg, short side);
75
76 // Adds a removable wall (medwall.c)
77 extern int wall_add_removable();
78
79 // Adds a door (medwall.c)
80 extern int wall_add_door();
81
82 // Adds an illusory wall (medwall.c)
83 extern int wall_add_illusion();
84
85 // Removes a removable wall (medwall.c) 
86 extern int wall_remove_blastable(); 
87
88 // Adds a wall. (visually)
89 extern int wall_add_to_curside();
90 extern int wall_add_to_markedside(byte type);
91  
92 // Removes a wall. (visually)
93 extern int wall_remove();
94
95 // Removes a specific side.
96 int wall_remove_side(segment *seg, short side);
97
98 extern int bind_wall_to_control_center();
99
100 extern void close_wall_window();
101
102 extern void do_wall_window();
103
104 extern int wall_link_doors();
105 extern int wall_unlink_door();
106 extern void copy_group_walls(int old_group, int new_group);
107
108 #endif
109