project_files/HedgewarsMobile/Classes/OverlayViewController.h
author koda
Sat, 10 Jul 2010 18:42:47 +0200
changeset 3635 38d3e31556d3
parent 3629 86212d2b116a
child 3638 33ee433749ba
permissions -rw-r--r--
improvements to touch interface (tap to select weap, don't move camera for spourious taps, ask for confirmation when using click-weapons)

//
//  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;
    
    // touch section
    BOOL isSingleClick;
    CGFloat initialDistanceForPinching;
    CGPoint pointWhereToClick;
}

@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