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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
|
/*
viDOOM - level editor for DOOM
Copyright (C) 2000 Ian Cowburn (ianc@noddybox.demon.co.uk)
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-------------------------------------------------------------------------
Handles definition and storage of the supported SECTORs
$Id$
*/
#ifndef _SECTORS_H
#define _SECTORS_H
#include "wad.h"
#include "gfx.h"
#include "platgui.h"
/* This is not going to be an ID, so is returned from SelectSector() if it is
cancelled.
*/
#define SECTOR_NULLID -666
/* Meanings for the flags in the sector styles
*/
#define SSTYLE_FACING_IN 0x01
#define SSTYLE_FACING_OUT 0x02
#define SSTYLE_LEAVE_PEG 0x04
#define SSTYLE_UPPER_PEG 0x08
#define SSTYLE_LOWER_PEG 0x10
/* Add a new class of sector
*/
void SectorNewClass(char *class);
/* Add the named type to the supplied class with the ID
*/
void SectorAdd(char *class,int id,char *long_name, char *short_name);
/* Select the ID type for a sector. Returns SECTOR_NULLID if cancelled
*/
int SelectSector(void);
/* Returns the short name of a sector type
*/
char *SectorName(int id);
/* Start defining sector styles.
*/
void StartSectorStyles(void);
/* Define a linedef style
*/
void AddSectorStyle(char *name, int flags,
DirName upper,DirName middle,DirName lower,
DirName floor,DirName ceiling);
/* Return the number of defined sector styles
*/
int NoSectorStyles(void);
/* Choose a sector style. TRUE is accepted, FALSE cancelled.
*/
int ChooseSectorStyle(int *flags,
DirName upper,DirName middle,DirName lower,
DirName floor,DirName ceiling);
#endif
/* END OF FILE */
|