blob: e82ad1049acd28ef5d15b2eff9355ee20eb4c0f1 (
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
|
//
// 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 <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;
}
@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;
@end
|