Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 86 lines (71 sloc) 1.748 kB
d515827 @CO2 Initial Commit
authored
1 // Copyright (C) 2009, 2010 Brendon Duncan
2
3 /* This file is a part of UDMFConvert.
4
5 UDMFConvert is free software: you can redistribute it and/or
6 modify it under the terms of the GNU General Public License
7 as published by the Free Software Foundation, either version
8 3 of the License or (at your option) any later version.
9
10 UDMFConvert is distributed in the hope that it will be useful
11 but WITHOUT ANY WARRANTY; without even the implied warranty
12 of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See
13 the GNU General Public License for more details.
14
15 You should have received a copy of the GNU General Public
16 License along with this program. If not, see
17 <http://www.gnu.org/licenses/>. */
18
19 #ifndef doom_mapdata_h
20 #define doom_mapdata_h
21
22 #include <iostream>
23 #include "sharedmap.h"
24
25 namespace doom
26 {
27 enum thingflags
28 {
29 TF_EASY = 0x1,
30 TF_MEDIUM = 0x2,
31 TF_HARD = 0x4,
32 TF_AMBUSH = 0x8,
33 TF_MULTI = 0x10,
34 TF_NODM = 0x20,
35 TF_NOCOOP = 0x40,
36 TF_FRIEND = 0x80
37 };
38
39 enum linedefflags
40 {
41 LDF_IMPASSIBLE = 0x1,
42 LDF_BLOCKMONSTER = 0x2,
43 LDF_TWOSIDED = 0x4,
44 LDF_UPPERUNPEGGED = 0x8,
45 LDF_LOWERUNPEGGED = 0x10,
46 LDF_SECRET = 0x20,
47 LDF_BLOCKSOUND = 0x40,
48 LDF_NOAUTOMAP = 0x80,
49 LDF_VISIBLE = 0x100,
50 LDF_PASSUSE = 0x200
51 };
52
53 struct thing
54 {
55 short x;
56 short y;
57 short angle;
58 short doomednum;
59 short flags;
60 };
61
62 struct linedef
63 {
64 short start;
65 short end;
66 short flags;
67 short special;
68 short tag;
69 short right;
70 short left;
71 };
72
73 typedef shared::sidedef sidedef;
74 typedef shared::vertex vertex;
75 typedef shared::sector sector;
76
77 thing getthing(FILE *things);
78 linedef getlinedef(FILE *linedefs);
79
80 sidedef getsidedef(FILE *sidedefs);
81 vertex getvertex(FILE *vertexes);
82 sector getsector(FILE *sectors);
83 };
84
85 #endif
Something went wrong with that request. Please try again.