/* DE1: $Id: p_mapsetup.h 2749 2006-02-01 20:57:11Z danij $ * Copyright (C) 2003, 2004 Jaakko Keränen * * 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: http://www.opensource.org/ */ /* * p_setup.c: Common map setup routines. */ #ifndef __COMMON_PLAYSETUP_H__ #define __COMMON_PLAYSETUP_H__ extern int numthings; #define numvertexes DD_GetInteger(DD_VERTEX_COUNT) #define numsegs DD_GetInteger(DD_SEG_COUNT) #define numsectors DD_GetInteger(DD_SECTOR_COUNT) #define numsubsectors DD_GetInteger(DD_SUBSECTOR_COUNT) #define numnodes DD_GetInteger(DD_NODE_COUNT) #define numlines DD_GetInteger(DD_LINE_COUNT) #define numsides DD_GetInteger(DD_SIDE_COUNT) #if __JHEXEN__ #define numpolyobjs DD_GetInteger(DD_POLYOBJ_COUNT) #endif void P_SetupLevel(int episode, int map, int playermask, skill_t skill); void P_LocateMapLumps(int episode, int map, int *lumpIndices); #endif