author | tiyuri@gmail.com |
Thu, 02 Sep 2010 17:30:38 +0100 | |
changeset 3809 | 4fe006966370 |
parent 3792 | dd9345e74b66 |
child 3829 | 81db3c85784b |
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; |
3792 | 13 |
@class HelpPageViewController; |
3547 | 14 |
|
15 |
@interface OverlayViewController : UIViewController { |
|
3647
0d0df215fb52
making chat work... (keyboard support is heavily broken in sdl upstream)
koda
parents:
3646
diff
changeset
|
16 |
// the timer that dims the overlay |
3547 | 17 |
NSTimer *dimTimer; |
18 |
||
3647
0d0df215fb52
making chat work... (keyboard support is heavily broken in sdl upstream)
koda
parents:
3646
diff
changeset
|
19 |
// the in-game menu |
0d0df215fb52
making chat work... (keyboard support is heavily broken in sdl upstream)
koda
parents:
3646
diff
changeset
|
20 |
UIPopoverController *popoverController; // iPad only |
0d0df215fb52
making chat work... (keyboard support is heavily broken in sdl upstream)
koda
parents:
3646
diff
changeset
|
21 |
InGameMenuViewController *popupMenu; |
3547 | 22 |
BOOL isPopoverVisible; |
3703
12d17c6e8855
halfway-through finishing the frontend with new graphics by Tiy + initial 'About' page set up
koda
parents:
3661
diff
changeset
|
23 |
|
3791
98072b3871c1
help page for ingame, some other fixes here and there
koda
parents:
3737
diff
changeset
|
24 |
// the help menu |
3792 | 25 |
HelpPageViewController *helpPage; |
3791
98072b3871c1
help page for ingame, some other fixes here and there
koda
parents:
3737
diff
changeset
|
26 |
|
3647
0d0df215fb52
making chat work... (keyboard support is heavily broken in sdl upstream)
koda
parents:
3646
diff
changeset
|
27 |
// ths touch section |
3547 | 28 |
CGFloat initialDistanceForPinching; |
3651 | 29 |
CGPoint startingPoint; |
3650 | 30 |
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
|
31 |
BOOL isAttacking; |
3703
12d17c6e8855
halfway-through finishing the frontend with new graphics by Tiy + initial 'About' page set up
koda
parents:
3661
diff
changeset
|
32 |
|
3647
0d0df215fb52
making chat work... (keyboard support is heavily broken in sdl upstream)
koda
parents:
3646
diff
changeset
|
33 |
// the sdl window underneath |
0d0df215fb52
making chat work... (keyboard support is heavily broken in sdl upstream)
koda
parents:
3646
diff
changeset
|
34 |
SDL_Window *sdlwindow; |
3547 | 35 |
} |
36 |
||
37 |
@property (nonatomic,retain) id popoverController; |
|
3647
0d0df215fb52
making chat work... (keyboard support is heavily broken in sdl upstream)
koda
parents:
3646
diff
changeset
|
38 |
@property (nonatomic,retain) InGameMenuViewController *popupMenu; |
3792 | 39 |
@property (nonatomic,retain) HelpPageViewController *helpPage; |
3547 | 40 |
|
41 |
-(void) touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event; |
|
42 |
-(void) touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event; |
|
43 |
-(void) touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event; |
|
44 |
-(void) touchesCancelled:(NSSet *)touches withEvent:(UIEvent *)event; |
|
45 |
||
46 |
-(IBAction) buttonReleased:(id) sender; |
|
47 |
-(IBAction) buttonPressed:(id) sender; |
|
48 |
||
49 |
-(void) showPopover; |
|
50 |
-(void) dismissPopover; |
|
51 |
-(void) dimOverlay; |
|
52 |
-(void) activateOverlay; |
|
53 |
||
54 |
@end |
|
3661 | 55 |
|
3791
98072b3871c1
help page for ingame, some other fixes here and there
koda
parents:
3737
diff
changeset
|
56 |
// understands when the loading screen is done |
3661 | 57 |
BOOL isGameRunning; |
3791
98072b3871c1
help page for ingame, some other fixes here and there
koda
parents:
3737
diff
changeset
|
58 |
// cache the grenade time |
98072b3871c1
help page for ingame, some other fixes here and there
koda
parents:
3737
diff
changeset
|
59 |
NSInteger cachedGrenadeTime; |