diff options
Diffstat (limited to 'Classes/Cart.h')
-rw-r--r-- | Classes/Cart.h | 5 |
1 files changed, 5 insertions, 0 deletions
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 @@ | |||
8 | 8 | ||
9 | #import <Foundation/Foundation.h> | 9 | #import <Foundation/Foundation.h> |
10 | #import "cocos2d.h" | 10 | #import "cocos2d.h" |
11 | #import "CartDelegate.h" | ||
11 | 12 | ||
12 | @interface Cart : NSObject { | 13 | @interface Cart : NSObject { |
13 | CCSprite* sprite; | 14 | CCSprite* sprite; |
14 | float accelX; | 15 | float accelX; |
15 | BOOL immobile; | 16 | BOOL immobile; |
17 | id<CartDelegate> delegate; | ||
18 | BOOL falling; | ||
16 | } | 19 | } |
17 | 20 | ||
18 | @property (readonly) CCSprite* sprite; | 21 | @property (readonly) CCSprite* sprite; |
19 | @property (assign) BOOL immobile; | 22 | @property (assign) BOOL immobile; |
23 | @property (nonatomic,retain) id<CartDelegate> delegate; | ||
24 | @property (assign) BOOL falling; | ||
20 | - (id)initWithSprite:(CCSprite*)sprite; | 25 | - (id)initWithSprite:(CCSprite*)sprite; |
21 | - (void)tick; | 26 | - (void)tick; |
22 | - (void)accelerometer:(UIAccelerometer*)accelerometer didAccelerate:(UIAcceleration*)acceleration; | 27 | - (void)accelerometer:(UIAccelerometer*)accelerometer didAccelerate:(UIAcceleration*)acceleration; |