author | koda |
Sat, 10 Jul 2010 18:42:47 +0200 | |
changeset 3635 | 38d3e31556d3 |
parent 3629 | 86212d2b116a |
child 3638 | 33ee433749ba |
permissions | -rw-r--r-- |
3547 | 1 |
// |
2 |
// overlayViewController.h |
|
3 |
// HedgewarsMobile |
|
4 |
// |
|
5 |
// Created by Vittorio on 16/03/10. |
|
6 |
// Copyright 2010 __MyCompanyName__. All rights reserved. |
|
7 |
// |
|
8 |
||
9 |
#import <UIKit/UIKit.h> |
|
10 |
||
11 |
@class PopoverMenuViewController; |
|
12 |
||
13 |
@interface OverlayViewController : UIViewController { |
|
14 |
NSTimer *dimTimer; |
|
15 |
||
16 |
// used only on the ipad |
|
17 |
UIPopoverController *popoverController; |
|
18 |
||
19 |
PopoverMenuViewController *popupMenu; |
|
20 |
BOOL isPopoverVisible; |
|
21 |
||
3635
38d3e31556d3
improvements to touch interface (tap to select weap, don't move camera for spourious taps, ask for confirmation when using click-weapons)
koda
parents:
3629
diff
changeset
|
22 |
// touch section |
38d3e31556d3
improvements to touch interface (tap to select weap, don't move camera for spourious taps, ask for confirmation when using click-weapons)
koda
parents:
3629
diff
changeset
|
23 |
BOOL isSingleClick; |
3547 | 24 |
CGFloat initialDistanceForPinching; |
3635
38d3e31556d3
improvements to touch interface (tap to select weap, don't move camera for spourious taps, ask for confirmation when using click-weapons)
koda
parents:
3629
diff
changeset
|
25 |
CGPoint pointWhereToClick; |
3547 | 26 |
} |
27 |
||
28 |
@property (nonatomic,retain) id popoverController; |
|
29 |
@property (nonatomic,retain) PopoverMenuViewController *popupMenu; |
|
30 |
||
3629
86212d2b116a
redo spinning wheel, redo fix for detail selection, redo ammo quantity and name in ammomenu
koda
parents:
3551
diff
changeset
|
31 |
BOOL isGameRunning; |
3547 | 32 |
|
33 |
-(void) touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event; |
|
34 |
-(void) touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event; |
|
35 |
-(void) touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event; |
|
36 |
-(void) touchesCancelled:(NSSet *)touches withEvent:(UIEvent *)event; |
|
37 |
||
38 |
-(IBAction) buttonReleased:(id) sender; |
|
39 |
-(IBAction) buttonPressed:(id) sender; |
|
40 |
||
41 |
-(void) showPopover; |
|
42 |
-(void) dismissPopover; |
|
43 |
-(void) dimOverlay; |
|
44 |
-(void) activateOverlay; |
|
45 |
-(void) chatAppear; |
|
46 |
-(void) chatDisappear; |
|
47 |
||
48 |
@end |