summaryrefslogtreecommitdiff
path: root/include/bullet.h
blob: 3392ee4f4725bc1b013ace8a4132b3bd8d7e4f67 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#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 */