// // GameObject.h // Cart Collect // // Created by iD Student Account on 7/19/11. // Copyright 2011 __MyCompanyName__. All rights reserved. // #import #import "cocos2d.h" #import "FallingObjectDelegate.h" @interface FallingObject : NSObject { CCSprite* sprite; int weight; id delegate; BOOL flags[4]; int objectType; } @property (readonly) CCSprite* sprite; @property (readonly) int weight; @property (readonly) int objectType; @property (nonatomic,retain) id delegate; - (id)initWithSpriteFilename:(NSString*)filename weight:(int)weight objectType:(int)objectType; - (BOOL)tick; - (BOOL)flag:(int)flag; - (void)setFlag:(int)flag withValue:(BOOL)value; @end