-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBomb.h
More file actions
executable file
·33 lines (27 loc) · 853 Bytes
/
Bomb.h
File metadata and controls
executable file
·33 lines (27 loc) · 853 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
/*
* Bomb.h
*
* Created on: May 5, 2018
* Author: parkerqueen
*/
#ifndef BOMB_H_
#define BOMB_H_
#include "Entity.h"
#define BOMB 4
class Bomb : public Entity {
private:
static int shp_bspeed;
float firedDistance;
int btype;
public:
Bomb(Point = Point(), Point = Point(),
int = SHP_BMB); // Constructor, creates a bomb at given position and
// with given direction
void move(); // Moves the bomb
void draw(); // Draws the bomb
static void setspeed(float); // Sets the static speed of bomb, static speed
// is the speed of ship bombs
float distance() const; // Gives how much distance has the bomb travelled
int type() const; // Returns the type of bomb, ship bomb or saucer bomb
};
#endif /* BOMB_H_ */