//
//  ShakeAndBreakViewController.h
//  ShakeAndBreak
//
//  Created by Robert Górczyński on 11-07-29.
//

#import <UIKit/UIKit.h>
#import <CoreMotion/CoreMotion.h> 
#import <AudioToolbox/AudioToolbox.h> 

#define kAccelerationThreshold       1.7
#define kUpdateInterval              (1.0f/10.0f) 

@interface ShakeAndBreakViewController : UIViewController {
    UIImageView *imageView; 
	
    CMMotionManager *motionManager; 
    BOOL brokenScreenShowing; 
    SystemSoundID soundID; 
    UIImage *fixed; 
    UIImage *broken; 	
}
@property (nonatomic, retain) CMMotionManager *motionManager; 
@property (nonatomic, retain) IBOutlet UIImageView *imageView; 
@property (nonatomic, retain) UIImage *fixed; 
@property (nonatomic, retain) UIImage *broken; 
@end

