diff options
author | Starla Insigna <starla4444@gmail.com> | 2011-08-23 12:55:57 -0400 |
---|---|---|
committer | Starla Insigna <starla4444@gmail.com> | 2011-08-23 12:55:57 -0400 |
commit | b4c612674d28bf7b385bd9fe41b108df8d97b474 (patch) | |
tree | be0326b097430746a00742f502fb461af97645b7 /Classes/GameMode.h | |
parent | 6b7e5a28aa9c52c5b689860a7c51de04ee5489c1 (diff) | |
download | cartcollect-b4c612674d28bf7b385bd9fe41b108df8d97b474.tar.gz cartcollect-b4c612674d28bf7b385bd9fe41b108df8d97b474.tar.bz2 cartcollect-b4c612674d28bf7b385bd9fe41b108df8d97b474.zip |
Added pause checks to GameMode
Now GameMode actually checks if it's already paused before pausing. Fixes #210
Diffstat (limited to 'Classes/GameMode.h')
-rw-r--r-- | Classes/GameMode.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Classes/GameMode.h b/Classes/GameMode.h index 370550c..890106e 100644 --- a/Classes/GameMode.h +++ b/Classes/GameMode.h | |||
@@ -25,11 +25,14 @@ | |||
25 | CCLabelBMFont* livesLabel; | 25 | CCLabelBMFont* livesLabel; |
26 | 26 | ||
27 | void (^delayedAction)(void); | 27 | void (^delayedAction)(void); |
28 | |||
29 | BOOL isPaused; | ||
28 | } | 30 | } |
29 | 31 | ||
30 | @property (readonly) Cart* cart; | 32 | @property (readonly) Cart* cart; |
31 | @property (nonatomic,assign) int score; | 33 | @property (nonatomic,assign) int score; |
32 | @property (nonatomic,assign) int lives; | 34 | @property (nonatomic,assign) int lives; |
35 | @property (readonly) BOOL isPaused; | ||
33 | + (CCScene*)scene; | 36 | + (CCScene*)scene; |
34 | - (void)tick:(ccTime)dt; | 37 | - (void)tick:(ccTime)dt; |
35 | - (BOOL)canPause; | 38 | - (BOOL)canPause; |