-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
RonTang
committed
Oct 19, 2013
1 parent
cf5bf1f
commit cee3435
Showing
78 changed files
with
4,274 additions
and
334 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// | ||
// BigNut.h | ||
// PlantsVsZombies | ||
// | ||
// Created by Ron on 13-9-12. | ||
// Copyright (c) 2013年 Apple.org. All rights reserved. | ||
// | ||
|
||
#import "Plant.h" | ||
|
||
@interface BigNut : Plant | ||
|
||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
// | ||
// BigNut.m | ||
// PlantsVsZombies | ||
// | ||
// Created by Ron on 13-9-12. | ||
// Copyright (c) 2013年 Apple.org. All rights reserved. | ||
// | ||
|
||
#import "BigNut.h" | ||
|
||
@implementation BigNut | ||
|
||
- (id)initWithFrame:(CGRect)frame | ||
{ | ||
self = [super initWithFrame:frame]; | ||
if (self) { | ||
self.costShine=150; | ||
[self setUserInteractionEnabled:YES]; | ||
self.animationImages= [[ImageManager defaultManager]getPlantImagesByType:3]; | ||
self.image = self.animationImages[0]; | ||
self.lifeCount=500; | ||
} | ||
return self; | ||
} | ||
|
||
|
||
-(void)dealloc{ | ||
//NSLog(@"nut dead"); | ||
[super dealloc]; | ||
} | ||
|
||
@end |
Oops, something went wrong.