diff options
Diffstat (limited to 'Classes/GameMode.h')
| -rw-r--r-- | Classes/GameMode.h | 5 |
1 files changed, 4 insertions, 1 deletions
| diff --git a/Classes/GameMode.h b/Classes/GameMode.h index 2fcf275..e208d49 100644 --- a/Classes/GameMode.h +++ b/Classes/GameMode.h | |||
| @@ -8,6 +8,8 @@ | |||
| 8 | 8 | ||
| 9 | #import "CCLayer.h" | 9 | #import "CCLayer.h" |
| 10 | #import "Cart.h" | 10 | #import "Cart.h" |
| 11 | #import "FallingObjectFactory.h" | ||
| 12 | #import "GameModeInfo.h" | ||
| 11 | #import <CoreMotion/CoreMotion.h> | 13 | #import <CoreMotion/CoreMotion.h> |
| 12 | 14 | ||
| 13 | #define GAME_SCENE 436 | 15 | #define GAME_SCENE 436 |
| @@ -19,6 +21,7 @@ | |||
| 19 | int lives; | 21 | int lives; |
| 20 | int pointMultiplier; | 22 | int pointMultiplier; |
| 21 | Cart* cart; | 23 | Cart* cart; |
| 24 | FallingObjectFactory* objectFactory; | ||
| 22 | 25 | ||
| 23 | CCLayerColor* shadedLayer; | 26 | CCLayerColor* shadedLayer; |
| 24 | CCLayer* pauseLayer; | 27 | CCLayer* pauseLayer; |
| @@ -40,7 +43,6 @@ | |||
| 40 | @property (nonatomic,assign) int lives; | 43 | @property (nonatomic,assign) int lives; |
| 41 | @property (nonatomic,assign) int pointMultiplier; | 44 | @property (nonatomic,assign) int pointMultiplier; |
| 42 | @property (readonly) BOOL isPaused; | 45 | @property (readonly) BOOL isPaused; |
| 43 | + (CCScene*)scene; | ||
| 44 | - (void)tick:(ccTime)dt; | 46 | - (void)tick:(ccTime)dt; |
| 45 | - (BOOL)canPause; | 47 | - (BOOL)canPause; |
| 46 | - (void)pause; | 48 | - (void)pause; |
| @@ -48,6 +50,7 @@ | |||
| 48 | - (void)mainmenu; | 50 | - (void)mainmenu; |
| 49 | - (void)scheduleDelayedAction:(void(^)(void))delayedAction delay:(float)delay; | 51 | - (void)scheduleDelayedAction:(void(^)(void))delayedAction delay:(float)delay; |
| 50 | - (void)runDelayedAction; | 52 | - (void)runDelayedAction; |
| 53 | + (GameModeInfo*)info; | ||
| 51 | - (void)setPitch:(double)m_pitch; | 54 | - (void)setPitch:(double)m_pitch; |
| 52 | 55 | ||
| 53 | @end | 56 | @end |
