|
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374 |
- //
- // particleSystem.hpp
- // emptyExample
- //
- // Created by Sebastian Holzki on 16.04.19.
- //
- #pragma once
-
-
- #include <stdio.h>
-
-
- #include "particle.hpp"
-
-
-
- class ParticleSystem {
-
- ParticleSystem();
- ~ParticleSystem();
-
- public:
-
-
- void setup();
- void update(float deltaT, int playerType, bool attracted);
- void draw();
-
-
-
- /*
-
- Where do we make the quick setting-changes?
- Like for exampe change direction of an emitter + its position?
- --> XML?
-
-
- */
-
- private:
-
- vector<Particle*> particles;
-
- //adresses of the active emitters and attractors
- // vector<Attractor*> attractors;
- // vector<Emitter*> emitters;
-
- //Maybe the emitter does not have to be an own class, but is more like a Vector of Positions, so in the system.back it will setup particles for every position that is saved in this Vector
- //like following:
-
- //vector<Vec2f> positionsToEmitFrom;
-
-
- float birthcount;
- bool attracted;
- int playerType;
-
-
-
- };
-
-
-
- /*
-
- class AttractedSystem : public ParticleSystem {
-
-
- bool attracted = true;
-
- };
-
- */
-
|