MAP.H 2.1 KB

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