-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJazzBallViewController.h
59 lines (47 loc) · 1.53 KB
/
JazzBallViewController.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
//
// JazzBallViewController.h
// JazzBall
//
// Created by Julian on 4/1/09.
// Copyright __MyCompanyName__ 2009. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "JazzBallView.h"
#import "GADBannerViewDelegate.h"
#define UDHasReadInstructionsKey @"seenInstrs"
@class GameManager, LevelSummaryView, GADBannerView;
@interface JazzBallViewController : UIViewController<UIActionSheetDelegate, GADBannerViewDelegate> {
GameManager* gameMan;
IBOutlet JazzBallView* gameView;
IBOutlet LevelSummaryView* levelSummaryView;
IBOutlet UILabel* lblPercentComplete;
IBOutlet UILabel* lblScore;
IBOutlet UILabel* lblLives;
IBOutlet UILabel* lblBonus;
IBOutlet UILabel* lblLeveLintro;
UIColor* oneLifeColor;
bool didStartByViewingInstructions;
BOOL showingGameSubmenu;
GADBannerView* adView;
}
@property (nonatomic, readonly) JazzBallView* gameView;
@property (nonatomic, readonly) UILabel* percentCompleteLabel;
@property (nonatomic, readonly) LevelSummaryView* levelSummaryView;
@property (nonatomic, readonly) BOOL isShowingGameSubmenu;
-(void) initViewsAndShit;
-(void) startGame;
-(void) startGameWithContext:(NSDictionary*)context;
-(void) pauseGame;
-(BOOL) resumeGame;
-(void) saveGame;
-(void) loadGame;
-(void) endLevel;
-(void) beginLevel;
-(void) setScore:(unsigned long)score;
-(void) setLives:(unsigned short)lives;
-(void) setPercentComplete:(short)pct;
-(void) updateBonusTimer:(short)bonus;
-(void) gameTileChanged:(id)sender;
-(void) showSubmenuActionSheet;
+(NSString*) saveFilePath;
@end