author | koda |
Fri, 13 Aug 2010 02:13:18 +0200 | |
changeset 3737 | 2ba6ac8a114b |
parent 3703 | 12d17c6e8855 |
child 3791 | 98072b3871c1 |
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> |
|
3647
0d0df215fb52
making chat work... (keyboard support is heavily broken in sdl upstream)
koda
parents:
3646
diff
changeset
|
10 |
#import "SDL_sysvideo.h" |
3547 | 11 |
|
3647
0d0df215fb52
making chat work... (keyboard support is heavily broken in sdl upstream)
koda
parents:
3646
diff
changeset
|
12 |
@class InGameMenuViewController; |
3547 | 13 |
|
14 |
@interface OverlayViewController : UIViewController { |
|
3647
0d0df215fb52
making chat work... (keyboard support is heavily broken in sdl upstream)
koda
parents:
3646
diff
changeset
|
15 |
// the timer that dims the overlay |
3547 | 16 |
NSTimer *dimTimer; |
17 |
||
3647
0d0df215fb52
making chat work... (keyboard support is heavily broken in sdl upstream)
koda
parents:
3646
diff
changeset
|
18 |
// the in-game menu |
0d0df215fb52
making chat work... (keyboard support is heavily broken in sdl upstream)
koda
parents:
3646
diff
changeset
|
19 |
UIPopoverController *popoverController; // iPad only |
0d0df215fb52
making chat work... (keyboard support is heavily broken in sdl upstream)
koda
parents:
3646
diff
changeset
|
20 |
InGameMenuViewController *popupMenu; |
3547 | 21 |
BOOL isPopoverVisible; |
3703
12d17c6e8855
halfway-through finishing the frontend with new graphics by Tiy + initial 'About' page set up
koda
parents:
3661
diff
changeset
|
22 |
|
3647
0d0df215fb52
making chat work... (keyboard support is heavily broken in sdl upstream)
koda
parents:
3646
diff
changeset
|
23 |
// ths touch section |
3547 | 24 |
CGFloat initialDistanceForPinching; |
3651 | 25 |
CGPoint startingPoint; |
3650 | 26 |
BOOL isSegmentVisible; |
3737
2ba6ac8a114b
reworked the initialization functions, now it should be safe to update and no more need of spinning wheel at first launch
koda
parents:
3703
diff
changeset
|
27 |
BOOL isAttacking; |
3703
12d17c6e8855
halfway-through finishing the frontend with new graphics by Tiy + initial 'About' page set up
koda
parents:
3661
diff
changeset
|
28 |
|
3647
0d0df215fb52
making chat work... (keyboard support is heavily broken in sdl upstream)
koda
parents:
3646
diff
changeset
|
29 |
// the sdl window underneath |
0d0df215fb52
making chat work... (keyboard support is heavily broken in sdl upstream)
koda
parents:
3646
diff
changeset
|
30 |
SDL_Window *sdlwindow; |
3547 | 31 |
} |
32 |
||
33 |
@property (nonatomic,retain) id popoverController; |
|
3647
0d0df215fb52
making chat work... (keyboard support is heavily broken in sdl upstream)
koda
parents:
3646
diff
changeset
|
34 |
@property (nonatomic,retain) InGameMenuViewController *popupMenu; |
3547 | 35 |
|
36 |
-(void) touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event; |
|
37 |
-(void) touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event; |
|
38 |
-(void) touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event; |
|
39 |
-(void) touchesCancelled:(NSSet *)touches withEvent:(UIEvent *)event; |
|
40 |
||
41 |
-(IBAction) buttonReleased:(id) sender; |
|
42 |
-(IBAction) buttonPressed:(id) sender; |
|
43 |
||
44 |
-(void) showPopover; |
|
45 |
-(void) dismissPopover; |
|
46 |
-(void) dimOverlay; |
|
47 |
-(void) activateOverlay; |
|
48 |
||
49 |
@end |
|
3661 | 50 |
|
51 |
BOOL isGameRunning; |
|
52 |