123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596 |
- //
- // objectPhysics.hpp
- // emptyExample
- //
- // Created by Sebastian Holzki on 01.05.19.
- //
-
- #ifndef objectPhysics_hpp
- #define objectPhysics_hpp
-
- #include <stdio.h>
- #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:
-
- };
|