diff --git a/Emitter.cpp b/Emitter.cpp new file mode 100644 index 0000000..773371a --- /dev/null +++ b/Emitter.cpp @@ -0,0 +1,37 @@ +// +// Emitter.cpp +// emptyExample +// +// Created by Sebastian Holzki on 17.04.19. +// +#pragma once +#include "Emitter.hpp" + + +Emitter::Emitter() +{ + + +} + +// ----------------------------------- + +Emitter::~Emitter() +{ + + +} + +// ----------------------------------- + + + +void Emitter::setEmitterPosition(ofVec2f _position){ + + position = _position; + + + +} + +// ----------------------------------------------- diff --git a/attractor.cpp b/attractor.cpp new file mode 100644 index 0000000..091f7e1 --- /dev/null +++ b/attractor.cpp @@ -0,0 +1,55 @@ +// +// attractor.cpp +// emptyExample +// +// Created by Sebastian Holzki on 16.04.19. +// +#pragma once + +#include "attractor.hpp" + + + +Attractor::Attractor(){ + + +} + +// ------------------------------------ + +Attractor::~Attractor(){ + + +} + +// ------------------------------------ + +float Attractor::getX(){ + + return x; + +} + +// ------------------------------------ + +float Attractor::getY(){ + + return y; + +} + +// ------------------------------------ + +void Attractor::setX(float _x){ + + x = _x; + +} + +// ------------------------------------ + +void Attractor::setY(float _y){ + + y = _y; + +} diff --git a/attractor.hpp b/attractor.hpp new file mode 100644 index 0000000..459e10a --- /dev/null +++ b/attractor.hpp @@ -0,0 +1,35 @@ +// +// attractor.hpp +// emptyExample +// +// Created by Sebastian Holzki on 16.04.19. +// + + +#pragma once + +#include + + + + +class Attractor { + +public: + Attractor(); + ~Attractor(); + + float getX(); + float getY(); + + void setX(float x); + void setY(float y); + + void updateCoordinates(float x, float y); + +private: + + float x; + float y; + +}; diff --git a/greatWhole.hpp b/greatWhole.hpp new file mode 100644 index 0000000..fdcb95a --- /dev/null +++ b/greatWhole.hpp @@ -0,0 +1,41 @@ +// +// greatWhole.hpp +// emptyExample +// +// Created by Sebastian Holzki on 17.04.19. +// + +#include +#include "ofMain.h" +#include "avatar.hpp" + +#pragma once + + +/* Das Große Ganze beinhaltet eine unbestimmte Anzahl an bereits eingecheckten Personen, deren Infos in Avatare gespeichert werden. + Es bedarf eine setup(), update() und draw()-Methode. Dabei soll Platz für den vector geschaffen werden. In update wird eine + gewisse Bewegung der Avatar-"Bubbles" definiert. Draw zeichnet die Avatare auf die Stelen, also die entsprechenden Koordinaten. */ + + +class GreatWhole { + + +public: + + GreatWhole(); + ~GreatWhole(); + + void setup(); + void update(vector avatars); + void draw(); + + void addAvatar(Avatar avatar); + Avatar getAvatarAt(int i); + + + +private: + + vector avatars; + +}; diff --git a/main.cpp b/main.cpp new file mode 100644 index 0000000..f73817a --- /dev/null +++ b/main.cpp @@ -0,0 +1,15 @@ + +#include "ofMain.h" +#include "ofApp.h" + +//======================================================================== +int main( ){ + + ofSetupOpenGL(1000,1000, OF_WINDOW); // <-------- setup the GL context + + // this kicks off the running of my app + // can be OF_WINDOW or OF_FULLSCREEN + // pass in width and height too: + ofRunApp( new ofApp()); + +}