
#import "PrefController.h"
#import "OverAllController.h"

@implementation PrefController

- awakeFromNib;
{
	[self radioActed:radio];
    return self;
}
- next:sender
{
	[myObserver next:self];
    return self;
}

- radioActed:sender
{
	if([[sender selectedCell]tag]){	//training
		[trainingB setEnabled:YES];
		[trainingRadio setEnabled:YES];
	}else{
		[trainingB setEnabled:NO];
		[trainingRadio setEnabled:NO];
	}
	[myObserver prefChanged];
    return self;
}

- soundSwActed:sender
{
	[myObserver prefChanged];
    return self;
}

- trainingRadioActed:sender
{
	[myObserver prefChanged];
    return self;
}
- (BOOL)mode;
{
	return [[radio selectedCell]tag]; //1=Training
}
- (BOOL)sound;
{
	return [soundSw state];
}
- (int)trainMode;
{
	return [[trainingRadio selectedCell]tag]; 
}


@end
