project_files/HedgewarsMobile/Classes/OverlayViewController.h
changeset 3933 1a873262f5dd
parent 3922 44804043b691
child 3935 5ca27a0e9a63
equal deleted inserted replaced
3930:8b00b4f93242 3933:1a873262f5dd
    22 #import <UIKit/UIKit.h>
    22 #import <UIKit/UIKit.h>
    23 #import "SDL_sysvideo.h"
    23 #import "SDL_sysvideo.h"
    24 
    24 
    25 @class InGameMenuViewController;
    25 @class InGameMenuViewController;
    26 @class HelpPageViewController;
    26 @class HelpPageViewController;
       
    27 @class AmmoMenuViewController;
    27 
    28 
    28 @interface OverlayViewController : UIViewController {
    29 @interface OverlayViewController : UIViewController {
    29     // the timer that dims the overlay
    30     // the timer that dims the overlay
    30     NSTimer *dimTimer;
    31     NSTimer *dimTimer;
    31 
    32 
    35     BOOL isPopoverVisible;
    36     BOOL isPopoverVisible;
    36 
    37 
    37     // the help menu
    38     // the help menu
    38     HelpPageViewController *helpPage;
    39     HelpPageViewController *helpPage;
    39 
    40 
       
    41     // the objc ammomenu
       
    42     AmmoMenuViewController *amvc;
       
    43     
    40     // ths touch section
    44     // ths touch section
    41     CGFloat initialDistanceForPinching;
    45     CGFloat initialDistanceForPinching;
    42     CGPoint startingPoint;
    46     CGPoint startingPoint;
    43     BOOL isSegmentVisible;
    47     BOOL isSegmentVisible;
    44     BOOL isAttacking;
    48     BOOL isAttacking;
    45 }
    49 }
    46 
    50 
    47 @property (nonatomic,retain) id popoverController;
    51 @property (nonatomic,retain) id popoverController;
    48 @property (nonatomic,retain) InGameMenuViewController *popupMenu;
    52 @property (nonatomic,retain) InGameMenuViewController *popupMenu;
    49 @property (nonatomic,retain) HelpPageViewController *helpPage;
    53 @property (nonatomic,retain) HelpPageViewController *helpPage;
       
    54 @property (nonatomic,retain) AmmoMenuViewController *amvc;
    50 
    55 
    51 -(void) touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event;
    56 -(void) touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event;
    52 -(void) touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event;
    57 -(void) touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event;
    53 -(void) touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event;
    58 -(void) touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event;
    54 -(void) touchesCancelled:(NSSet *)touches withEvent:(UIEvent *)event;
    59 -(void) touchesCancelled:(NSSet *)touches withEvent:(UIEvent *)event;