/* 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 */