Quake-III-Arena

Quake III Arena GPL Source Release
Log | Files | Refs

MAP.H (2154B)


      1 /*
      2 ===========================================================================
      3 Copyright (C) 1999-2005 Id Software, Inc.
      4 
      5 This file is part of Quake III Arena source code.
      6 
      7 Quake III Arena source code is free software; you can redistribute it
      8 and/or modify it under the terms of the GNU General Public License as
      9 published by the Free Software Foundation; either version 2 of the License,
     10 or (at your option) any later version.
     11 
     12 Quake III Arena source code is distributed in the hope that it will be
     13 useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
     14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     15 GNU General Public License for more details.
     16 
     17 You should have received a copy of the GNU General Public License
     18 along with Foobar; if not, write to the Free Software
     19 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
     20 ===========================================================================
     21 */
     22 // map.h -- the state of the current world that all views are displaying
     23 
     24 extern	char		currentmap[1024];
     25 
     26 // head/tail of doubly linked lists
     27 extern	brush_t	active_brushes;	// brushes currently being displayed
     28 extern	brush_t	selected_brushes;	// highlighted
     29 
     30 
     31 extern CPtrArray& g_ptrSelectedFaces;
     32 extern CPtrArray& g_ptrSelectedFaceBrushes;
     33 //extern	face_t	*selected_face;
     34 //extern	brush_t	*selected_face_brush;
     35 extern	brush_t	filtered_brushes;	// brushes that have been filtered or regioned
     36 
     37 extern	entity_t	entities;
     38 extern	entity_t	*world_entity;	// the world entity is NOT included in
     39 									// the entities chain
     40 
     41 extern	qboolean	modified;		// for quit confirmations
     42 
     43 extern	vec3_t	region_mins, region_maxs;
     44 extern	qboolean	region_active;
     45 
     46 void 	Map_LoadFile (char *filename);
     47 void 	Map_SaveFile (char *filename, qboolean use_region);
     48 void	Map_New (void);
     49 void	Map_BuildBrushData(void);
     50 
     51 void	Map_RegionOff (void);
     52 void	Map_RegionXY (void);
     53 void	Map_RegionTallBrush (void);
     54 void	Map_RegionBrush (void);
     55 void	Map_RegionSelectedBrushes (void);
     56 qboolean Map_IsBrushFiltered (brush_t *b);
     57 
     58 void Map_SaveSelected(CMemFile* pMemFile, CMemFile* pPatchFile = NULL);
     59 void Map_ImportBuffer (char* buf);