summaryrefslogtreecommitdiff
path: root/linedefs.h
blob: 336525cdf1bf81c886c46e9fb79c11a766315a4c (plain)
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
/*

    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 LINEDEFs

    $Id$

*/

#ifndef VIDOOM_LINEDEFS_H

#define VIDOOM_LINEDEFS_H

#include "wad.h"
#include "gfx.h"
#include "platgui.h"


/* This is not going to be an ID, so is used to detect whether LinedefSelect()
   was cancelled.
*/
#define LINEDEF_NULLID	-666


/* Add a new class of linedef
*/
void	LinedefNewClass(char *class);


/* Add the named type to the supplied class with the ID
*/
void	LinedefAdd(char *class,char *name,int id);


/* Selects a type of linedef, returning the ID or LINEDEF_NULLID if cancelled
*/
int	SelectLinedef(void);


/* Returns the name of a linedef type
*/
char	*LinedefName(int id);


/* Returns the class of a linedef type
*/
char	*LinedefClass(int id);


/* Define a default linedef flags values
*/
void	AddLinedefType(char *name,int flags,int two_sided);


/* Return a default linedef flag value into flags after showing a picklist to
   choose them from, and two is TRUE if the linedef is 2-sided.  Returns TRUE
   for accepted, FALSE cancelled.
*/
int	ChooseLinedefType(int *flags,int *two);


#endif


/* END OF FILE */