From 339f8e2cb2fce18f6d32b3881a5cd390c0be488e Mon Sep 17 00:00:00 2001 From: Starla Insigna Date: Sun, 4 Sep 2011 11:17:44 -0400 Subject: Implemented Jump mode (BETA) Dear god this is beta. I think I'll release a build for the testers soon so I can see what people think and then hammer out the bugs. Refs #204 --- Classes/Cart.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Classes/Cart.h') diff --git a/Classes/Cart.h b/Classes/Cart.h index 0ef1abf..302e5ec 100644 --- a/Classes/Cart.h +++ b/Classes/Cart.h @@ -8,15 +8,20 @@ #import #import "cocos2d.h" +#import "CartDelegate.h" @interface Cart : NSObject { CCSprite* sprite; float accelX; BOOL immobile; + id delegate; + BOOL falling; } @property (readonly) CCSprite* sprite; @property (assign) BOOL immobile; +@property (nonatomic,retain) id delegate; +@property (assign) BOOL falling; - (id)initWithSprite:(CCSprite*)sprite; - (void)tick; - (void)accelerometer:(UIAccelerometer*)accelerometer didAccelerate:(UIAcceleration*)acceleration; -- cgit 1.4.1