summary refs log tree commit diff stats
path: root/Classes/GameMode.h
diff options
context:
space:
mode:
authorStarla Insigna <starla4444@gmail.com>2011-11-30 12:57:06 -0500
committerStarla Insigna <starla4444@gmail.com>2011-11-30 12:57:06 -0500
commit6e96fb2144718722208d22f892716b55548135e1 (patch)
tree4dd550de787dd370a13039c03969442f54a3a856 /Classes/GameMode.h
parentfd58a0cde1bb5473e39e6cb82d28113da84b9ae0 (diff)
downloadcartcollect-6e96fb2144718722208d22f892716b55548135e1.tar.gz
cartcollect-6e96fb2144718722208d22f892716b55548135e1.tar.bz2
cartcollect-6e96fb2144718722208d22f892716b55548135e1.zip
Created a game mode manager
There is now one location for information relating to each GameMode instead of several places, so that info can be easily updated and propagated to, for instance, GameModeSelectionLayer. GameModes can also be specified by an info instance each owns. There's also a way to get an ordered list of game modes.

The three star game mode unlocking system has also been added.

Closes #213
Diffstat (limited to 'Classes/GameMode.h')
-rw-r--r--Classes/GameMode.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/Classes/GameMode.h b/Classes/GameMode.h index cd0359d..cd41884 100644 --- a/Classes/GameMode.h +++ b/Classes/GameMode.h
@@ -9,6 +9,7 @@
9#import "CCLayer.h" 9#import "CCLayer.h"
10#import "Cart.h" 10#import "Cart.h"
11#import "FallingObjectFactory.h" 11#import "FallingObjectFactory.h"
12#import "GameModeInfo.h"
12 13
13#define GAME_SCENE 436 14#define GAME_SCENE 436
14#define GAME_LAYER 437 15#define GAME_LAYER 437
@@ -37,7 +38,6 @@
37@property (nonatomic,assign) int lives; 38@property (nonatomic,assign) int lives;
38@property (nonatomic,assign) int pointMultiplier; 39@property (nonatomic,assign) int pointMultiplier;
39@property (readonly) BOOL isPaused; 40@property (readonly) BOOL isPaused;
40+ (CCScene*)scene;
41- (void)tick:(ccTime)dt; 41- (void)tick:(ccTime)dt;
42- (BOOL)canPause; 42- (BOOL)canPause;
43- (void)pause; 43- (void)pause;
@@ -45,5 +45,6 @@
45- (void)mainmenu; 45- (void)mainmenu;
46- (void)scheduleDelayedAction:(void(^)(void))delayedAction delay:(float)delay; 46- (void)scheduleDelayedAction:(void(^)(void))delayedAction delay:(float)delay;
47- (void)runDelayedAction; 47- (void)runDelayedAction;
48+ (GameModeInfo*)info;
48 49
49@end 50@end