project_files/HedgewarsMobile/Classes/OverlayViewController.h
changeset 6624 e049b5bb0ad1
parent 6247 6dfad55fd71c
child 6700 e04da46ee43c
equal deleted inserted replaced
6623:6bf169f1e97c 6624:e049b5bb0ad1
    21 
    21 
    22 #import <UIKit/UIKit.h>
    22 #import <UIKit/UIKit.h>
    23 
    23 
    24 @class InGameMenuViewController;
    24 @class InGameMenuViewController;
    25 @class HelpPageViewController;
    25 @class HelpPageViewController;
    26 @class AmmoMenuViewController;
       
    27 
    26 
    28 @interface OverlayViewController : UIViewController {
    27 @interface OverlayViewController : UIViewController {
    29     // the timer that dims the overlay
    28     // the timer that dims the overlay
    30     NSTimer *dimTimer;
    29     NSTimer *dimTimer;
    31 
    30 
    34     InGameMenuViewController *popupMenu;
    33     InGameMenuViewController *popupMenu;
    35     BOOL isPopoverVisible;
    34     BOOL isPopoverVisible;
    36 
    35 
    37     // the help menu
    36     // the help menu
    38     HelpPageViewController *helpPage;
    37     HelpPageViewController *helpPage;
    39 
       
    40     // the objc ammomenu
       
    41     AmmoMenuViewController *amvc;
       
    42     
    38     
    43     // ths touch section
    39     // ths touch section
    44     CGFloat initialDistanceForPinching;
    40     CGFloat initialDistanceForPinching;
    45     CGPoint startingPoint;
    41     CGPoint startingPoint;
    46     BOOL isAttacking;
    42     BOOL isAttacking;
    47     
       
    48     // dual head support
       
    49     NSInteger initialScreenCount;
       
    50 
    43 
    51     // various other widgets
    44     // various other widgets
    52     UIActivityIndicatorView *loadingIndicator;
    45     UIActivityIndicatorView *loadingIndicator;
    53     UIButton *confirmButton;
    46     UIButton *confirmButton;
    54     UISegmentedControl *grenadeTimeSegment;
    47     UISegmentedControl *grenadeTimeSegment;
    55 }
    48 }
    56 
    49 
    57 @property (nonatomic,retain) id popoverController;
    50 @property (nonatomic,retain) id popoverController;
    58 @property (nonatomic,retain) InGameMenuViewController *popupMenu;
    51 @property (nonatomic,retain) InGameMenuViewController *popupMenu;
    59 @property (nonatomic,retain) HelpPageViewController *helpPage;
    52 @property (nonatomic,retain) HelpPageViewController *helpPage;
    60 @property (nonatomic,retain) AmmoMenuViewController *amvc;
       
    61 @property (nonatomic,retain) UIActivityIndicatorView *loadingIndicator;
    53 @property (nonatomic,retain) UIActivityIndicatorView *loadingIndicator;
    62 @property (nonatomic,retain) UIButton *confirmButton;
    54 @property (nonatomic,retain) UIButton *confirmButton;
    63 @property (nonatomic,retain) UISegmentedControl *grenadeTimeSegment;
    55 @property (nonatomic,retain) UISegmentedControl *grenadeTimeSegment;
    64 
       
    65 @property (assign) NSInteger initialScreenCount;
       
    66 
       
    67 
    56 
    68 +(OverlayViewController *)mainOverlay;
    57 +(OverlayViewController *)mainOverlay;
    69 
    58 
    70 -(void) touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event;
    59 -(void) touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event;
    71 -(void) touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event;
    60 -(void) touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event;