-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBullet.h
More file actions
42 lines (33 loc) · 1013 Bytes
/
Copy pathBullet.h
File metadata and controls
42 lines (33 loc) · 1013 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#ifndef __Bullet
#define __Bullet
#include "DrawObject.h"
class Bullet : public DrawObject{
public:
Bullet(double x, double y, double incX, double incY);
//FUNCTIONS
void update();
void dispose();
void draw() const;
bool outOfBoundaries() const;
bool isReadyToDelete() const;
void drawShadow() const;
//STATIC PROPERTIES
static int leftLimit;
static int rightLimit;
static int upperLimit;
static int bottomLimit;
//OPERATOR OVERLOADS
void operator=(const Bullet&);
bool operator==(const Bullet&)const;
protected:
//FUNCTIONS
void calcPos();
//STATICS PROPERTIES
static const int vel = 15;
static const int size = 6;
//VARS
bool readyToDelete;
double incX;
double incY;
};
#endif //__Bullet