asteroids-cs165/include/bullet.h

25 lines
427 B
C
Raw Normal View History

2020-06-30 22:04:55 -04:00
#ifndef bullet_h
#define bullet_h
#define BULLET_SPEED 10
#define BULLET_LIFE 40
#include "point.h"
#include "velocity.h"
#include "flyingObject.h"
class Bullet : public FlyingObject
{
private:
int framesAlive;
public:
Bullet( const Point &point );
int getFramesAlive() const { return framesAlive; };
void fire( const Velocity &velocity , const float angle );
void advance();
};
#endif /* bullet_h */