From d19677f9f73d8fe7436982bdf8d40f69d69d1b43 Mon Sep 17 00:00:00 2001 From: Starla Insigna Date: Fri, 12 Aug 2011 09:51:50 -0400 Subject: Added tutorial mode GameLayer was also renamed to ClassicGameMode and its pause functionality and score/lives counters were moved out to GameMode. FallingObjectDelegate was created to allow for custom code to be run when items were caught/missed, something that is used extensively by tutorial mode. Important: Cart Collect's bundle identifier was changed in this revision from com.fourisland.Cart-Collect to com.apatheticink.Cart-Collect, so ensure that before attempting to compile/run this build, you clear your build directory and remove the old version of Cart Collect from your device. Closes #193 --- Classes/TutorialMode.h | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 Classes/TutorialMode.h (limited to 'Classes/TutorialMode.h') diff --git a/Classes/TutorialMode.h b/Classes/TutorialMode.h new file mode 100644 index 0000000..17b0c7f --- /dev/null +++ b/Classes/TutorialMode.h @@ -0,0 +1,26 @@ +// +// TutorialMode.h +// Cart Collect +// +// Created by Starla Insigna on 8/10/11. +// Copyright 2011 Four Island. All rights reserved. +// + +#import "GameMode.h" +#import "TutorialBubble.h" +#import "FallingObjectDelegate.h" + +@interface TutorialMode : GameMode { + TutorialBubble* currentTutorial; + BOOL showedDeathBubble; + int randomItemsDropped; +} + +@property (nonatomic,retain) TutorialBubble* currentTutorial; +- (void)endTutorial; +- (FallingObject*)dropSpecificItem:(FallingObject*)item; +- (FallingObject*)dropRandomItem; +- (void)randomlyAddObject:(ccTime)dt; +- (void)skipTutorial; + +@end -- cgit 1.4.1