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.

objectPhysics.hpp 1.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. //
  2. // objectPhysics.hpp
  3. // emptyExample
  4. //
  5. // Created by Sebastian Holzki on 01.05.19.
  6. //
  7. #ifndef objectPhysics_hpp
  8. #define objectPhysics_hpp
  9. #include <stdio.h>
  10. #include "ofMain.h"
  11. #endif /* objectPhysics_hpp */
  12. class ObjectPhysics {
  13. public:
  14. ObjectPhysics();
  15. ~ObjectPhysics();
  16. protected:
  17. ofVec2f position;
  18. bool emitting;
  19. bool attracting;
  20. float force;
  21. float vel;
  22. };
  23. // ******* ATTRAKTOR ******* ATTRAKTOR ******* ATTRAKTOR ******* ATTRAKTOR ******* ATTRAKTOR *******
  24. class Attraktor: public ObjectPhysics {
  25. public:
  26. Attraktor();
  27. Attraktor(float x, float y);
  28. ~Attraktor();
  29. // Attraktor(){
  30. //
  31. // emitting = false;
  32. // attracting = true;
  33. //
  34. // cout << "Attraktor Konstruktor" << endl;
  35. //
  36. // };
  37. //
  38. // Attraktor(float x, float y){
  39. //
  40. // emitting = false;
  41. // attracting = true;
  42. //
  43. // position.set(x,y);
  44. //
  45. // cout << "Attraktor Konstruktor überladen" << endl;
  46. // };
  47. //
  48. //
  49. //
  50. // ~Attraktor(){
  51. // cout << "Attraktor Destruktor" << endl;
  52. // };
  53. private:
  54. };
  55. // ******* EMITTER ******* EMITTER ******* EMITTER ******* EMITTER ******* EMITTER ******* EMITTER *******
  56. class Emitter: public ObjectPhysics {
  57. public:
  58. // Emitter(){
  59. //
  60. // emitting = true;
  61. // attracting = false;
  62. //
  63. // };
  64. Emitter();
  65. ~Emitter();
  66. private:
  67. };