summary refs log tree commit diff stats
path: root/Classes/FallingObject.h
diff options
context:
space:
mode:
authorStarla Insigna <starla4444@gmail.com>2011-08-12 09:51:50 -0400
committerStarla Insigna <starla4444@gmail.com>2011-08-12 09:51:50 -0400
commitd19677f9f73d8fe7436982bdf8d40f69d69d1b43 (patch)
tree74853f369ef51bc9f9f595ff31153ce1a718e651 /Classes/FallingObject.h
parent07f40d804de35d1cead13217c448811e774e6e67 (diff)
downloadcartcollect-d19677f9f73d8fe7436982bdf8d40f69d69d1b43.tar.gz
cartcollect-d19677f9f73d8fe7436982bdf8d40f69d69d1b43.tar.bz2
cartcollect-d19677f9f73d8fe7436982bdf8d40f69d69d1b43.zip
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
Diffstat (limited to 'Classes/FallingObject.h')
-rwxr-xr-xClasses/FallingObject.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/Classes/FallingObject.h b/Classes/FallingObject.h index 0bda787..3e28903 100755 --- a/Classes/FallingObject.h +++ b/Classes/FallingObject.h
@@ -8,14 +8,17 @@
8 8
9#import <Foundation/Foundation.h> 9#import <Foundation/Foundation.h>
10#import "cocos2d.h" 10#import "cocos2d.h"
11#import "FallingObjectDelegate.h"
11 12
12@interface FallingObject : NSObject { 13@interface FallingObject : NSObject {
13 CCSprite* sprite; 14 CCSprite* sprite;
14 int weight; 15 int weight;
16 id<FallingObjectDelegate> delegate;
15} 17}
16 18
17@property (readonly) CCSprite* sprite; 19@property (readonly) CCSprite* sprite;
18@property (readonly) int weight; 20@property (readonly) int weight;
21@property (nonatomic,retain) id<FallingObjectDelegate> delegate;
19- (id)init; 22- (id)init;
20- (BOOL)tick; 23- (BOOL)tick;
21- (void)collideWithCart; 24- (void)collideWithCart;