diff options
Diffstat (limited to 'Classes/FallingObject.h')
-rwxr-xr-x | Classes/FallingObject.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/Classes/FallingObject.h b/Classes/FallingObject.h index 6cb0c14..d9406d5 100755 --- a/Classes/FallingObject.h +++ b/Classes/FallingObject.h | |||
@@ -15,14 +15,16 @@ | |||
15 | int weight; | 15 | int weight; |
16 | id<FallingObjectDelegate> delegate; | 16 | id<FallingObjectDelegate> delegate; |
17 | BOOL flags[4]; | 17 | BOOL flags[4]; |
18 | int objectType; | ||
18 | } | 19 | } |
19 | 20 | ||
20 | @property (readonly) CCSprite* sprite; | 21 | @property (readonly) CCSprite* sprite; |
21 | @property (readonly) int weight; | 22 | @property (readonly) int weight; |
23 | @property (readonly) int objectType; | ||
22 | @property (nonatomic,retain) id<FallingObjectDelegate> delegate; | 24 | @property (nonatomic,retain) id<FallingObjectDelegate> delegate; |
23 | - (id)init; | 25 | - (id)initWithSpriteFilename:(NSString*)filename weight:(int)weight objectType:(int)objectType; |
24 | - (BOOL)tick; | 26 | - (BOOL)tick; |
25 | - (void)collideWithCart; | 27 | - (BOOL)flag:(int)flag; |
26 | - (void)collideWithFloor; | 28 | - (void)setFlag:(int)flag withValue:(BOOL)value; |
27 | 29 | ||
28 | @end | 30 | @end |