/* theBrain */

#import <Cocoa/Cocoa.h>

@interface theBrain : NSObject
{
    IBOutlet id matrixMagic;
    IBOutlet id matrixMagicNames;
	
	IBOutlet id matrixLevels;
    IBOutlet id matrixLevelsNames;
	
	IBOutlet id fieldText;
	IBOutlet id browserText;
	
	NSMutableArray *textStrings;
	
	NSMutableData *rom;
	NSMutableString *path;
	
	BOOL canSave;
}

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

- (void)setMagic;
- (void)setMagicNames;

- (void)setLevels;
- (void)setLevelsNames;

- (void)saveMagic;
- (void)saveLevels;

- (void)setTextStrings;
- (IBAction)showText:(id)sender;
- (IBAction)confirmText:(id)sender;
- (void)saveText;

- (unsigned char)toASCII:(unsigned char)ctc;
- (unsigned char)fromASCII:(unsigned char)ctc;

@end
