summary refs log tree commit diff stats
path: root/Classes/GameMode.h
blob: 370550c5096424562d281833e277e076097b915a (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
//
//  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);
}

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