diff options
Diffstat (limited to 'Classes/Cherry.m')
| -rwxr-xr-x | Classes/Cherry.m | 32 |
1 files changed, 32 insertions, 0 deletions
| diff --git a/Classes/Cherry.m b/Classes/Cherry.m new file mode 100755 index 0000000..f53c86e --- /dev/null +++ b/Classes/Cherry.m | |||
| @@ -0,0 +1,32 @@ | |||
| 1 | // | ||
| 2 | // Cherry.m | ||
| 3 | // Cart Collect | ||
| 4 | // | ||
| 5 | // Created by iD Student Account on 7/19/11. | ||
| 6 | // Copyright 2011 __MyCompanyName__. All rights reserved. | ||
| 7 | // | ||
| 8 | |||
| 9 | #import "Cherry.h" | ||
| 10 | |||
| 11 | |||
| 12 | @implementation Cherry | ||
| 13 | |||
| 14 | - (id)init | ||
| 15 | { | ||
| 16 | self = [super init]; | ||
| 17 | |||
| 18 | if (nil != self) | ||
| 19 | { | ||
| 20 | sprite = [CCSprite spriteWithFile:@"cherry.png"]; | ||
| 21 | weight = 5; | ||
| 22 | } | ||
| 23 | |||
| 24 | return self; | ||
| 25 | } | ||
| 26 | |||
| 27 | - (int)pointValue | ||
| 28 | { | ||
| 29 | return 10; | ||
| 30 | } | ||
| 31 | |||
| 32 | @end | ||
