summary refs log tree commit diff stats
path: root/Classes/GameMode.h
blob: 890106e1a5afa13cdd921890e98d27a77d5d2b51 (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
//
//  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"

#define GAME_SCENE 436
#define GAME_LAYER 437

@interface GameMode : CCLayer {
    NSMutableSet* objects;
	int score;
	int lives;
    Cart* cart;
    
    CCLayerColor* shadedLayer;
    CCLayer* pauseLayer;
    
    CCLabelBMFont* scoreLabel;
	CCLabelBMFont* livesLabel;
    
    void (^delayedAction)(void);
    
    BOOL isPaused;
}

@property (readonly) Cart* cart;
@property (nonatomic,assign) int score;
@property (nonatomic,assign) int lives;
@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;

@end