/* theBrain */

#import <Cocoa/Cocoa.h>

@interface theBrain : NSObject
{
	IBOutlet id groups;
    IBOutlet id map;
    IBOutlet id tools;
	IBOutlet id scrollView;
	
	NSMutableData *romData;
	NSMutableData *regionData;
	NSMutableString *currentTool;
	NSMutableString *path;
	
	unsigned short offSet;
	unsigned short offSetPalaces;
	unsigned short maxPalaces;
	unsigned short max;
	unsigned short g;
	unsigned char b[1024];
	
	int editState;
}

- (IBAction)loadWest:(id)sender;
- (IBAction)loadEast:(id)sender;
- (IBAction)loadDM:(id)sender;
- (void)loadMap;

- (IBAction)open:(id)sender;
- (IBAction)save:(id)sender;
- (void)palacePointers;

- (IBAction)clickMap:(id)sender;
- (IBAction)changeTool:(id)sender;

- (void)calc;

@end

@interface NSMatrix (NSMatrixPlus)

- (BOOL)acceptsFirstMouse:(NSEvent *)ev;

@end
