I just want to know what is the difference between writing this :
@interface Monster : CCSprite
@property (nonatomic, assign) NSString *life;
@property (nonatomic, assign) int color;
- (id)initWithFile:(NSString *)file hp:(int)life:(NSString *)color;
@end
and this :
@interface Monster : CCSprite{
NSString *life;
int color;
}
- (id)initWithFile:(NSString *)file hp:(int)life:(NSString *)color;
@end
Thank you in advance for your help.