Projektordner für das Team Deutsches Museum (FORUM).
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

particleSystem.hpp 1.1KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. //
  2. // particleSystem.hpp
  3. // emptyExample
  4. //
  5. // Created by Sebastian Holzki on 16.04.19.
  6. //
  7. #pragma once
  8. #include <stdio.h>
  9. #include "particle.hpp"
  10. class ParticleSystem {
  11. ParticleSystem();
  12. ~ParticleSystem();
  13. public:
  14. void setup();
  15. void update(float deltaT, int playerType, bool attracted);
  16. void draw();
  17. /*
  18. Where do we make the quick setting-changes?
  19. Like for exampe change direction of an emitter + its position?
  20. --> XML?
  21. */
  22. private:
  23. vector<Particle*> particles;
  24. //adresses of the active emitters and attractors
  25. // vector<Attractor*> attractors;
  26. // vector<Emitter*> emitters;
  27. //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
  28. //like following:
  29. //vector<Vec2f> positionsToEmitFrom;
  30. float birthcount;
  31. bool attracted;
  32. int playerType;
  33. };
  34. /*
  35. class AttractedSystem : public ParticleSystem {
  36. bool attracted = true;
  37. };
  38. */