/* BWMainObject */

#import "Variables.h"

@interface BWMainObject : NSObject
{
    IBOutlet id objGameData;
    IBOutlet id objOverWorld;
	IBOutlet id objSideView;
	
	IBOutlet id windowOverworld;
	IBOutlet id windowSideView;
	
	IBOutlet id menuItemDisplay;
	IBOutlet id menuDisplayOverworld;
	IBOutlet id menuDisplaySideView;
	
	int mapScale;
	
	NSURL *path;
	NSMutableData *romData;
}

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

- (NSImage *)tileWithOffset:(int)os palette:(struct sCol *)pal;
- (NSImage *)graphicWithTiles:(NSArray *)tilesList type:(unsigned char)size;
- (NSImage *)emptyTile;
- (void)flipTile:(NSImage *)tile type:(int)flip;

- (NSColor *)colorForCode:(unsigned char)code;

- (NSString *)decToString:(unsigned int)dec;
- (NSString *)hexToString:(unsigned int)hex;

- (void)setScale:(int)scale;

@end
