2001-02-09 01:52:44 +00:00
|
|
|
|
|
|
|
// Map is a list of Entity objects
|
|
|
|
|
|
|
|
extern id map_i;
|
|
|
|
|
|
|
|
@interface Map: NSMutableArray
|
|
|
|
{
|
|
|
|
id currentEntity;
|
|
|
|
id oldselection; // temp when loading a new map
|
|
|
|
float minz, maxz;
|
|
|
|
}
|
|
|
|
|
|
|
|
- newMap;
|
|
|
|
|
|
|
|
- writeStats;
|
|
|
|
|
2001-03-02 07:01:51 +00:00
|
|
|
- readMapFile: (NSString *) fname;
|
|
|
|
- writeMapFile: (NSString *) fname useRegion: (BOOL) reg;
|
2001-02-09 01:52:44 +00:00
|
|
|
|
2001-03-02 07:01:51 +00:00
|
|
|
- entityConnect: (vec3_t) p1 : (vec3_t) p2;
|
2001-02-09 01:52:44 +00:00
|
|
|
|
2001-03-02 07:01:51 +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;
|
2001-02-09 01:52:44 +00:00
|
|
|
|
|
|
|
- currentEntity;
|
|
|
|
- setCurrentEntity: ent;
|
|
|
|
|
2001-03-02 07:01:51 +00:00
|
|
|
- (float) currentMinZ;
|
|
|
|
- setCurrentMinZ: (float) m;
|
|
|
|
- (float) currentMaxZ;
|
|
|
|
- setCurrentMaxZ: (float) m;
|
2001-02-09 01:52:44 +00:00
|
|
|
|
2001-03-02 07:01:51 +00:00
|
|
|
- (int) numSelected;
|
2001-02-09 01:52:44 +00:00
|
|
|
- selectedBrush; // returns the first selected brush
|
|
|
|
|
|
|
|
//
|
|
|
|
// operations on current selection
|
|
|
|
//
|
2001-03-02 07:01:51 +00:00
|
|
|
- makeSelectedPerform: (SEL) sel;
|
|
|
|
- makeUnselectedPerform: (SEL) sel;
|
|
|
|
- makeAllPerform: (SEL) sel;
|
|
|
|
- makeGlobalPerform: (SEL) sel; // in and out of region
|
2001-02-09 01:52:44 +00:00
|
|
|
|
|
|
|
- cloneSelection: sender;
|
|
|
|
|
|
|
|
- makeEntity: sender;
|
|
|
|
|
|
|
|
- subtractSelection: sender;
|
|
|
|
|
|
|
|
- selectCompletelyInside: sender;
|
|
|
|
- selectPartiallyInside: sender;
|
|
|
|
|
|
|
|
- tallBrush: sender;
|
|
|
|
- shortBrush: sender;
|
|
|
|
|
|
|
|
- rotate_x: sender;
|
|
|
|
- rotate_y: sender;
|
|
|
|
- rotate_z: sender;
|
|
|
|
|
|
|
|
- flip_x: sender;
|
|
|
|
- flip_y: sender;
|
|
|
|
- flip_z: sender;
|
|
|
|
|
|
|
|
- selectCompleteEntity: sender;
|
|
|
|
|
|
|
|
@end
|