aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/Particle.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/crepe/Particle.hpp')
-rw-r--r--src/crepe/Particle.hpp12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/crepe/Particle.hpp b/src/crepe/Particle.hpp
index f71fd67..669a8ab 100644
--- a/src/crepe/Particle.hpp
+++ b/src/crepe/Particle.hpp
@@ -1,18 +1,20 @@
#pragma once
-class Particle {
-public:
- struct Position {
+struct Position {
float x;
float y;
};
+class Particle {
+public:
+
Position position;
Position velocity;
float lifespan;
+ bool active;
- Particle(float lifespan, Position position, Position velocity);
+ Particle();
+ void reset(float lifespan, Position position, Position velocity);
void update(float deltaTime);
- bool isAlive() const;
float timeInLife;
};