summary refs log tree commit diff stats
path: root/Classes/GameMode.h
blob: 2fcf275e2586acefc6107d477b444314cf90a724 (plain) (blame)
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
//
//  GameMode.h
//  Cart Collect
//
//  Created by Starla Insigna on 8/9/11.
//  Copyright 2011 Four Island. All rights reserved.
//

#import "CCLayer.h"
#import "Cart.h"
#import <CoreMotion/CoreMotion.h>

#define GAME_SCENE 436
#define GAME_LAYER 437

@interface GameMode : CCLayer <UIAlertViewDelegate, CartDelegate> {
    NSMutableSet* objects;
	int score;
	int lives;
    int pointMultiplier;
    Cart* cart;
    
    CCLayerColor* shadedLayer;
    CCLayer* pauseLayer;
    
    CCLabelBMFont* scoreLabel;
	CCLabelBMFont* livesLabel;
    
    void (^delayedAction)(void);
    
    BOOL isPaused;
    
    BOOL hasGyroscope;
    double pitch;
    CMMotionManager* motionManager;
}

@property (readonly) Cart* cart;
@property (nonatomic,assign) int score;
@property (nonatomic,assign) int lives;
@property (nonatomic,assign) int pointMultiplier;
@property (readonly) BOOL isPaused;
+ (CCScene*)scene;
- (void)tick:(ccTime)dt;
- (BOOL)canPause;
- (void)pause;
- (void)unpause;
- (void)mainmenu;
- (void)scheduleDelayedAction:(void(^)(void))delayedAction delay:(float)delay;
- (void)runDelayedAction;
- (void)setPitch:(double)m_pitch;

@end