From 6e96fb2144718722208d22f892716b55548135e1 Mon Sep 17 00:00:00 2001 From: Starla Insigna Date: Wed, 30 Nov 2011 12:57:06 -0500 Subject: 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 --- Classes/GameMode.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Classes/GameMode.h') 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 @@ #import "CCLayer.h" #import "Cart.h" #import "FallingObjectFactory.h" +#import "GameModeInfo.h" #define GAME_SCENE 436 #define GAME_LAYER 437 @@ -37,7 +38,6 @@ @property (nonatomic,assign) int lives; @property (nonatomic,assign) int pointMultiplier; @property (readonly) BOOL isPaused; -+ (CCScene*)scene; - (void)tick:(ccTime)dt; - (BOOL)canPause; - (void)pause; @@ -45,5 +45,6 @@ - (void)mainmenu; - (void)scheduleDelayedAction:(void(^)(void))delayedAction delay:(float)delay; - (void)runDelayedAction; ++ (GameModeInfo*)info; @end -- cgit 1.4.1