project_files/HedgewarsMobile/Classes/OverlayViewController.h
author koda
Fri, 16 Jul 2010 00:18:03 +0200
changeset 3646 a3271158d93b
parent 3639 b5cdbcc89b61
child 3647 0d0df215fb52
permissions -rw-r--r--
don't make the confirmation button disappear, present an alert if game doesn't start

//
//  overlayViewController.h
//  HedgewarsMobile
//
//  Created by Vittorio on 16/03/10.
//  Copyright 2010 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>

@class PopoverMenuViewController;

@interface OverlayViewController : UIViewController {
    NSTimer *dimTimer;

    // used only on the ipad
    UIPopoverController *popoverController;

    PopoverMenuViewController *popupMenu;
    BOOL isPopoverVisible;
    
    CGFloat initialDistanceForPinching;
}

@property (nonatomic,retain) id popoverController;
@property (nonatomic,retain) PopoverMenuViewController *popupMenu;

BOOL isGameRunning;

-(void) touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event;
-(void) touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event;
-(void) touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event;
-(void) touchesCancelled:(NSSet *)touches withEvent:(UIEvent *)event;

-(IBAction) buttonReleased:(id) sender;
-(IBAction) buttonPressed:(id) sender;

-(void) showPopover;
-(void) dismissPopover;
-(void) dimOverlay;
-(void) activateOverlay;
-(void) chatAppear;
-(void) chatDisappear;

@end