// // objectPhysics.hpp // emptyExample // // Created by Sebastian Holzki on 01.05.19. // #ifndef objectPhysics_hpp #define objectPhysics_hpp #include #include "ofMain.h" #endif /* objectPhysics_hpp */ class ObjectPhysics { public: ObjectPhysics(); ~ObjectPhysics(); protected: ofVec2f position; bool emitting; bool attracting; float force; float vel; }; // ******* ATTRAKTOR ******* ATTRAKTOR ******* ATTRAKTOR ******* ATTRAKTOR ******* ATTRAKTOR ******* class Attraktor: public ObjectPhysics { public: Attraktor(); Attraktor(float x, float y); ~Attraktor(); // Attraktor(){ // // emitting = false; // attracting = true; // // cout << "Attraktor Konstruktor" << endl; // // }; // // Attraktor(float x, float y){ // // emitting = false; // attracting = true; // // position.set(x,y); // // cout << "Attraktor Konstruktor überladen" << endl; // }; // // // // ~Attraktor(){ // cout << "Attraktor Destruktor" << endl; // }; private: }; // ******* EMITTER ******* EMITTER ******* EMITTER ******* EMITTER ******* EMITTER ******* EMITTER ******* class Emitter: public ObjectPhysics { public: // Emitter(){ // // emitting = true; // attracting = false; // // }; Emitter(); ~Emitter(); private: };