quakeforge/tools/Forge/Bundles/MapEdit/Map.h

77 lines
1.3 KiB
C
Raw Normal View History

#ifndef Map_h
#define Map_h
#include <AppKit/AppKit.h>
#include "QF/mathlib.h"
// Map is a list of Entity objects
2010-09-11 10:06:04 +00:00
extern id map_i;
2010-09-11 23:14:08 +00:00
@interface Map:NSMutableArray
{
2010-09-11 10:06:04 +00:00
id currentEntity;
id oldselection; // temp when loading a new map
float minz, maxz;
}
2010-09-11 10:06:04 +00:00
-newMap;
2010-09-11 10:06:04 +00:00
-writeStats;
2010-09-11 10:06:04 +00:00
-readMapFile:(char *) fname;
2010-09-11 16:41:18 +00:00
-writeMapFile:(char *)fname useRegion:(BOOL) reg;
2010-09-11 10:06:04 +00:00
-entityConnect: (vec3_t) p1:(vec3_t) p2;
2010-09-11 10:06:04 +00:00
-selectRay: (vec3_t) p1: (vec3_t) p2:(BOOL) ef;
-grabRay: (vec3_t) p1:(vec3_t) p2;
-setTextureRay: (vec3_t) p1: (vec3_t) p2:(BOOL) allsides;
-getTextureRay: (vec3_t) p1:(vec3_t) p2;
2010-09-11 10:06:04 +00:00
-currentEntity;
-setCurrentEntity:ent;
2010-09-11 10:06:04 +00:00
-(float) currentMinZ;
-setCurrentMinZ:(float) m;
-(float) currentMaxZ;
-setCurrentMaxZ:(float) m;
2010-09-11 10:06:04 +00:00
-(int) numSelected;
-selectedBrush; // returns the first selected brush
//
// operations on current selection
//
2010-09-11 10:06:04 +00:00
-makeSelectedPerform:(SEL) sel;
-makeUnselectedPerform:(SEL) sel;
-makeAllPerform:(SEL) sel;
-makeGlobalPerform:(SEL) sel; // in and out of region
2010-09-11 10:06:04 +00:00
-cloneSelection:sender;
2010-09-11 10:06:04 +00:00
-makeEntity:sender;
2010-09-11 10:06:04 +00:00
-subtractSelection:sender;
2010-09-11 10:06:04 +00:00
-selectCompletelyInside:sender;
-selectPartiallyInside:sender;
2010-09-11 10:06:04 +00:00
-tallBrush:sender;
-shortBrush:sender;
2010-09-11 10:06:04 +00:00
-rotate_x:sender;
-rotate_y:sender;
-rotate_z:sender;
2010-09-11 10:06:04 +00:00
-flip_x:sender;
-flip_y:sender;
-flip_z:sender;
2010-09-11 10:06:04 +00:00
-selectCompleteEntity:sender;
@end
2010-09-11 16:41:18 +00:00
2010-09-11 10:06:04 +00:00
#endif // Map_h