/* 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 VIDOOM_SECTORS_H #define VIDOOM_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. Set hexen TRUE for a HEXEN sector. */ void SectorNewClass(int hexen, char *class); /* Add the named type to the supplied class with the ID. Set hexen TRUE for a HEXEN sector. */ void SectorAdd(int hexen,char *class,int id, char *long_name, char *short_name); /* Select the ID type for a sector. Returns SECTOR_NULLID if cancelled. Set hexen TRUE for a HEXEN sector. */ int SelectSector(int hexen); /* Returns the short name of a sector type */ char *SectorName(int hexen, int id); /* 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 */