2011-11-15 22:43:35 +00:00
|
|
|
//
|
|
|
|
// Bullet.h
|
|
|
|
// Yog-Shot-Oth
|
|
|
|
//
|
|
|
|
// Created by Yann Esposito on 14/11/11.
|
|
|
|
// Copyright (c) 2011 __MyCompanyName__. All rights reserved.
|
|
|
|
//
|
|
|
|
|
|
|
|
#import "CCNode.h"
|
|
|
|
#import "cocos2d.h"
|
|
|
|
#import "MainLayer.h"
|
|
|
|
|
|
|
|
@interface Bullet : CCNode
|
|
|
|
{
|
|
|
|
MainLayer *parentLayer;
|
|
|
|
CCSprite *sprite;
|
|
|
|
CGSize winSize;
|
|
|
|
CGPoint speed;
|
|
|
|
}
|
|
|
|
@property (assign) MainLayer *father;
|
|
|
|
|
2011-11-20 21:40:00 +00:00
|
|
|
- (id)initWithStartPosition:(CGPoint)fromPosition toPosition:(CGPoint)toPosition withSpeed:(CGFloat)speed andMainLayer:(MainLayer*)mainLayer;
|
2011-11-15 22:43:35 +00:00
|
|
|
- (void)update:(ccTime)dt;
|
|
|
|
|
|
|
|
@end
|