Map.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. // Map is a list of Entity objects
  2. extern id map_i;
  3. @interface Map : List
  4. {
  5. id currentEntity;
  6. id oldselection; // temp when loading a new map
  7. float minz, maxz;
  8. }
  9. - newMap;
  10. - writeStats;
  11. - readMapFile: (char *)fname;
  12. - writeMapFile: (char *)fname useRegion: (BOOL)reg;
  13. - entityConnect: (vec3_t)p1 : (vec3_t)p2;
  14. - selectRay: (vec3_t)p1 : (vec3_t)p2 : (BOOL)ef;
  15. - grabRay: (vec3_t)p1 : (vec3_t)p2;
  16. - setTextureRay: (vec3_t)p1 : (vec3_t)p2 : (BOOL)allsides;
  17. - getTextureRay: (vec3_t)p1 : (vec3_t)p2;
  18. - currentEntity;
  19. - setCurrentEntity: ent;
  20. - (float)currentMinZ;
  21. - setCurrentMinZ: (float)m;
  22. - (float)currentMaxZ;
  23. - setCurrentMaxZ: (float)m;
  24. - (int)numSelected;
  25. - selectedBrush; // returns the first selected brush
  26. //
  27. // operations on current selection
  28. //
  29. - makeSelectedPerform: (SEL)sel;
  30. - makeUnselectedPerform: (SEL)sel;
  31. - makeAllPerform: (SEL)sel;
  32. - makeGlobalPerform: (SEL)sel; // in and out of region
  33. - cloneSelection: sender;
  34. - makeEntity: sender;
  35. - subtractSelection: sender;
  36. - selectCompletelyInside: sender;
  37. - selectPartiallyInside: sender;
  38. - tallBrush: sender;
  39. - shortBrush: sender;
  40. - rotate_x: sender;
  41. - rotate_y: sender;
  42. - rotate_z: sender;
  43. - flip_x: sender;
  44. - flip_y: sender;
  45. - flip_z: sender;
  46. - selectCompleteEntity: sender;
  47. @end