Mercurial > hg > forks > yadex
annotate src/yadex.h @ 108:c91965fc33b6
Cosmetics.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Mon, 06 Oct 2014 12:46:32 +0300 |
parents | 002bc70a3982 |
children | f05330267c66 |
rev | line source |
---|---|
0 | 1 /* |
33
a68786b9c74b
Oops, used indent with tabs enabled. Remove tabs.
Matti Hamalainen <ccr@tnsp.org>
parents:
25
diff
changeset
|
2 * yadex.h |
a68786b9c74b
Oops, used indent with tabs enabled. Remove tabs.
Matti Hamalainen <ccr@tnsp.org>
parents:
25
diff
changeset
|
3 * The header that all modules include. |
a68786b9c74b
Oops, used indent with tabs enabled. Remove tabs.
Matti Hamalainen <ccr@tnsp.org>
parents:
25
diff
changeset
|
4 * BW & RQ sometime in 1993 or 1994. |
0 | 5 */ |
6 | |
7 | |
8 /* | |
9 This file is part of Yadex. | |
10 | |
11 Yadex incorporates code from DEU 5.21 that was put in the public domain in | |
12 1994 by Raphaël Quinet and Brendon Wyber. | |
13 | |
14 The rest of Yadex is Copyright © 1997-2003 André Majorel and others. | |
15 | |
16 This program is free software; you can redistribute it and/or modify it under | |
17 the terms of the GNU General Public License as published by the Free Software | |
18 Foundation; either version 2 of the License, or (at your option) any later | |
19 version. | |
20 | |
21 This program is distributed in the hope that it will be useful, but WITHOUT | |
22 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS | |
23 FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. | |
24 | |
25 You should have received a copy of the GNU General Public License along with | |
26 this program; if not, write to the Free Software Foundation, Inc., 59 Temple | |
27 Place, Suite 330, Boston, MA 02111-1307, USA. | |
28 */ | |
29 | |
30 | |
33
a68786b9c74b
Oops, used indent with tabs enabled. Remove tabs.
Matti Hamalainen <ccr@tnsp.org>
parents:
25
diff
changeset
|
31 #ifndef YH_YADEX /* DO NOT INSERT ANYTHING BEFORE THIS LINE */ |
0 | 32 #define YH_YADEX |
33 | |
34 | |
35 #include "config.h" | |
36 | |
37 #if ! (defined Y_DOS ^ defined Y_UNIX) | |
38 #error "You must #define either Y_DOS or Y_UNIX" | |
39 #endif | |
40 | |
41 | |
42 /* | |
33
a68786b9c74b
Oops, used indent with tabs enabled. Remove tabs.
Matti Hamalainen <ccr@tnsp.org>
parents:
25
diff
changeset
|
43 * Standard headers |
0 | 44 */ |
45 #include <stddef.h> | |
46 #include <stdio.h> | |
47 #include <stdlib.h> | |
48 #include <string.h> | |
49 #include <stdarg.h> | |
50 #include <ctype.h> | |
51 #include <limits.h> | |
52 #include <errno.h> | |
22
f1fb248bf997
Get rid of the swapping and legacy far etc. memory handling code.
Matti Hamalainen <ccr@tnsp.org>
parents:
20
diff
changeset
|
53 #ifdef Y_UNIX |
0 | 54 #include <unistd.h> |
55 #endif | |
56 | |
57 /* | |
33
a68786b9c74b
Oops, used indent with tabs enabled. Remove tabs.
Matti Hamalainen <ccr@tnsp.org>
parents:
25
diff
changeset
|
58 * Additional libraries |
0 | 59 */ |
60 #include <atclib.h> | |
33
a68786b9c74b
Oops, used indent with tabs enabled. Remove tabs.
Matti Hamalainen <ccr@tnsp.org>
parents:
25
diff
changeset
|
61 #include "bitvec.h" /* bv_set, bv_clear, bv_toggle */ |
0 | 62 #include "yerror.h" |
33
a68786b9c74b
Oops, used indent with tabs enabled. Remove tabs.
Matti Hamalainen <ccr@tnsp.org>
parents:
25
diff
changeset
|
63 #include "aym.h" /* Needs yerror.h */ |
0 | 64 #include "windim.h" |
65 #include "ymemory.h" | |
66 | |
80
2f1ecc1c5f72
Huge cleanup -- move some global variables into a struct.
Matti Hamalainen <ccr@tnsp.org>
parents:
79
diff
changeset
|
67 #include "serialnum.h" |
0 | 68 |
69 /* | |
33
a68786b9c74b
Oops, used indent with tabs enabled. Remove tabs.
Matti Hamalainen <ccr@tnsp.org>
parents:
25
diff
changeset
|
70 * Platform-independant types and formats. |
0 | 71 */ |
25
8eaf72e2041b
Reindent the source using GNU indent and "indent -i4 -bli0 -npcs -nprs -npsl".
Matti Hamalainen <ccr@tnsp.org>
parents:
22
diff
changeset
|
72 typedef unsigned char u8; |
8eaf72e2041b
Reindent the source using GNU indent and "indent -i4 -bli0 -npcs -nprs -npsl".
Matti Hamalainen <ccr@tnsp.org>
parents:
22
diff
changeset
|
73 typedef signed char i8; |
0 | 74 |
75 typedef unsigned short u16; | |
76 #define F_U16_D "hu" | |
77 #define F_U16_H "hX" | |
78 | |
25
8eaf72e2041b
Reindent the source using GNU indent and "indent -i4 -bli0 -npcs -nprs -npsl".
Matti Hamalainen <ccr@tnsp.org>
parents:
22
diff
changeset
|
79 typedef signed short i16; |
0 | 80 #define F_I16_D "hd" |
81 #define F_I16_H "hX" | |
82 | |
25
8eaf72e2041b
Reindent the source using GNU indent and "indent -i4 -bli0 -npcs -nprs -npsl".
Matti Hamalainen <ccr@tnsp.org>
parents:
22
diff
changeset
|
83 typedef unsigned long u32; |
0 | 84 #define F_U32_D "lu" |
85 #define F_U32_H "lX" | |
86 | |
25
8eaf72e2041b
Reindent the source using GNU indent and "indent -i4 -bli0 -npcs -nprs -npsl".
Matti Hamalainen <ccr@tnsp.org>
parents:
22
diff
changeset
|
87 typedef signed long i32; |
0 | 88 #define F_I32_D "ld" |
89 #define F_I32_H "lX" | |
90 | |
91 | |
92 /* | |
33
a68786b9c74b
Oops, used indent with tabs enabled. Remove tabs.
Matti Hamalainen <ccr@tnsp.org>
parents:
25
diff
changeset
|
93 * Platform definitions |
0 | 94 */ |
95 #if defined Y_DOS | |
33
a68786b9c74b
Oops, used indent with tabs enabled. Remove tabs.
Matti Hamalainen <ccr@tnsp.org>
parents:
25
diff
changeset
|
96 const int Y_PATH = 64; // Maximum length of a path |
a68786b9c74b
Oops, used indent with tabs enabled. Remove tabs.
Matti Hamalainen <ccr@tnsp.org>
parents:
25
diff
changeset
|
97 const int Y_FILE_NAME = 255; // Maximum length of file name, including path |
0 | 98 #elif defined Y_UNIX |
25
8eaf72e2041b
Reindent the source using GNU indent and "indent -i4 -bli0 -npcs -nprs -npsl".
Matti Hamalainen <ccr@tnsp.org>
parents:
22
diff
changeset
|
99 const int Y_PATH = 255; |
0 | 100 const int Y_FILE_NAME = 255; |
101 #endif | |
102 typedef char y_file_name_t[Y_FILE_NAME + 1]; | |
103 | |
104 | |
105 /* | |
33
a68786b9c74b
Oops, used indent with tabs enabled. Remove tabs.
Matti Hamalainen <ccr@tnsp.org>
parents:
25
diff
changeset
|
106 * Constants of the universe. |
0 | 107 */ |
108 const double HALFPI = 1.5707963; | |
25
8eaf72e2041b
Reindent the source using GNU indent and "indent -i4 -bli0 -npcs -nprs -npsl".
Matti Hamalainen <ccr@tnsp.org>
parents:
22
diff
changeset
|
109 const double ONEPI = 3.1415926; |
8eaf72e2041b
Reindent the source using GNU indent and "indent -i4 -bli0 -npcs -nprs -npsl".
Matti Hamalainen <ccr@tnsp.org>
parents:
22
diff
changeset
|
110 const double TWOPI = 6.2831852; |
0 | 111 const double ANSWER = 42; |
112 | |
113 | |
114 /* | |
33
a68786b9c74b
Oops, used indent with tabs enabled. Remove tabs.
Matti Hamalainen <ccr@tnsp.org>
parents:
25
diff
changeset
|
115 * Syntactic sugar |
0 | 116 */ |
117 #define y_min(a,b) ((a) < (b) ? (a) : (b)) | |
118 #define y_max(a,b) ((a) > (b) ? (a) : (b)) | |
119 | |
120 | |
121 /* | |
33
a68786b9c74b
Oops, used indent with tabs enabled. Remove tabs.
Matti Hamalainen <ccr@tnsp.org>
parents:
25
diff
changeset
|
122 * To avoid including certain headers. |
0 | 123 */ |
124 class rgb_c; | |
125 | |
126 | |
127 #include "wstructs.h" | |
128 | |
129 | |
130 /* | |
33
a68786b9c74b
Oops, used indent with tabs enabled. Remove tabs.
Matti Hamalainen <ccr@tnsp.org>
parents:
25
diff
changeset
|
131 * Doom definitions |
a68786b9c74b
Oops, used indent with tabs enabled. Remove tabs.
Matti Hamalainen <ccr@tnsp.org>
parents:
25
diff
changeset
|
132 * Things about the Doom engine |
a68786b9c74b
Oops, used indent with tabs enabled. Remove tabs.
Matti Hamalainen <ccr@tnsp.org>
parents:
25
diff
changeset
|
133 * FIXME should move as much of this as possible to the ygd file... |
a68786b9c74b
Oops, used indent with tabs enabled. Remove tabs.
Matti Hamalainen <ccr@tnsp.org>
parents:
25
diff
changeset
|
134 * FIXME Hexen has a different value for MIN_DEATHMATH_STARTS |
0 | 135 */ |
25
8eaf72e2041b
Reindent the source using GNU indent and "indent -i4 -bli0 -npcs -nprs -npsl".
Matti Hamalainen <ccr@tnsp.org>
parents:
22
diff
changeset
|
136 const int DOOM_PLAYER_HEIGHT = 56; |
8eaf72e2041b
Reindent the source using GNU indent and "indent -i4 -bli0 -npcs -nprs -npsl".
Matti Hamalainen <ccr@tnsp.org>
parents:
22
diff
changeset
|
137 const int DOOM_FLAT_WIDTH = 64; |
8eaf72e2041b
Reindent the source using GNU indent and "indent -i4 -bli0 -npcs -nprs -npsl".
Matti Hamalainen <ccr@tnsp.org>
parents:
22
diff
changeset
|
138 const int DOOM_FLAT_HEIGHT = 64; |
0 | 139 const size_t DOOM_MIN_DEATHMATCH_STARTS = 4; |
140 const size_t DOOM_MAX_DEATHMATCH_STARTS = 10; | |
25
8eaf72e2041b
Reindent the source using GNU indent and "indent -i4 -bli0 -npcs -nprs -npsl".
Matti Hamalainen <ccr@tnsp.org>
parents:
22
diff
changeset
|
141 const size_t DOOM_COLOURS = 256; |
108 | 142 typedef enum { YGPF_NORMAL, YGPF_ALPHA, YGPF_PR } ygpf_t; |
143 typedef enum { YGTF_NORMAL, YGTF_NAMELESS, YGTF_STRIFE11 } ygtf_t; | |
144 typedef enum { YGTL_NORMAL, YGTL_TEXTURES, YGTL_NONE } ygtl_t; | |
0 | 145 |
146 | |
147 /* | |
33
a68786b9c74b
Oops, used indent with tabs enabled. Remove tabs.
Matti Hamalainen <ccr@tnsp.org>
parents:
25
diff
changeset
|
148 * Directory |
0 | 149 */ |
150 /* The wad file pointer structure is used for holding the information | |
151 on the wad files in a linked list. | |
152 The first wad file is the main wad file. The rest are patches. */ | |
153 class Wad_file; | |
154 | |
155 /* The master directory structure is used to build a complete directory | |
156 of all the data blocks from all the various wad files. */ | |
22
f1fb248bf997
Get rid of the swapping and legacy far etc. memory handling code.
Matti Hamalainen <ccr@tnsp.org>
parents:
20
diff
changeset
|
157 typedef struct MasterDirectory *MDirPtr; |
0 | 158 struct MasterDirectory |
25
8eaf72e2041b
Reindent the source using GNU indent and "indent -i4 -bli0 -npcs -nprs -npsl".
Matti Hamalainen <ccr@tnsp.org>
parents:
22
diff
changeset
|
159 { |
33
a68786b9c74b
Oops, used indent with tabs enabled. Remove tabs.
Matti Hamalainen <ccr@tnsp.org>
parents:
25
diff
changeset
|
160 MDirPtr next; // Next in list |
a68786b9c74b
Oops, used indent with tabs enabled. Remove tabs.
Matti Hamalainen <ccr@tnsp.org>
parents:
25
diff
changeset
|
161 const Wad_file *wadfile; // File of origin |
a68786b9c74b
Oops, used indent with tabs enabled. Remove tabs.
Matti Hamalainen <ccr@tnsp.org>
parents:
25
diff
changeset
|
162 struct Directory dir; // Directory data |
25
8eaf72e2041b
Reindent the source using GNU indent and "indent -i4 -bli0 -npcs -nprs -npsl".
Matti Hamalainen <ccr@tnsp.org>
parents:
22
diff
changeset
|
163 }; |
0 | 164 |
165 /* Lump location : enough information to load a lump without | |
166 having to do a directory lookup. */ | |
167 struct Lump_loc | |
25
8eaf72e2041b
Reindent the source using GNU indent and "indent -i4 -bli0 -npcs -nprs -npsl".
Matti Hamalainen <ccr@tnsp.org>
parents:
22
diff
changeset
|
168 { |
8eaf72e2041b
Reindent the source using GNU indent and "indent -i4 -bli0 -npcs -nprs -npsl".
Matti Hamalainen <ccr@tnsp.org>
parents:
22
diff
changeset
|
169 Lump_loc() |
8eaf72e2041b
Reindent the source using GNU indent and "indent -i4 -bli0 -npcs -nprs -npsl".
Matti Hamalainen <ccr@tnsp.org>
parents:
22
diff
changeset
|
170 { |
33
a68786b9c74b
Oops, used indent with tabs enabled. Remove tabs.
Matti Hamalainen <ccr@tnsp.org>
parents:
25
diff
changeset
|
171 wad = 0; |
25
8eaf72e2041b
Reindent the source using GNU indent and "indent -i4 -bli0 -npcs -nprs -npsl".
Matti Hamalainen <ccr@tnsp.org>
parents:
22
diff
changeset
|
172 } |
8eaf72e2041b
Reindent the source using GNU indent and "indent -i4 -bli0 -npcs -nprs -npsl".
Matti Hamalainen <ccr@tnsp.org>
parents:
22
diff
changeset
|
173 Lump_loc(const Wad_file * w, i32 o, i32 l) |
8eaf72e2041b
Reindent the source using GNU indent and "indent -i4 -bli0 -npcs -nprs -npsl".
Matti Hamalainen <ccr@tnsp.org>
parents:
22
diff
changeset
|
174 { |
33
a68786b9c74b
Oops, used indent with tabs enabled. Remove tabs.
Matti Hamalainen <ccr@tnsp.org>
parents:
25
diff
changeset
|
175 wad = w; |
a68786b9c74b
Oops, used indent with tabs enabled. Remove tabs.
Matti Hamalainen <ccr@tnsp.org>
parents:
25
diff
changeset
|
176 ofs = o; |
a68786b9c74b
Oops, used indent with tabs enabled. Remove tabs.
Matti Hamalainen <ccr@tnsp.org>
parents:
25
diff
changeset
|
177 len = l; |
25
8eaf72e2041b
Reindent the source using GNU indent and "indent -i4 -bli0 -npcs -nprs -npsl".
Matti Hamalainen <ccr@tnsp.org>
parents:
22
diff
changeset
|
178 } |
8eaf72e2041b
Reindent the source using GNU indent and "indent -i4 -bli0 -npcs -nprs -npsl".
Matti Hamalainen <ccr@tnsp.org>
parents:
22
diff
changeset
|
179 bool operator ==(const Lump_loc & other) const |
8eaf72e2041b
Reindent the source using GNU indent and "indent -i4 -bli0 -npcs -nprs -npsl".
Matti Hamalainen <ccr@tnsp.org>
parents:
22
diff
changeset
|
180 { |
33
a68786b9c74b
Oops, used indent with tabs enabled. Remove tabs.
Matti Hamalainen <ccr@tnsp.org>
parents:
25
diff
changeset
|
181 return wad == other.wad && ofs == other.ofs && len == other.len; |
25
8eaf72e2041b
Reindent the source using GNU indent and "indent -i4 -bli0 -npcs -nprs -npsl".
Matti Hamalainen <ccr@tnsp.org>
parents:
22
diff
changeset
|
182 } |
8eaf72e2041b
Reindent the source using GNU indent and "indent -i4 -bli0 -npcs -nprs -npsl".
Matti Hamalainen <ccr@tnsp.org>
parents:
22
diff
changeset
|
183 const Wad_file *wad; |
8eaf72e2041b
Reindent the source using GNU indent and "indent -i4 -bli0 -npcs -nprs -npsl".
Matti Hamalainen <ccr@tnsp.org>
parents:
22
diff
changeset
|
184 i32 ofs; |
8eaf72e2041b
Reindent the source using GNU indent and "indent -i4 -bli0 -npcs -nprs -npsl".
Matti Hamalainen <ccr@tnsp.org>
parents:
22
diff
changeset
|
185 i32 len; |
8eaf72e2041b
Reindent the source using GNU indent and "indent -i4 -bli0 -npcs -nprs -npsl".
Matti Hamalainen <ccr@tnsp.org>
parents:
22
diff
changeset
|
186 }; |
8eaf72e2041b
Reindent the source using GNU indent and "indent -i4 -bli0 -npcs -nprs -npsl".
Matti Hamalainen <ccr@tnsp.org>
parents:
22
diff
changeset
|
187 |
0 | 188 #include "wstructs.h" |
189 | |
190 | |
191 /* | |
33
a68786b9c74b
Oops, used indent with tabs enabled. Remove tabs.
Matti Hamalainen <ccr@tnsp.org>
parents:
25
diff
changeset
|
192 * The colour system. |
a68786b9c74b
Oops, used indent with tabs enabled. Remove tabs.
Matti Hamalainen <ccr@tnsp.org>
parents:
25
diff
changeset
|
193 * FIXME: only the logical side of the colour system |
a68786b9c74b
Oops, used indent with tabs enabled. Remove tabs.
Matti Hamalainen <ccr@tnsp.org>
parents:
25
diff
changeset
|
194 * should be declared here. The physical side should |
a68786b9c74b
Oops, used indent with tabs enabled. Remove tabs.
Matti Hamalainen <ccr@tnsp.org>
parents:
25
diff
changeset
|
195 * be moved to a less used header as very few modules |
a68786b9c74b
Oops, used indent with tabs enabled. Remove tabs.
Matti Hamalainen <ccr@tnsp.org>
parents:
25
diff
changeset
|
196 * need to know about it. |
0 | 197 */ |
198 /* acolour_t -- an application colour number. | |
199 Several different application colours may refer to the same | |
200 physical colour. */ | |
201 typedef u8 acolour_t; | |
33
a68786b9c74b
Oops, used indent with tabs enabled. Remove tabs.
Matti Hamalainen <ccr@tnsp.org>
parents:
25
diff
changeset
|
202 #define ACOLOUR_NONE 0xff // The out-of-band value |
0 | 203 |
204 /* The 16 VGA colours that DEU used to use. | |
205 FIXME: all references to these in the code should be removed. */ | |
25
8eaf72e2041b
Reindent the source using GNU indent and "indent -i4 -bli0 -npcs -nprs -npsl".
Matti Hamalainen <ccr@tnsp.org>
parents:
22
diff
changeset
|
206 const acolour_t BLACK = 0; |
8eaf72e2041b
Reindent the source using GNU indent and "indent -i4 -bli0 -npcs -nprs -npsl".
Matti Hamalainen <ccr@tnsp.org>
parents:
22
diff
changeset
|
207 const acolour_t BLUE = 1; |
8eaf72e2041b
Reindent the source using GNU indent and "indent -i4 -bli0 -npcs -nprs -npsl".
Matti Hamalainen <ccr@tnsp.org>
parents:
22
diff
changeset
|
208 const acolour_t GREEN = 2; |
8eaf72e2041b
Reindent the source using GNU indent and "indent -i4 -bli0 -npcs -nprs -npsl".
Matti Hamalainen <ccr@tnsp.org>
parents:
22
diff
changeset
|
209 const acolour_t CYAN = 3; |
8eaf72e2041b
Reindent the source using GNU indent and "indent -i4 -bli0 -npcs -nprs -npsl".
Matti Hamalainen <ccr@tnsp.org>
parents:
22
diff
changeset
|
210 const acolour_t RED = 4; |
8eaf72e2041b
Reindent the source using GNU indent and "indent -i4 -bli0 -npcs -nprs -npsl".
Matti Hamalainen <ccr@tnsp.org>
parents:
22
diff
changeset
|
211 const acolour_t MAGENTA = 5; |
8eaf72e2041b
Reindent the source using GNU indent and "indent -i4 -bli0 -npcs -nprs -npsl".
Matti Hamalainen <ccr@tnsp.org>
parents:
22
diff
changeset
|
212 const acolour_t BROWN = 6; |
8eaf72e2041b
Reindent the source using GNU indent and "indent -i4 -bli0 -npcs -nprs -npsl".
Matti Hamalainen <ccr@tnsp.org>
parents:
22
diff
changeset
|
213 const acolour_t LIGHTGREY = 7; |
8eaf72e2041b
Reindent the source using GNU indent and "indent -i4 -bli0 -npcs -nprs -npsl".
Matti Hamalainen <ccr@tnsp.org>
parents:
22
diff
changeset
|
214 const acolour_t DARKGREY = 8; |
8eaf72e2041b
Reindent the source using GNU indent and "indent -i4 -bli0 -npcs -nprs -npsl".
Matti Hamalainen <ccr@tnsp.org>
parents:
22
diff
changeset
|
215 const acolour_t LIGHTBLUE = 9; |
8eaf72e2041b
Reindent the source using GNU indent and "indent -i4 -bli0 -npcs -nprs -npsl".
Matti Hamalainen <ccr@tnsp.org>
parents:
22
diff
changeset
|
216 const acolour_t LIGHTGREEN = 10; |
8eaf72e2041b
Reindent the source using GNU indent and "indent -i4 -bli0 -npcs -nprs -npsl".
Matti Hamalainen <ccr@tnsp.org>
parents:
22
diff
changeset
|
217 const acolour_t LIGHTCYAN = 11; |
8eaf72e2041b
Reindent the source using GNU indent and "indent -i4 -bli0 -npcs -nprs -npsl".
Matti Hamalainen <ccr@tnsp.org>
parents:
22
diff
changeset
|
218 const acolour_t LIGHTRED = 12; |
8eaf72e2041b
Reindent the source using GNU indent and "indent -i4 -bli0 -npcs -nprs -npsl".
Matti Hamalainen <ccr@tnsp.org>
parents:
22
diff
changeset
|
219 const acolour_t LIGHTMAGENTA = 13; |
8eaf72e2041b
Reindent the source using GNU indent and "indent -i4 -bli0 -npcs -nprs -npsl".
Matti Hamalainen <ccr@tnsp.org>
parents:
22
diff
changeset
|
220 const acolour_t YELLOW = 14; |
8eaf72e2041b
Reindent the source using GNU indent and "indent -i4 -bli0 -npcs -nprs -npsl".
Matti Hamalainen <ccr@tnsp.org>
parents:
22
diff
changeset
|
221 const acolour_t WHITE = 15; |
20
07c68836db71
Remove DOS mouse code and most of the BGI crap.
Matti Hamalainen <ccr@tnsp.org>
parents:
4
diff
changeset
|
222 |
0 | 223 |
224 // True logical colours | |
25
8eaf72e2041b
Reindent the source using GNU indent and "indent -i4 -bli0 -npcs -nprs -npsl".
Matti Hamalainen <ccr@tnsp.org>
parents:
22
diff
changeset
|
225 const acolour_t WINBG = 16; |
8eaf72e2041b
Reindent the source using GNU indent and "indent -i4 -bli0 -npcs -nprs -npsl".
Matti Hamalainen <ccr@tnsp.org>
parents:
22
diff
changeset
|
226 const acolour_t WINBG_LIGHT = 17; |
8eaf72e2041b
Reindent the source using GNU indent and "indent -i4 -bli0 -npcs -nprs -npsl".
Matti Hamalainen <ccr@tnsp.org>
parents:
22
diff
changeset
|
227 const acolour_t WINBG_DARK = 18; |
8eaf72e2041b
Reindent the source using GNU indent and "indent -i4 -bli0 -npcs -nprs -npsl".
Matti Hamalainen <ccr@tnsp.org>
parents:
22
diff
changeset
|
228 const acolour_t WINBG_HL = 19; |
0 | 229 |
25
8eaf72e2041b
Reindent the source using GNU indent and "indent -i4 -bli0 -npcs -nprs -npsl".
Matti Hamalainen <ccr@tnsp.org>
parents:
22
diff
changeset
|
230 const acolour_t WINFG = 20; |
8eaf72e2041b
Reindent the source using GNU indent and "indent -i4 -bli0 -npcs -nprs -npsl".
Matti Hamalainen <ccr@tnsp.org>
parents:
22
diff
changeset
|
231 const acolour_t WINFG_HL = 21; |
8eaf72e2041b
Reindent the source using GNU indent and "indent -i4 -bli0 -npcs -nprs -npsl".
Matti Hamalainen <ccr@tnsp.org>
parents:
22
diff
changeset
|
232 const acolour_t WINFG_DIM = 22; |
8eaf72e2041b
Reindent the source using GNU indent and "indent -i4 -bli0 -npcs -nprs -npsl".
Matti Hamalainen <ccr@tnsp.org>
parents:
22
diff
changeset
|
233 const acolour_t WINFG_DIM_HL = 23; |
0 | 234 |
25
8eaf72e2041b
Reindent the source using GNU indent and "indent -i4 -bli0 -npcs -nprs -npsl".
Matti Hamalainen <ccr@tnsp.org>
parents:
22
diff
changeset
|
235 const acolour_t WINLABEL = 24; |
8eaf72e2041b
Reindent the source using GNU indent and "indent -i4 -bli0 -npcs -nprs -npsl".
Matti Hamalainen <ccr@tnsp.org>
parents:
22
diff
changeset
|
236 const acolour_t WINLABEL_HL = 25; |
8eaf72e2041b
Reindent the source using GNU indent and "indent -i4 -bli0 -npcs -nprs -npsl".
Matti Hamalainen <ccr@tnsp.org>
parents:
22
diff
changeset
|
237 const acolour_t WINLABEL_DIM = 26; |
0 | 238 const acolour_t WINLABEL_DIM_HL = 27; |
239 | |
25
8eaf72e2041b
Reindent the source using GNU indent and "indent -i4 -bli0 -npcs -nprs -npsl".
Matti Hamalainen <ccr@tnsp.org>
parents:
22
diff
changeset
|
240 const acolour_t GRID1 = 28; |
8eaf72e2041b
Reindent the source using GNU indent and "indent -i4 -bli0 -npcs -nprs -npsl".
Matti Hamalainen <ccr@tnsp.org>
parents:
22
diff
changeset
|
241 const acolour_t GRID2H = 29; |
8eaf72e2041b
Reindent the source using GNU indent and "indent -i4 -bli0 -npcs -nprs -npsl".
Matti Hamalainen <ccr@tnsp.org>
parents:
22
diff
changeset
|
242 const acolour_t GRID2V = 30; |
8eaf72e2041b
Reindent the source using GNU indent and "indent -i4 -bli0 -npcs -nprs -npsl".
Matti Hamalainen <ccr@tnsp.org>
parents:
22
diff
changeset
|
243 const acolour_t GRID3H = 31; |
8eaf72e2041b
Reindent the source using GNU indent and "indent -i4 -bli0 -npcs -nprs -npsl".
Matti Hamalainen <ccr@tnsp.org>
parents:
22
diff
changeset
|
244 const acolour_t GRID3V = 32; |
8eaf72e2041b
Reindent the source using GNU indent and "indent -i4 -bli0 -npcs -nprs -npsl".
Matti Hamalainen <ccr@tnsp.org>
parents:
22
diff
changeset
|
245 const acolour_t GRID4H = 33; |
8eaf72e2041b
Reindent the source using GNU indent and "indent -i4 -bli0 -npcs -nprs -npsl".
Matti Hamalainen <ccr@tnsp.org>
parents:
22
diff
changeset
|
246 const acolour_t GRID4V = 34; |
8eaf72e2041b
Reindent the source using GNU indent and "indent -i4 -bli0 -npcs -nprs -npsl".
Matti Hamalainen <ccr@tnsp.org>
parents:
22
diff
changeset
|
247 const acolour_t LINEDEF_NO = 35; |
8eaf72e2041b
Reindent the source using GNU indent and "indent -i4 -bli0 -npcs -nprs -npsl".
Matti Hamalainen <ccr@tnsp.org>
parents:
22
diff
changeset
|
248 const acolour_t SECTOR_NO = 36; |
8eaf72e2041b
Reindent the source using GNU indent and "indent -i4 -bli0 -npcs -nprs -npsl".
Matti Hamalainen <ccr@tnsp.org>
parents:
22
diff
changeset
|
249 const acolour_t THING_NO = 37; |
8eaf72e2041b
Reindent the source using GNU indent and "indent -i4 -bli0 -npcs -nprs -npsl".
Matti Hamalainen <ccr@tnsp.org>
parents:
22
diff
changeset
|
250 const acolour_t VERTEX_NO = 38; |
8eaf72e2041b
Reindent the source using GNU indent and "indent -i4 -bli0 -npcs -nprs -npsl".
Matti Hamalainen <ccr@tnsp.org>
parents:
22
diff
changeset
|
251 const acolour_t CLR_ERROR = 39; |
33
a68786b9c74b
Oops, used indent with tabs enabled. Remove tabs.
Matti Hamalainen <ccr@tnsp.org>
parents:
25
diff
changeset
|
252 const acolour_t THING_REM = 40; // Things when not in things mode |
0 | 253 |
25
8eaf72e2041b
Reindent the source using GNU indent and "indent -i4 -bli0 -npcs -nprs -npsl".
Matti Hamalainen <ccr@tnsp.org>
parents:
22
diff
changeset
|
254 const acolour_t SECTOR_TAG = 41; |
8eaf72e2041b
Reindent the source using GNU indent and "indent -i4 -bli0 -npcs -nprs -npsl".
Matti Hamalainen <ccr@tnsp.org>
parents:
22
diff
changeset
|
255 const acolour_t SECTOR_TAGTYPE = 42; |
8eaf72e2041b
Reindent the source using GNU indent and "indent -i4 -bli0 -npcs -nprs -npsl".
Matti Hamalainen <ccr@tnsp.org>
parents:
22
diff
changeset
|
256 const acolour_t SECTOR_TYPE = 43; |
0 | 257 |
25
8eaf72e2041b
Reindent the source using GNU indent and "indent -i4 -bli0 -npcs -nprs -npsl".
Matti Hamalainen <ccr@tnsp.org>
parents:
22
diff
changeset
|
258 const acolour_t WINTITLE = 44; |
0 | 259 |
25
8eaf72e2041b
Reindent the source using GNU indent and "indent -i4 -bli0 -npcs -nprs -npsl".
Matti Hamalainen <ccr@tnsp.org>
parents:
22
diff
changeset
|
260 const acolour_t NCOLOURS = 45; |
0 | 261 |
262 | |
263 /* | |
33
a68786b9c74b
Oops, used indent with tabs enabled. Remove tabs.
Matti Hamalainen <ccr@tnsp.org>
parents:
25
diff
changeset
|
264 * More stuff |
0 | 265 */ |
266 // The actual definition is in selectn.h | |
267 typedef struct SelectionList *SelPtr; | |
268 // Operations on the selection : | |
269 typedef enum | |
270 { | |
33
a68786b9c74b
Oops, used indent with tabs enabled. Remove tabs.
Matti Hamalainen <ccr@tnsp.org>
parents:
25
diff
changeset
|
271 YS_ADD = BV_SET, // Add to selection |
a68786b9c74b
Oops, used indent with tabs enabled. Remove tabs.
Matti Hamalainen <ccr@tnsp.org>
parents:
25
diff
changeset
|
272 YS_REMOVE = BV_CLEAR, // Remove from selection |
a68786b9c74b
Oops, used indent with tabs enabled. Remove tabs.
Matti Hamalainen <ccr@tnsp.org>
parents:
25
diff
changeset
|
273 YS_TOGGLE = BV_TOGGLE // If not in selection, add; else, remove |
0 | 274 } sel_op_t; |
275 | |
276 // Confirmation options are stored internally this way : | |
277 typedef enum | |
25
8eaf72e2041b
Reindent the source using GNU indent and "indent -i4 -bli0 -npcs -nprs -npsl".
Matti Hamalainen <ccr@tnsp.org>
parents:
22
diff
changeset
|
278 { |
8eaf72e2041b
Reindent the source using GNU indent and "indent -i4 -bli0 -npcs -nprs -npsl".
Matti Hamalainen <ccr@tnsp.org>
parents:
22
diff
changeset
|
279 YC_YES = 'y', |
8eaf72e2041b
Reindent the source using GNU indent and "indent -i4 -bli0 -npcs -nprs -npsl".
Matti Hamalainen <ccr@tnsp.org>
parents:
22
diff
changeset
|
280 YC_NO = 'n', |
8eaf72e2041b
Reindent the source using GNU indent and "indent -i4 -bli0 -npcs -nprs -npsl".
Matti Hamalainen <ccr@tnsp.org>
parents:
22
diff
changeset
|
281 YC_ASK = 'a', |
8eaf72e2041b
Reindent the source using GNU indent and "indent -i4 -bli0 -npcs -nprs -npsl".
Matti Hamalainen <ccr@tnsp.org>
parents:
22
diff
changeset
|
282 YC_ASK_ONCE = 'o' |
8eaf72e2041b
Reindent the source using GNU indent and "indent -i4 -bli0 -npcs -nprs -npsl".
Matti Hamalainen <ccr@tnsp.org>
parents:
22
diff
changeset
|
283 } confirm_t; |
0 | 284 |
285 // Bit bashing operations | |
33
a68786b9c74b
Oops, used indent with tabs enabled. Remove tabs.
Matti Hamalainen <ccr@tnsp.org>
parents:
25
diff
changeset
|
286 const int YO_AND = 'a'; // Argument = mask |
a68786b9c74b
Oops, used indent with tabs enabled. Remove tabs.
Matti Hamalainen <ccr@tnsp.org>
parents:
25
diff
changeset
|
287 const int YO_CLEAR = 'c'; // Argument = bit# |
a68786b9c74b
Oops, used indent with tabs enabled. Remove tabs.
Matti Hamalainen <ccr@tnsp.org>
parents:
25
diff
changeset
|
288 const int YO_COPY = 'd'; // Argument = source_bit# dest_bit# |
a68786b9c74b
Oops, used indent with tabs enabled. Remove tabs.
Matti Hamalainen <ccr@tnsp.org>
parents:
25
diff
changeset
|
289 const int YO_OR = 'o'; // Argument = mask |
a68786b9c74b
Oops, used indent with tabs enabled. Remove tabs.
Matti Hamalainen <ccr@tnsp.org>
parents:
25
diff
changeset
|
290 const int YO_SET = 's'; // Argument = bit# |
a68786b9c74b
Oops, used indent with tabs enabled. Remove tabs.
Matti Hamalainen <ccr@tnsp.org>
parents:
25
diff
changeset
|
291 const int YO_TOGGLE = 't'; // Argument = bit# |
a68786b9c74b
Oops, used indent with tabs enabled. Remove tabs.
Matti Hamalainen <ccr@tnsp.org>
parents:
25
diff
changeset
|
292 const int YO_XOR = 'x'; // Argument = mask |
0 | 293 |
294 | |
295 // Convert screen/window coordinates to map coordinates | |
80
2f1ecc1c5f72
Huge cleanup -- move some global variables into a struct.
Matti Hamalainen <ccr@tnsp.org>
parents:
79
diff
changeset
|
296 #define MAPX(x) (cfg.OrigX + (int) (((int) (x) - cfg.ScrCenterX) / cfg.Scale)) |
2f1ecc1c5f72
Huge cleanup -- move some global variables into a struct.
Matti Hamalainen <ccr@tnsp.org>
parents:
79
diff
changeset
|
297 #define MAPY(y) (cfg.OrigY + (int) ((cfg.ScrCenterY - (int) (y)) / cfg.Scale)) |
0 | 298 |
299 // Convert map coordinates to screen/window coordinates | |
80
2f1ecc1c5f72
Huge cleanup -- move some global variables into a struct.
Matti Hamalainen <ccr@tnsp.org>
parents:
79
diff
changeset
|
300 #define SCREENX(x) (cfg.ScrCenterX + (int) (((x) - cfg.OrigX) * cfg.Scale)) |
2f1ecc1c5f72
Huge cleanup -- move some global variables into a struct.
Matti Hamalainen <ccr@tnsp.org>
parents:
79
diff
changeset
|
301 #define SCREENY(y) (cfg.ScrCenterY + (int) ((cfg.OrigY - (y)) * cfg.Scale)) |
81 | 302 |
303 // AYM 19980213: InputIntegerValue() uses this to mean that Esc was pressed | |
304 #define IIV_CANCEL INT_MIN | |
305 | |
83
002bc70a3982
More cleanups. Mostly variable renames.
Matti Hamalainen <ccr@tnsp.org>
parents:
81
diff
changeset
|
306 |
002bc70a3982
More cleanups. Mostly variable renames.
Matti Hamalainen <ccr@tnsp.org>
parents:
81
diff
changeset
|
307 /* Supported games |
002bc70a3982
More cleanups. Mostly variable renames.
Matti Hamalainen <ccr@tnsp.org>
parents:
81
diff
changeset
|
308 */ |
80
2f1ecc1c5f72
Huge cleanup -- move some global variables into a struct.
Matti Hamalainen <ccr@tnsp.org>
parents:
79
diff
changeset
|
309 enum { |
2f1ecc1c5f72
Huge cleanup -- move some global variables into a struct.
Matti Hamalainen <ccr@tnsp.org>
parents:
79
diff
changeset
|
310 IWAD_DOOM1 = 0, |
2f1ecc1c5f72
Huge cleanup -- move some global variables into a struct.
Matti Hamalainen <ccr@tnsp.org>
parents:
79
diff
changeset
|
311 IWAD_DOOM2, |
2f1ecc1c5f72
Huge cleanup -- move some global variables into a struct.
Matti Hamalainen <ccr@tnsp.org>
parents:
79
diff
changeset
|
312 IWAD_HERETIC, |
2f1ecc1c5f72
Huge cleanup -- move some global variables into a struct.
Matti Hamalainen <ccr@tnsp.org>
parents:
79
diff
changeset
|
313 IWAD_HEXEN, |
2f1ecc1c5f72
Huge cleanup -- move some global variables into a struct.
Matti Hamalainen <ccr@tnsp.org>
parents:
79
diff
changeset
|
314 IWAD_STRIFE, |
2f1ecc1c5f72
Huge cleanup -- move some global variables into a struct.
Matti Hamalainen <ccr@tnsp.org>
parents:
79
diff
changeset
|
315 IWAD_DOOM02, |
2f1ecc1c5f72
Huge cleanup -- move some global variables into a struct.
Matti Hamalainen <ccr@tnsp.org>
parents:
79
diff
changeset
|
316 IWAD_DOOM04, |
2f1ecc1c5f72
Huge cleanup -- move some global variables into a struct.
Matti Hamalainen <ccr@tnsp.org>
parents:
79
diff
changeset
|
317 IWAD_DOOM05, |
2f1ecc1c5f72
Huge cleanup -- move some global variables into a struct.
Matti Hamalainen <ccr@tnsp.org>
parents:
79
diff
changeset
|
318 IWAD_DOOMPR, |
2f1ecc1c5f72
Huge cleanup -- move some global variables into a struct.
Matti Hamalainen <ccr@tnsp.org>
parents:
79
diff
changeset
|
319 IWAD_STRIFE10, |
81 | 320 |
80
2f1ecc1c5f72
Huge cleanup -- move some global variables into a struct.
Matti Hamalainen <ccr@tnsp.org>
parents:
79
diff
changeset
|
321 IWAD_LAST |
2f1ecc1c5f72
Huge cleanup -- move some global variables into a struct.
Matti Hamalainen <ccr@tnsp.org>
parents:
79
diff
changeset
|
322 }; |
81 | 323 |
83
002bc70a3982
More cleanups. Mostly variable renames.
Matti Hamalainen <ccr@tnsp.org>
parents:
81
diff
changeset
|
324 |
80
2f1ecc1c5f72
Huge cleanup -- move some global variables into a struct.
Matti Hamalainen <ccr@tnsp.org>
parents:
79
diff
changeset
|
325 typedef struct |
2f1ecc1c5f72
Huge cleanup -- move some global variables into a struct.
Matti Hamalainen <ccr@tnsp.org>
parents:
79
diff
changeset
|
326 { |
2f1ecc1c5f72
Huge cleanup -- move some global variables into a struct.
Matti Hamalainen <ccr@tnsp.org>
parents:
79
diff
changeset
|
327 // Defined in yadex.cc |
2f1ecc1c5f72
Huge cleanup -- move some global variables into a struct.
Matti Hamalainen <ccr@tnsp.org>
parents:
79
diff
changeset
|
328 const char *config_file; // Name of the configuration file |
2f1ecc1c5f72
Huge cleanup -- move some global variables into a struct.
Matti Hamalainen <ccr@tnsp.org>
parents:
79
diff
changeset
|
329 const char *install_dir; // Where yadex is installed |
2f1ecc1c5f72
Huge cleanup -- move some global variables into a struct.
Matti Hamalainen <ccr@tnsp.org>
parents:
79
diff
changeset
|
330 FILE *logfile; // Filepointer to the error log |
0 | 331 |
83
002bc70a3982
More cleanups. Mostly variable renames.
Matti Hamalainen <ccr@tnsp.org>
parents:
81
diff
changeset
|
332 bool debug; // Are we debugging? |
002bc70a3982
More cleanups. Mostly variable renames.
Matti Hamalainen <ccr@tnsp.org>
parents:
81
diff
changeset
|
333 bool registered; // Registered or shareware iwad ? |
80
2f1ecc1c5f72
Huge cleanup -- move some global variables into a struct.
Matti Hamalainen <ccr@tnsp.org>
parents:
79
diff
changeset
|
334 int cpu_big_endian; // Am I running on a big-endian CPU ? |
2f1ecc1c5f72
Huge cleanup -- move some global variables into a struct.
Matti Hamalainen <ccr@tnsp.org>
parents:
79
diff
changeset
|
335 |
2f1ecc1c5f72
Huge cleanup -- move some global variables into a struct.
Matti Hamalainen <ccr@tnsp.org>
parents:
79
diff
changeset
|
336 /* Error resiliency of during loading of WAD / map data, 0 - 4 |
2f1ecc1c5f72
Huge cleanup -- move some global variables into a struct.
Matti Hamalainen <ccr@tnsp.org>
parents:
79
diff
changeset
|
337 * 0 = Bail on all errors. |
2f1ecc1c5f72
Huge cleanup -- move some global variables into a struct.
Matti Hamalainen <ccr@tnsp.org>
parents:
79
diff
changeset
|
338 * 4 = Ignore almost anything. |
2f1ecc1c5f72
Huge cleanup -- move some global variables into a struct.
Matti Hamalainen <ccr@tnsp.org>
parents:
79
diff
changeset
|
339 */ |
2f1ecc1c5f72
Huge cleanup -- move some global variables into a struct.
Matti Hamalainen <ccr@tnsp.org>
parents:
79
diff
changeset
|
340 int error_res; |
2f1ecc1c5f72
Huge cleanup -- move some global variables into a struct.
Matti Hamalainen <ccr@tnsp.org>
parents:
79
diff
changeset
|
341 |
2f1ecc1c5f72
Huge cleanup -- move some global variables into a struct.
Matti Hamalainen <ccr@tnsp.org>
parents:
79
diff
changeset
|
342 int screen_lines; // Lines that our TTY can display |
2f1ecc1c5f72
Huge cleanup -- move some global variables into a struct.
Matti Hamalainen <ccr@tnsp.org>
parents:
79
diff
changeset
|
343 bool remind_to_build_nodes; // Remind the user to build nodes |
0 | 344 |
80
2f1ecc1c5f72
Huge cleanup -- move some global variables into a struct.
Matti Hamalainen <ccr@tnsp.org>
parents:
79
diff
changeset
|
345 // Defaults |
2f1ecc1c5f72
Huge cleanup -- move some global variables into a struct.
Matti Hamalainen <ccr@tnsp.org>
parents:
79
diff
changeset
|
346 struct { |
2f1ecc1c5f72
Huge cleanup -- move some global variables into a struct.
Matti Hamalainen <ccr@tnsp.org>
parents:
79
diff
changeset
|
347 // For new sectors |
2f1ecc1c5f72
Huge cleanup -- move some global variables into a struct.
Matti Hamalainen <ccr@tnsp.org>
parents:
79
diff
changeset
|
348 int ceiling_height; |
2f1ecc1c5f72
Huge cleanup -- move some global variables into a struct.
Matti Hamalainen <ccr@tnsp.org>
parents:
79
diff
changeset
|
349 char ceiling_texture[WAD_FLAT_NAME + 1]; |
2f1ecc1c5f72
Huge cleanup -- move some global variables into a struct.
Matti Hamalainen <ccr@tnsp.org>
parents:
79
diff
changeset
|
350 |
2f1ecc1c5f72
Huge cleanup -- move some global variables into a struct.
Matti Hamalainen <ccr@tnsp.org>
parents:
79
diff
changeset
|
351 int floor_height; |
2f1ecc1c5f72
Huge cleanup -- move some global variables into a struct.
Matti Hamalainen <ccr@tnsp.org>
parents:
79
diff
changeset
|
352 char floor_texture[WAD_FLAT_NAME + 1]; |
2f1ecc1c5f72
Huge cleanup -- move some global variables into a struct.
Matti Hamalainen <ccr@tnsp.org>
parents:
79
diff
changeset
|
353 |
2f1ecc1c5f72
Huge cleanup -- move some global variables into a struct.
Matti Hamalainen <ccr@tnsp.org>
parents:
79
diff
changeset
|
354 int light_level; |
2f1ecc1c5f72
Huge cleanup -- move some global variables into a struct.
Matti Hamalainen <ccr@tnsp.org>
parents:
79
diff
changeset
|
355 |
2f1ecc1c5f72
Huge cleanup -- move some global variables into a struct.
Matti Hamalainen <ccr@tnsp.org>
parents:
79
diff
changeset
|
356 // For new linedefs |
2f1ecc1c5f72
Huge cleanup -- move some global variables into a struct.
Matti Hamalainen <ccr@tnsp.org>
parents:
79
diff
changeset
|
357 char lower_texture[WAD_TEX_NAME + 1]; |
2f1ecc1c5f72
Huge cleanup -- move some global variables into a struct.
Matti Hamalainen <ccr@tnsp.org>
parents:
79
diff
changeset
|
358 char middle_texture[WAD_TEX_NAME + 1]; |
2f1ecc1c5f72
Huge cleanup -- move some global variables into a struct.
Matti Hamalainen <ccr@tnsp.org>
parents:
79
diff
changeset
|
359 char upper_texture[WAD_TEX_NAME + 1]; |
2f1ecc1c5f72
Huge cleanup -- move some global variables into a struct.
Matti Hamalainen <ccr@tnsp.org>
parents:
79
diff
changeset
|
360 |
2f1ecc1c5f72
Huge cleanup -- move some global variables into a struct.
Matti Hamalainen <ccr@tnsp.org>
parents:
79
diff
changeset
|
361 // For new things |
2f1ecc1c5f72
Huge cleanup -- move some global variables into a struct.
Matti Hamalainen <ccr@tnsp.org>
parents:
79
diff
changeset
|
362 int thing; // For new THINGS |
2f1ecc1c5f72
Huge cleanup -- move some global variables into a struct.
Matti Hamalainen <ccr@tnsp.org>
parents:
79
diff
changeset
|
363 } def; |
0 | 364 |
83
002bc70a3982
More cleanups. Mostly variable renames.
Matti Hamalainen <ccr@tnsp.org>
parents:
81
diff
changeset
|
365 int GameId; |
002bc70a3982
More cleanups. Mostly variable renames.
Matti Hamalainen <ccr@tnsp.org>
parents:
81
diff
changeset
|
366 char *Game; // Name of game "doom", "doom2", "heretic", ... |
002bc70a3982
More cleanups. Mostly variable renames.
Matti Hamalainen <ccr@tnsp.org>
parents:
81
diff
changeset
|
367 bool quiet; // Don't beep when an object is selected |
002bc70a3982
More cleanups. Mostly variable renames.
Matti Hamalainen <ccr@tnsp.org>
parents:
81
diff
changeset
|
368 bool quieter; // Don't beep, even on error |
002bc70a3982
More cleanups. Mostly variable renames.
Matti Hamalainen <ccr@tnsp.org>
parents:
81
diff
changeset
|
369 bool expert; // Don't ask for confirmation for some ops. |
80
2f1ecc1c5f72
Huge cleanup -- move some global variables into a struct.
Matti Hamalainen <ccr@tnsp.org>
parents:
79
diff
changeset
|
370 bool autoscroll; // Autoscrolling enabled. |
2f1ecc1c5f72
Huge cleanup -- move some global variables into a struct.
Matti Hamalainen <ccr@tnsp.org>
parents:
79
diff
changeset
|
371 unsigned long autoscroll_amp; // Amplitude in percents of screen/window size. |
2f1ecc1c5f72
Huge cleanup -- move some global variables into a struct.
Matti Hamalainen <ccr@tnsp.org>
parents:
79
diff
changeset
|
372 unsigned long autoscroll_edge; // Max. dist. in pixels to edge. |
2f1ecc1c5f72
Huge cleanup -- move some global variables into a struct.
Matti Hamalainen <ccr@tnsp.org>
parents:
79
diff
changeset
|
373 int copy_linedef_reuse_sidedefs; |
2f1ecc1c5f72
Huge cleanup -- move some global variables into a struct.
Matti Hamalainen <ccr@tnsp.org>
parents:
79
diff
changeset
|
374 int double_click_timeout; // Max ms between clicks of double click. |
2f1ecc1c5f72
Huge cleanup -- move some global variables into a struct.
Matti Hamalainen <ccr@tnsp.org>
parents:
79
diff
changeset
|
375 int grid_pixels_min; // Minimum grid step in pixels when not locked |
2f1ecc1c5f72
Huge cleanup -- move some global variables into a struct.
Matti Hamalainen <ccr@tnsp.org>
parents:
79
diff
changeset
|
376 int GridMin; // Minimum grid step in map units |
2f1ecc1c5f72
Huge cleanup -- move some global variables into a struct.
Matti Hamalainen <ccr@tnsp.org>
parents:
79
diff
changeset
|
377 int GridMax; // Maximum grid step in map units |
2f1ecc1c5f72
Huge cleanup -- move some global variables into a struct.
Matti Hamalainen <ccr@tnsp.org>
parents:
79
diff
changeset
|
378 int idle_sleep_ms; // Time to sleep after empty XPending() |
2f1ecc1c5f72
Huge cleanup -- move some global variables into a struct.
Matti Hamalainen <ccr@tnsp.org>
parents:
79
diff
changeset
|
379 int zoom_default; // Initial zoom factor for map |
2f1ecc1c5f72
Huge cleanup -- move some global variables into a struct.
Matti Hamalainen <ccr@tnsp.org>
parents:
79
diff
changeset
|
380 int zoom_step; // Step between zoom factors in percent |
2f1ecc1c5f72
Huge cleanup -- move some global variables into a struct.
Matti Hamalainen <ccr@tnsp.org>
parents:
79
diff
changeset
|
381 int digit_zoom_base; // Zoom factor of `1' key, in percent |
2f1ecc1c5f72
Huge cleanup -- move some global variables into a struct.
Matti Hamalainen <ccr@tnsp.org>
parents:
79
diff
changeset
|
382 int digit_zoom_step; // Step between digit keys, in percent |
2f1ecc1c5f72
Huge cleanup -- move some global variables into a struct.
Matti Hamalainen <ccr@tnsp.org>
parents:
79
diff
changeset
|
383 confirm_t insert_vertex_merge_vertices; |
2f1ecc1c5f72
Huge cleanup -- move some global variables into a struct.
Matti Hamalainen <ccr@tnsp.org>
parents:
79
diff
changeset
|
384 confirm_t insert_vertex_split_linedef; |
2f1ecc1c5f72
Huge cleanup -- move some global variables into a struct.
Matti Hamalainen <ccr@tnsp.org>
parents:
79
diff
changeset
|
385 bool blindly_swap_sidedefs; |
2f1ecc1c5f72
Huge cleanup -- move some global variables into a struct.
Matti Hamalainen <ccr@tnsp.org>
parents:
79
diff
changeset
|
386 |
2f1ecc1c5f72
Huge cleanup -- move some global variables into a struct.
Matti Hamalainen <ccr@tnsp.org>
parents:
79
diff
changeset
|
387 |
83
002bc70a3982
More cleanups. Mostly variable renames.
Matti Hamalainen <ccr@tnsp.org>
parents:
81
diff
changeset
|
388 char *iwadnames[IWAD_LAST]; |
80
2f1ecc1c5f72
Huge cleanup -- move some global variables into a struct.
Matti Hamalainen <ccr@tnsp.org>
parents:
79
diff
changeset
|
389 char *MainWad; // Name of the main wad file |
2f1ecc1c5f72
Huge cleanup -- move some global variables into a struct.
Matti Hamalainen <ccr@tnsp.org>
parents:
79
diff
changeset
|
390 |
0 | 391 #ifdef AYM_MOUSE_HACKS |
80
2f1ecc1c5f72
Huge cleanup -- move some global variables into a struct.
Matti Hamalainen <ccr@tnsp.org>
parents:
79
diff
changeset
|
392 int MouseMickeysH; |
2f1ecc1c5f72
Huge cleanup -- move some global variables into a struct.
Matti Hamalainen <ccr@tnsp.org>
parents:
79
diff
changeset
|
393 int MouseMickeysV; |
0 | 394 #endif |
83
002bc70a3982
More cleanups. Mostly variable renames.
Matti Hamalainen <ccr@tnsp.org>
parents:
81
diff
changeset
|
395 char **patchwads; // List of pwad files |
80
2f1ecc1c5f72
Huge cleanup -- move some global variables into a struct.
Matti Hamalainen <ccr@tnsp.org>
parents:
79
diff
changeset
|
396 unsigned long scroll_less; // %s of screenful to scroll by |
2f1ecc1c5f72
Huge cleanup -- move some global variables into a struct.
Matti Hamalainen <ccr@tnsp.org>
parents:
79
diff
changeset
|
397 unsigned long scroll_more; // %s of screenful to scroll by |
83
002bc70a3982
More cleanups. Mostly variable renames.
Matti Hamalainen <ccr@tnsp.org>
parents:
81
diff
changeset
|
398 bool autoselect0; // Autom. select obj. 0 when switching modes |
80
2f1ecc1c5f72
Huge cleanup -- move some global variables into a struct.
Matti Hamalainen <ccr@tnsp.org>
parents:
79
diff
changeset
|
399 int show_help; // Print usage message and exit. |
2f1ecc1c5f72
Huge cleanup -- move some global variables into a struct.
Matti Hamalainen <ccr@tnsp.org>
parents:
79
diff
changeset
|
400 int sprite_scale; // Relative scale used to display sprites |
83
002bc70a3982
More cleanups. Mostly variable renames.
Matti Hamalainen <ccr@tnsp.org>
parents:
81
diff
changeset
|
401 bool swap_buttons; // Swap right and middle mouse buttons |
80
2f1ecc1c5f72
Huge cleanup -- move some global variables into a struct.
Matti Hamalainen <ccr@tnsp.org>
parents:
79
diff
changeset
|
402 int verbose; // Verbose mode |
2f1ecc1c5f72
Huge cleanup -- move some global variables into a struct.
Matti Hamalainen <ccr@tnsp.org>
parents:
79
diff
changeset
|
403 int welcome_message; // Print the welcome message on startup. |
2f1ecc1c5f72
Huge cleanup -- move some global variables into a struct.
Matti Hamalainen <ccr@tnsp.org>
parents:
79
diff
changeset
|
404 const char *bench; // Benchmark to run |
0 | 405 |
80
2f1ecc1c5f72
Huge cleanup -- move some global variables into a struct.
Matti Hamalainen <ccr@tnsp.org>
parents:
79
diff
changeset
|
406 // Defined in gfx.cc |
2f1ecc1c5f72
Huge cleanup -- move some global variables into a struct.
Matti Hamalainen <ccr@tnsp.org>
parents:
79
diff
changeset
|
407 bool no_pixmap, text_dot; |
2f1ecc1c5f72
Huge cleanup -- move some global variables into a struct.
Matti Hamalainen <ccr@tnsp.org>
parents:
79
diff
changeset
|
408 int ScrMaxX; // Maximum display X-coord of screen/window |
2f1ecc1c5f72
Huge cleanup -- move some global variables into a struct.
Matti Hamalainen <ccr@tnsp.org>
parents:
79
diff
changeset
|
409 int ScrMaxY; // Maximum display Y-coord of screen/window |
2f1ecc1c5f72
Huge cleanup -- move some global variables into a struct.
Matti Hamalainen <ccr@tnsp.org>
parents:
79
diff
changeset
|
410 float Scale; // Scale to draw map 20 to 1 |
2f1ecc1c5f72
Huge cleanup -- move some global variables into a struct.
Matti Hamalainen <ccr@tnsp.org>
parents:
79
diff
changeset
|
411 int OrigX; // Map X-coord of centre of screen/window |
2f1ecc1c5f72
Huge cleanup -- move some global variables into a struct.
Matti Hamalainen <ccr@tnsp.org>
parents:
79
diff
changeset
|
412 int OrigY; // Map Y-coord of centre of screen/window |
2f1ecc1c5f72
Huge cleanup -- move some global variables into a struct.
Matti Hamalainen <ccr@tnsp.org>
parents:
79
diff
changeset
|
413 int ScrCenterX; // Display X-coord of centre of screen/window |
2f1ecc1c5f72
Huge cleanup -- move some global variables into a struct.
Matti Hamalainen <ccr@tnsp.org>
parents:
79
diff
changeset
|
414 int ScrCenterY; // Display Y-coord of centre of screen/window |
0 | 415 |
80
2f1ecc1c5f72
Huge cleanup -- move some global variables into a struct.
Matti Hamalainen <ccr@tnsp.org>
parents:
79
diff
changeset
|
416 // Defined in wads.cc |
2f1ecc1c5f72
Huge cleanup -- move some global variables into a struct.
Matti Hamalainen <ccr@tnsp.org>
parents:
79
diff
changeset
|
417 MDirPtr MasterDir; // The master directory |
2f1ecc1c5f72
Huge cleanup -- move some global variables into a struct.
Matti Hamalainen <ccr@tnsp.org>
parents:
79
diff
changeset
|
418 Serial_num master_dir_serial; // The revision# thereof |
0 | 419 |
80
2f1ecc1c5f72
Huge cleanup -- move some global variables into a struct.
Matti Hamalainen <ccr@tnsp.org>
parents:
79
diff
changeset
|
420 // Defined in edit.cc |
2f1ecc1c5f72
Huge cleanup -- move some global variables into a struct.
Matti Hamalainen <ccr@tnsp.org>
parents:
79
diff
changeset
|
421 bool InfoShown; // Is the bottom line displayed? |
2f1ecc1c5f72
Huge cleanup -- move some global variables into a struct.
Matti Hamalainen <ccr@tnsp.org>
parents:
79
diff
changeset
|
422 } YadexConfig; |
2f1ecc1c5f72
Huge cleanup -- move some global variables into a struct.
Matti Hamalainen <ccr@tnsp.org>
parents:
79
diff
changeset
|
423 |
2f1ecc1c5f72
Huge cleanup -- move some global variables into a struct.
Matti Hamalainen <ccr@tnsp.org>
parents:
79
diff
changeset
|
424 extern YadexConfig cfg; |
0 | 425 |
426 /* | |
33
a68786b9c74b
Oops, used indent with tabs enabled. Remove tabs.
Matti Hamalainen <ccr@tnsp.org>
parents:
25
diff
changeset
|
427 * Prototypes |
a68786b9c74b
Oops, used indent with tabs enabled. Remove tabs.
Matti Hamalainen <ccr@tnsp.org>
parents:
25
diff
changeset
|
428 * AYM 1998-10-16: DEU used to have _all_ prototypes here. Thus |
a68786b9c74b
Oops, used indent with tabs enabled. Remove tabs.
Matti Hamalainen <ccr@tnsp.org>
parents:
25
diff
changeset
|
429 * I had to recompile _all_ the modules every time I changed |
a68786b9c74b
Oops, used indent with tabs enabled. Remove tabs.
Matti Hamalainen <ccr@tnsp.org>
parents:
25
diff
changeset
|
430 * a single prototype. To avoid this, my theory is to put all |
a68786b9c74b
Oops, used indent with tabs enabled. Remove tabs.
Matti Hamalainen <ccr@tnsp.org>
parents:
25
diff
changeset
|
431 * the prototypes I can in individual headers. There is still |
a68786b9c74b
Oops, used indent with tabs enabled. Remove tabs.
Matti Hamalainen <ccr@tnsp.org>
parents:
25
diff
changeset
|
432 * room for improvement on that matter... |
0 | 433 */ |
434 | |
435 // checks.cc (previously in editobj.cc) | |
33
a68786b9c74b
Oops, used indent with tabs enabled. Remove tabs.
Matti Hamalainen <ccr@tnsp.org>
parents:
25
diff
changeset
|
436 void CheckLevel(int, int, int pulldown); /* SWAP! */ |
a68786b9c74b
Oops, used indent with tabs enabled. Remove tabs.
Matti Hamalainen <ccr@tnsp.org>
parents:
25
diff
changeset
|
437 bool CheckStartingPos(void); /* SWAP! */ |
0 | 438 |
439 // colour1.cc | |
25
8eaf72e2041b
Reindent the source using GNU indent and "indent -i4 -bli0 -npcs -nprs -npsl".
Matti Hamalainen <ccr@tnsp.org>
parents:
22
diff
changeset
|
440 int getcolour(const char *s, rgb_c * rgb); |
0 | 441 |
442 // colour2.cc | |
25
8eaf72e2041b
Reindent the source using GNU indent and "indent -i4 -bli0 -npcs -nprs -npsl".
Matti Hamalainen <ccr@tnsp.org>
parents:
22
diff
changeset
|
443 int rgb2irgb(int r, int g, int b); |
0 | 444 |
445 // colour3.cc | |
25
8eaf72e2041b
Reindent the source using GNU indent and "indent -i4 -bli0 -npcs -nprs -npsl".
Matti Hamalainen <ccr@tnsp.org>
parents:
22
diff
changeset
|
446 void irgb2rgb(int c, rgb_c * rgb); |
0 | 447 |
448 // editobj.cc | |
25
8eaf72e2041b
Reindent the source using GNU indent and "indent -i4 -bli0 -npcs -nprs -npsl".
Matti Hamalainen <ccr@tnsp.org>
parents:
22
diff
changeset
|
449 int InputObjectNumber(int, int, int, int); |
8eaf72e2041b
Reindent the source using GNU indent and "indent -i4 -bli0 -npcs -nprs -npsl".
Matti Hamalainen <ccr@tnsp.org>
parents:
22
diff
changeset
|
450 int InputObjectXRef(int, int, int, bool, int); |
8eaf72e2041b
Reindent the source using GNU indent and "indent -i4 -bli0 -npcs -nprs -npsl".
Matti Hamalainen <ccr@tnsp.org>
parents:
22
diff
changeset
|
451 bool Input2VertexNumbers(int, int, const char *, int *, int *); |
8eaf72e2041b
Reindent the source using GNU indent and "indent -i4 -bli0 -npcs -nprs -npsl".
Matti Hamalainen <ccr@tnsp.org>
parents:
22
diff
changeset
|
452 void EditObjectsInfo(int, int, int, SelPtr); |
33
a68786b9c74b
Oops, used indent with tabs enabled. Remove tabs.
Matti Hamalainen <ccr@tnsp.org>
parents:
25
diff
changeset
|
453 void InsertStandardObject(int, int, int choice); /* SWAP! */ |
a68786b9c74b
Oops, used indent with tabs enabled. Remove tabs.
Matti Hamalainen <ccr@tnsp.org>
parents:
25
diff
changeset
|
454 void MiscOperations(int, SelPtr *, int choice); /* SWAP! */ |
0 | 455 |
456 // game.cc | |
25
8eaf72e2041b
Reindent the source using GNU indent and "indent -i4 -bli0 -npcs -nprs -npsl".
Matti Hamalainen <ccr@tnsp.org>
parents:
22
diff
changeset
|
457 void InitGameDefs(void); |
8eaf72e2041b
Reindent the source using GNU indent and "indent -i4 -bli0 -npcs -nprs -npsl".
Matti Hamalainen <ccr@tnsp.org>
parents:
22
diff
changeset
|
458 void LoadGameDefs(const char *game); |
8eaf72e2041b
Reindent the source using GNU indent and "indent -i4 -bli0 -npcs -nprs -npsl".
Matti Hamalainen <ccr@tnsp.org>
parents:
22
diff
changeset
|
459 void FreeGameDefs(void); |
0 | 460 |
461 // geom.cc | |
25
8eaf72e2041b
Reindent the source using GNU indent and "indent -i4 -bli0 -npcs -nprs -npsl".
Matti Hamalainen <ccr@tnsp.org>
parents:
22
diff
changeset
|
462 unsigned ComputeAngle(int, int); |
8eaf72e2041b
Reindent the source using GNU indent and "indent -i4 -bli0 -npcs -nprs -npsl".
Matti Hamalainen <ccr@tnsp.org>
parents:
22
diff
changeset
|
463 unsigned ComputeDist(int, int); |
0 | 464 |
465 // input.cc | |
466 #include "input.h" | |
467 | |
468 // l_align.cc (previously in objects.cc) | |
66
794b7bb40d7f
Initial work on cleaning up and improving the texture alignment functionality.
Matti Hamalainen <ccr@tnsp.org>
parents:
44
diff
changeset
|
469 void AlignTexturesY(SelPtr *, int opt_sdef, bool opt_check); |
794b7bb40d7f
Initial work on cleaning up and improving the texture alignment functionality.
Matti Hamalainen <ccr@tnsp.org>
parents:
44
diff
changeset
|
470 void AlignTexturesX(SelPtr *, int opt_sdef, bool opt_check, bool opt_offset, int opt_mode); |
0 | 471 |
472 // l_misc.cc (previously in objects.cc) | |
33
a68786b9c74b
Oops, used indent with tabs enabled. Remove tabs.
Matti Hamalainen <ccr@tnsp.org>
parents:
25
diff
changeset
|
473 void FlipLineDefs(SelPtr, bool); /* SWAP! */ |
a68786b9c74b
Oops, used indent with tabs enabled. Remove tabs.
Matti Hamalainen <ccr@tnsp.org>
parents:
25
diff
changeset
|
474 void SplitLineDefs(SelPtr); /* SWAP! */ |
a68786b9c74b
Oops, used indent with tabs enabled. Remove tabs.
Matti Hamalainen <ccr@tnsp.org>
parents:
25
diff
changeset
|
475 void MakeRectangularNook(SelPtr obj, int width, int depth, int convex); /* SWAP! */ |
25
8eaf72e2041b
Reindent the source using GNU indent and "indent -i4 -bli0 -npcs -nprs -npsl".
Matti Hamalainen <ccr@tnsp.org>
parents:
22
diff
changeset
|
476 void SetLinedefLength(SelPtr obj, int length, int move_2nd_vertex); |
0 | 477 |
478 // l_prop.cc (previously in editobj.cc) | |
25
8eaf72e2041b
Reindent the source using GNU indent and "indent -i4 -bli0 -npcs -nprs -npsl".
Matti Hamalainen <ccr@tnsp.org>
parents:
22
diff
changeset
|
479 void LinedefProperties(int x0, int y0, SelPtr obj); |
8eaf72e2041b
Reindent the source using GNU indent and "indent -i4 -bli0 -npcs -nprs -npsl".
Matti Hamalainen <ccr@tnsp.org>
parents:
22
diff
changeset
|
480 void TransferLinedefProperties(int src_linedef, SelPtr linedefs); |
0 | 481 |
482 // l_unlink.cc | |
25
8eaf72e2041b
Reindent the source using GNU indent and "indent -i4 -bli0 -npcs -nprs -npsl".
Matti Hamalainen <ccr@tnsp.org>
parents:
22
diff
changeset
|
483 void unlink_sidedef(SelPtr linedefs, int side1, int side2); |
0 | 484 |
485 // levels.cc | |
44
a862fd9906ec
Introduce error resilience feature.
Matti Hamalainen <ccr@tnsp.org>
parents:
33
diff
changeset
|
486 extern int error_res; |
33
a68786b9c74b
Oops, used indent with tabs enabled. Remove tabs.
Matti Hamalainen <ccr@tnsp.org>
parents:
25
diff
changeset
|
487 int ReadLevelData(const char *); /* SWAP! */ |
a68786b9c74b
Oops, used indent with tabs enabled. Remove tabs.
Matti Hamalainen <ccr@tnsp.org>
parents:
25
diff
changeset
|
488 void ForgetLevelData(void); /* SWAP! */ |
a68786b9c74b
Oops, used indent with tabs enabled. Remove tabs.
Matti Hamalainen <ccr@tnsp.org>
parents:
25
diff
changeset
|
489 int SaveLevelData(const char *, const char *level_name); /* SWAP! */ |
25
8eaf72e2041b
Reindent the source using GNU indent and "indent -i4 -bli0 -npcs -nprs -npsl".
Matti Hamalainen <ccr@tnsp.org>
parents:
22
diff
changeset
|
490 void ReadWTextureNames(void); |
8eaf72e2041b
Reindent the source using GNU indent and "indent -i4 -bli0 -npcs -nprs -npsl".
Matti Hamalainen <ccr@tnsp.org>
parents:
22
diff
changeset
|
491 void ForgetFTextureNames(void); |
8eaf72e2041b
Reindent the source using GNU indent and "indent -i4 -bli0 -npcs -nprs -npsl".
Matti Hamalainen <ccr@tnsp.org>
parents:
22
diff
changeset
|
492 int is_flat_name_in_list(const char *name); |
8eaf72e2041b
Reindent the source using GNU indent and "indent -i4 -bli0 -npcs -nprs -npsl".
Matti Hamalainen <ccr@tnsp.org>
parents:
22
diff
changeset
|
493 void ReadFTextureNames(void); |
8eaf72e2041b
Reindent the source using GNU indent and "indent -i4 -bli0 -npcs -nprs -npsl".
Matti Hamalainen <ccr@tnsp.org>
parents:
22
diff
changeset
|
494 void ForgetWTextureNames(void); |
0 | 495 |
496 // names.cc | |
25
8eaf72e2041b
Reindent the source using GNU indent and "indent -i4 -bli0 -npcs -nprs -npsl".
Matti Hamalainen <ccr@tnsp.org>
parents:
22
diff
changeset
|
497 const char *GetObjectTypeName(int); |
8eaf72e2041b
Reindent the source using GNU indent and "indent -i4 -bli0 -npcs -nprs -npsl".
Matti Hamalainen <ccr@tnsp.org>
parents:
22
diff
changeset
|
498 const char *GetEditModeName(int); |
8eaf72e2041b
Reindent the source using GNU indent and "indent -i4 -bli0 -npcs -nprs -npsl".
Matti Hamalainen <ccr@tnsp.org>
parents:
22
diff
changeset
|
499 const char *GetLineDefTypeName(int); |
8eaf72e2041b
Reindent the source using GNU indent and "indent -i4 -bli0 -npcs -nprs -npsl".
Matti Hamalainen <ccr@tnsp.org>
parents:
22
diff
changeset
|
500 const char *GetLineDefTypeLongName(int); |
8eaf72e2041b
Reindent the source using GNU indent and "indent -i4 -bli0 -npcs -nprs -npsl".
Matti Hamalainen <ccr@tnsp.org>
parents:
22
diff
changeset
|
501 const char *GetLineDefFlagsName(int); |
8eaf72e2041b
Reindent the source using GNU indent and "indent -i4 -bli0 -npcs -nprs -npsl".
Matti Hamalainen <ccr@tnsp.org>
parents:
22
diff
changeset
|
502 const char *GetLineDefFlagsLongName(int); |
8eaf72e2041b
Reindent the source using GNU indent and "indent -i4 -bli0 -npcs -nprs -npsl".
Matti Hamalainen <ccr@tnsp.org>
parents:
22
diff
changeset
|
503 const char *GetSectorTypeName(int); |
8eaf72e2041b
Reindent the source using GNU indent and "indent -i4 -bli0 -npcs -nprs -npsl".
Matti Hamalainen <ccr@tnsp.org>
parents:
22
diff
changeset
|
504 const char *GetSectorTypeLongName(int); |
0 | 505 |
506 // s_door.cc (previously in objects.cc) | |
33
a68786b9c74b
Oops, used indent with tabs enabled. Remove tabs.
Matti Hamalainen <ccr@tnsp.org>
parents:
25
diff
changeset
|
507 void MakeDoorFromSector(int); /* SWAP! */ |
0 | 508 |
509 // s_lift.cc (previously in objects.cc) | |
33
a68786b9c74b
Oops, used indent with tabs enabled. Remove tabs.
Matti Hamalainen <ccr@tnsp.org>
parents:
25
diff
changeset
|
510 void MakeLiftFromSector(int); /* SWAP! */ |
0 | 511 |
512 // s_merge.cc (previously in objects.cc) | |
33
a68786b9c74b
Oops, used indent with tabs enabled. Remove tabs.
Matti Hamalainen <ccr@tnsp.org>
parents:
25
diff
changeset
|
513 void MergeSectors(SelPtr *); /* SWAP! */ |
a68786b9c74b
Oops, used indent with tabs enabled. Remove tabs.
Matti Hamalainen <ccr@tnsp.org>
parents:
25
diff
changeset
|
514 void DeleteLineDefsJoinSectors(SelPtr *); /* SWAP! */ |
0 | 515 |
516 // s_misc.cc (previously in objects.cc) | |
33
a68786b9c74b
Oops, used indent with tabs enabled. Remove tabs.
Matti Hamalainen <ccr@tnsp.org>
parents:
25
diff
changeset
|
517 void DistributeSectorFloors(SelPtr); /* SWAP! */ |
a68786b9c74b
Oops, used indent with tabs enabled. Remove tabs.
Matti Hamalainen <ccr@tnsp.org>
parents:
25
diff
changeset
|
518 void DistributeSectorCeilings(SelPtr); /* SWAP! */ |
25
8eaf72e2041b
Reindent the source using GNU indent and "indent -i4 -bli0 -npcs -nprs -npsl".
Matti Hamalainen <ccr@tnsp.org>
parents:
22
diff
changeset
|
519 void RaiseOrLowerSectors(SelPtr obj); |
8eaf72e2041b
Reindent the source using GNU indent and "indent -i4 -bli0 -npcs -nprs -npsl".
Matti Hamalainen <ccr@tnsp.org>
parents:
22
diff
changeset
|
520 void BrightenOrDarkenSectors(SelPtr obj); |
8eaf72e2041b
Reindent the source using GNU indent and "indent -i4 -bli0 -npcs -nprs -npsl".
Matti Hamalainen <ccr@tnsp.org>
parents:
22
diff
changeset
|
521 void SuperSectorSelector(int map_x, int map_y, int new_sec); |
0 | 522 |
523 // s_prop.cc (previously in editobj.cc) | |
25
8eaf72e2041b
Reindent the source using GNU indent and "indent -i4 -bli0 -npcs -nprs -npsl".
Matti Hamalainen <ccr@tnsp.org>
parents:
22
diff
changeset
|
524 void SectorProperties(int x0, int y0, SelPtr obj); |
8eaf72e2041b
Reindent the source using GNU indent and "indent -i4 -bli0 -npcs -nprs -npsl".
Matti Hamalainen <ccr@tnsp.org>
parents:
22
diff
changeset
|
525 void TransferSectorProperties(int src_sector, SelPtr sectors); |
0 | 526 |
527 // s_split.cc (previously in objects.cc) | |
33
a68786b9c74b
Oops, used indent with tabs enabled. Remove tabs.
Matti Hamalainen <ccr@tnsp.org>
parents:
25
diff
changeset
|
528 void SplitSector(int, int); /* SWAP! */ |
a68786b9c74b
Oops, used indent with tabs enabled. Remove tabs.
Matti Hamalainen <ccr@tnsp.org>
parents:
25
diff
changeset
|
529 void SplitLineDefsAndSector(int, int); /* SWAP! */ |
a68786b9c74b
Oops, used indent with tabs enabled. Remove tabs.
Matti Hamalainen <ccr@tnsp.org>
parents:
25
diff
changeset
|
530 void MultiSplitLineDefsAndSector(int, int); /* SWAP! */ |
0 | 531 |
532 // scrnshot.cc | |
25
8eaf72e2041b
Reindent the source using GNU indent and "indent -i4 -bli0 -npcs -nprs -npsl".
Matti Hamalainen <ccr@tnsp.org>
parents:
22
diff
changeset
|
533 void ScreenShot(void); |
0 | 534 |
535 // selrect.cc | |
536 // t_prop.c (previously in editobj.c) | |
25
8eaf72e2041b
Reindent the source using GNU indent and "indent -i4 -bli0 -npcs -nprs -npsl".
Matti Hamalainen <ccr@tnsp.org>
parents:
22
diff
changeset
|
537 void ThingProperties(int x0, int y0, SelPtr obj); |
8eaf72e2041b
Reindent the source using GNU indent and "indent -i4 -bli0 -npcs -nprs -npsl".
Matti Hamalainen <ccr@tnsp.org>
parents:
22
diff
changeset
|
538 void TransferThingProperties(int src_thing, SelPtr things); |
0 | 539 |
540 // v_merge.cc | |
33
a68786b9c74b
Oops, used indent with tabs enabled. Remove tabs.
Matti Hamalainen <ccr@tnsp.org>
parents:
25
diff
changeset
|
541 void DeleteVerticesJoinLineDefs(SelPtr); /* SWAP! */ |
a68786b9c74b
Oops, used indent with tabs enabled. Remove tabs.
Matti Hamalainen <ccr@tnsp.org>
parents:
25
diff
changeset
|
542 void MergeVertices(SelPtr *); /* SWAP! */ |
a68786b9c74b
Oops, used indent with tabs enabled. Remove tabs.
Matti Hamalainen <ccr@tnsp.org>
parents:
25
diff
changeset
|
543 bool AutoMergeVertices(SelPtr *, int obj_type, char operation); /* SWAP! */ |
0 | 544 |
545 // v_polyg.cc | |
25
8eaf72e2041b
Reindent the source using GNU indent and "indent -i4 -bli0 -npcs -nprs -npsl".
Matti Hamalainen <ccr@tnsp.org>
parents:
22
diff
changeset
|
546 void InsertPolygonVertices(int, int, int, int); |
0 | 547 |
548 // verbmsg.cc | |
25
8eaf72e2041b
Reindent the source using GNU indent and "indent -i4 -bli0 -npcs -nprs -npsl".
Matti Hamalainen <ccr@tnsp.org>
parents:
22
diff
changeset
|
549 void verbmsg(const char *fmt, ...); |
0 | 550 |
551 // version.cc | |
552 extern const char *const yadex_version; | |
553 extern const char *const yadex_source_date; | |
554 | |
555 // prefix.cc | |
556 extern const char *const yadex_etc_version; | |
557 extern const char *const yadex_etc_common; | |
558 extern const char *const yadex_ygd_version; | |
559 extern const char *const yadex_ygd_common; | |
560 | |
561 // wads.cc | |
25
8eaf72e2041b
Reindent the source using GNU indent and "indent -i4 -bli0 -npcs -nprs -npsl".
Matti Hamalainen <ccr@tnsp.org>
parents:
22
diff
changeset
|
562 MDirPtr FindMasterDir(MDirPtr, const char *); |
8eaf72e2041b
Reindent the source using GNU indent and "indent -i4 -bli0 -npcs -nprs -npsl".
Matti Hamalainen <ccr@tnsp.org>
parents:
22
diff
changeset
|
563 MDirPtr FindMasterDir(MDirPtr, const char *, const char *); |
8eaf72e2041b
Reindent the source using GNU indent and "indent -i4 -bli0 -npcs -nprs -npsl".
Matti Hamalainen <ccr@tnsp.org>
parents:
22
diff
changeset
|
564 int entryname_cmp(const char *entry1, const char *entry2); |
0 | 565 |
566 // warning.cc | |
25
8eaf72e2041b
Reindent the source using GNU indent and "indent -i4 -bli0 -npcs -nprs -npsl".
Matti Hamalainen <ccr@tnsp.org>
parents:
22
diff
changeset
|
567 void warn(const char *fmt, ...); |
0 | 568 |
569 // yadex.cc | |
25
8eaf72e2041b
Reindent the source using GNU indent and "indent -i4 -bli0 -npcs -nprs -npsl".
Matti Hamalainen <ccr@tnsp.org>
parents:
22
diff
changeset
|
570 void Beep(void); |
8eaf72e2041b
Reindent the source using GNU indent and "indent -i4 -bli0 -npcs -nprs -npsl".
Matti Hamalainen <ccr@tnsp.org>
parents:
22
diff
changeset
|
571 void PlaySound(int, int); |
8eaf72e2041b
Reindent the source using GNU indent and "indent -i4 -bli0 -npcs -nprs -npsl".
Matti Hamalainen <ccr@tnsp.org>
parents:
22
diff
changeset
|
572 void LogMessage(const char *, ...); |
0 | 573 |
574 | |
25
8eaf72e2041b
Reindent the source using GNU indent and "indent -i4 -bli0 -npcs -nprs -npsl".
Matti Hamalainen <ccr@tnsp.org>
parents:
22
diff
changeset
|
575 #endif /* DO NOT ADD ANYTHING AFTER THIS LINE */ |