-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMissile.h
More file actions
39 lines (32 loc) · 909 Bytes
/
Missile.h
File metadata and controls
39 lines (32 loc) · 909 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
// Missile.h
#ifndef MISSILE_H
#define MISSILE_H
#include "ComplexGraphicObject.h"
#include "AnimatedObject.h"
#include "Polygon.h"
#include "Rectangle.h"
#include "Ellipse.h"
namespace earshooter
{
class Missile : public ComplexGraphicObject, public AnimatedObject
{
private:
time_t birthTime_;
protected:
void updateAbsoluteBox_() const;
public:
Missile(float x, float y, float velocity, float angle);
Missile(float angle);
Missile();
~Missile() = default;
//disabled constructors & operators
Missile(const Missile& obj) = delete; // copy
Missile(Missile&& obj) = delete; // move
Missile& operator = (const Missile& obj) = delete; // copy operator
Missile& operator = (Missile&& obj) = delete; // move operator
// Returns the Tip of the missile as a world point.
WorldPoint TipWorldPoint();
bool checkFuel();
};
}
#endif // MISSILE_H