#import "peanut.h" @implementation Peanut -(id) initAtX:(double)initX y:(double)initY { [super initWithX:initX y:initY vx:0.0 vy:0.0 radius:PEANUT_DEFAULT_SIZE color:[UIColor brownColor]]; return self; } -(int) getValue { double t = [self getStateTime]; if (t < 2.0) { return 50; } else if (t < 4.0) { return 20; } else { return 10; } } -(void) dealloc { [super dealloc]; } @end