172 lines
1.8 KiB
C++
172 lines
1.8 KiB
C++
//
|
|
// visitor.cpp
|
|
// particle_combined
|
|
//
|
|
// Created by Sebastian Holzki on 11.06.19.
|
|
//
|
|
|
|
#include "visitor.hpp"
|
|
|
|
|
|
|
|
Visitor::Visitor()
|
|
{
|
|
|
|
// ofRunApp.VISITOR_COUNT++;
|
|
|
|
std::cout << "Konstruktor visitor" << std::endl;
|
|
|
|
|
|
}
|
|
|
|
// -----------------------------------
|
|
|
|
Visitor::~Visitor()
|
|
{
|
|
|
|
|
|
}
|
|
|
|
// -----------------------------------
|
|
|
|
|
|
|
|
void Visitor::setup(){
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
// -----------------------------------------------
|
|
|
|
|
|
void Visitor::setup(float _x, float _y){
|
|
|
|
position.x = _x;
|
|
position.y = _y;
|
|
|
|
}
|
|
|
|
// -----------------------------------------------
|
|
|
|
|
|
void Visitor::update(){
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
// -----------------------------------------------
|
|
|
|
|
|
void Visitor::draw(){
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
// -----------------------------------------------
|
|
|
|
|
|
|
|
ofVec2f Visitor::getPosition(){
|
|
|
|
return position;
|
|
|
|
}
|
|
|
|
// -----------------------------------------------
|
|
|
|
|
|
float Visitor::getX(){
|
|
|
|
return position.x;
|
|
|
|
}
|
|
|
|
|
|
// -----------------------------------------------
|
|
|
|
float Visitor::getY(){
|
|
|
|
return position.y;
|
|
|
|
}
|
|
|
|
// -----------------------------------------------
|
|
|
|
|
|
void Visitor::setPosition(float _x, float _y){
|
|
|
|
position.x = _x;
|
|
position.y = _y;
|
|
|
|
|
|
}
|
|
|
|
|
|
// -----------------------------------------------
|
|
|
|
|
|
void Visitor::setPosition(ofVec2f _position){
|
|
|
|
position = _position;
|
|
|
|
}
|
|
|
|
// -----------------------------------------------
|
|
|
|
|
|
void Visitor::setX(float _x){
|
|
|
|
position.x = _x;
|
|
|
|
}
|
|
|
|
|
|
|
|
// -----------------------------------------------
|
|
|
|
|
|
void Visitor::setY(float _y){
|
|
|
|
position.y = _y;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|