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; |