diff options
author | Starla Insigna <starla4444@gmail.com> | 2011-09-04 11:17:44 -0400 |
---|---|---|
committer | Starla Insigna <starla4444@gmail.com> | 2011-09-04 11:17:44 -0400 |
commit | 339f8e2cb2fce18f6d32b3881a5cd390c0be488e (patch) | |
tree | cb17c635d664838259e591f4b345ae6349931d49 /Classes/Cart.h | |
parent | 9f4bf94a763afba795fb991006081505c3ae466b (diff) | |
download | cartcollect-339f8e2cb2fce18f6d32b3881a5cd390c0be488e.tar.gz cartcollect-339f8e2cb2fce18f6d32b3881a5cd390c0be488e.tar.bz2 cartcollect-339f8e2cb2fce18f6d32b3881a5cd390c0be488e.zip |
Implemented Jump mode (BETA) jump
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
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; |