map.h 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. /*
  2. ===========================================================================
  3. Copyright (C) 1997-2006 Id Software, Inc.
  4. This file is part of Quake 2 Tools source code.
  5. Quake 2 Tools 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 2 Tools 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 Quake 2 Tools source code; 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 face_t *selected_face;
  24. extern brush_t *selected_face_brush;
  25. extern brush_t filtered_brushes; // brushes that have been filtered or regioned
  26. extern entity_t entities;
  27. extern entity_t *world_entity; // the world entity is NOT included in
  28. // the entities chain
  29. extern qboolean modified; // for quit confirmations
  30. extern vec3_t region_mins, region_maxs;
  31. extern qboolean region_active;
  32. void Map_LoadFile (char *filename);
  33. void Map_SaveFile (char *filename, qboolean use_region);
  34. void Map_New (void);
  35. void Map_BuildBrushData(void);
  36. void Map_RegionOff (void);
  37. void Map_RegionXY (void);
  38. void Map_RegionTallBrush (void);
  39. void Map_RegionBrush (void);
  40. void Map_RegionSelectedBrushes (void);
  41. qboolean Map_IsBrushFiltered (brush_t *b);