project_files/HedgewarsMobile/Classes/OverlayViewController.h
changeset 3647 0d0df215fb52
parent 3646 a3271158d93b
child 3650 ec90e573f47a
equal deleted inserted replaced
3646:a3271158d93b 3647:0d0df215fb52
     5 //  Created by Vittorio on 16/03/10.
     5 //  Created by Vittorio on 16/03/10.
     6 //  Copyright 2010 __MyCompanyName__. All rights reserved.
     6 //  Copyright 2010 __MyCompanyName__. All rights reserved.
     7 //
     7 //
     8 
     8 
     9 #import <UIKit/UIKit.h>
     9 #import <UIKit/UIKit.h>
       
    10 #import "SDL_sysvideo.h"
    10 
    11 
    11 @class PopoverMenuViewController;
    12 @class InGameMenuViewController;
    12 
    13 
    13 @interface OverlayViewController : UIViewController {
    14 @interface OverlayViewController : UIViewController {
       
    15     // the timer that dims the overlay
    14     NSTimer *dimTimer;
    16     NSTimer *dimTimer;
    15 
    17 
    16     // used only on the ipad
    18     // the in-game menu
    17     UIPopoverController *popoverController;
    19     UIPopoverController *popoverController; // iPad only
    18 
    20     InGameMenuViewController *popupMenu;
    19     PopoverMenuViewController *popupMenu;
       
    20     BOOL isPopoverVisible;
    21     BOOL isPopoverVisible;
    21     
    22     
       
    23     // ths touch section
    22     CGFloat initialDistanceForPinching;
    24     CGFloat initialDistanceForPinching;
       
    25     
       
    26     // the sdl window underneath
       
    27     SDL_Window *sdlwindow;
    23 }
    28 }
    24 
    29 
    25 @property (nonatomic,retain) id popoverController;
    30 @property (nonatomic,retain) id popoverController;
    26 @property (nonatomic,retain) PopoverMenuViewController *popupMenu;
    31 @property (nonatomic,retain) InGameMenuViewController *popupMenu;
    27 
    32 
    28 BOOL isGameRunning;
    33 BOOL isGameRunning;
    29 
    34 
    30 -(void) touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event;
    35 -(void) touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event;
    31 -(void) touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event;
    36 -(void) touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event;
    37 
    42 
    38 -(void) showPopover;
    43 -(void) showPopover;
    39 -(void) dismissPopover;
    44 -(void) dismissPopover;
    40 -(void) dimOverlay;
    45 -(void) dimOverlay;
    41 -(void) activateOverlay;
    46 -(void) activateOverlay;
    42 -(void) chatAppear;
       
    43 -(void) chatDisappear;
       
    44 
    47 
    45 @end
    48 @end