project_files/HedgewarsMobile/Classes/OverlayViewController.h
changeset 3791 98072b3871c1
parent 3737 2ba6ac8a114b
child 3792 dd9345e74b66
equal deleted inserted replaced
3790:8f48b54f42ce 3791:98072b3871c1
     8 
     8 
     9 #import <UIKit/UIKit.h>
     9 #import <UIKit/UIKit.h>
    10 #import "SDL_sysvideo.h"
    10 #import "SDL_sysvideo.h"
    11 
    11 
    12 @class InGameMenuViewController;
    12 @class InGameMenuViewController;
       
    13 @class HelpPageLobbyViewController;
    13 
    14 
    14 @interface OverlayViewController : UIViewController {
    15 @interface OverlayViewController : UIViewController {
    15     // the timer that dims the overlay
    16     // the timer that dims the overlay
    16     NSTimer *dimTimer;
    17     NSTimer *dimTimer;
    17 
    18 
    18     // the in-game menu
    19     // the in-game menu
    19     UIPopoverController *popoverController; // iPad only
    20     UIPopoverController *popoverController; // iPad only
    20     InGameMenuViewController *popupMenu;
    21     InGameMenuViewController *popupMenu;
    21     BOOL isPopoverVisible;
    22     BOOL isPopoverVisible;
       
    23 
       
    24     // the help menu
       
    25     HelpPageLobbyViewController *helpPage;
    22 
    26 
    23     // ths touch section
    27     // ths touch section
    24     CGFloat initialDistanceForPinching;
    28     CGFloat initialDistanceForPinching;
    25     CGPoint startingPoint;
    29     CGPoint startingPoint;
    26     BOOL isSegmentVisible;
    30     BOOL isSegmentVisible;
    30     SDL_Window *sdlwindow;
    34     SDL_Window *sdlwindow;
    31 }
    35 }
    32 
    36 
    33 @property (nonatomic,retain) id popoverController;
    37 @property (nonatomic,retain) id popoverController;
    34 @property (nonatomic,retain) InGameMenuViewController *popupMenu;
    38 @property (nonatomic,retain) InGameMenuViewController *popupMenu;
       
    39 @property (nonatomic,retain) HelpPageLobbyViewController *helpPage;
    35 
    40 
    36 -(void) touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event;
    41 -(void) touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event;
    37 -(void) touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event;
    42 -(void) touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event;
    38 -(void) touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event;
    43 -(void) touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event;
    39 -(void) touchesCancelled:(NSSet *)touches withEvent:(UIEvent *)event;
    44 -(void) touchesCancelled:(NSSet *)touches withEvent:(UIEvent *)event;
    46 -(void) dimOverlay;
    51 -(void) dimOverlay;
    47 -(void) activateOverlay;
    52 -(void) activateOverlay;
    48 
    53 
    49 @end
    54 @end
    50 
    55 
       
    56 // understands when the loading screen is done
    51 BOOL isGameRunning;
    57 BOOL isGameRunning;
    52 
    58 // cache the grenade time
       
    59 NSInteger cachedGrenadeTime;