yogshototh/Yog-Shot-Oth/Bullet.h

27 lines
569 B
C
Raw Permalink Normal View History

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;
2012-01-26 22:26:35 +00:00
int collisionDistance;
2011-11-15 22:43:35 +00:00
}
@property (assign) MainLayer *father;
- (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