change Vector2 param to a const Vector2&
[physics.git] / src / Entities / Particle.h
1 #ifndef PARTICLE_H
2 #define PARTICLE_H
3
4 #include "Entity.h"
5 #include "../Vector2.h"
6
7 /// NOTE to SELF
8 // a Particle should be drawn for at least the next frame
9 // ie. creating a particle using ParticleE(Vector2),
10 // should draw the particle once THEN kill it
11
12 /// ***** Header Class *****
13 class Particle: public Entity
14 {
15     protected:
16         Particle(const Vector2&, bool=true);
17         Particle(const Vector2&, float);
18
19     public:
20         virtual ~Particle();
21
22         virtual void update(float);
23
24     protected:
25         float lifeTime;
26
27         bool isDead;
28         bool canDie;
29 };
30
31 #endif // PARTICLE_H