class Particle { //PROPERTIES float x,y; //Position float vx,vy; //Geschwindigkeit float r; //radius float vs; //startgeschwindigkeit float dVx; //einfluss der attractoren float dVy; ArrayList attractorList; ArrayList dichteList; ArrayList particleList; ArrayList pointList; PGraphics fassade; //--------------------------------------------------------------------------------------------------------- //--------------------------------------------------------------------------------------------------------- //CONSTRUCTOR Particle(float x,float y, float vx, float vy) { this.x=x; this.y=y; this.vx=vx; this.vy=vy; pointList = new ArrayList(); } //--------------------------------------------------------------------------------------------------------- //--------------------------------------------------------------------------------------------------------- //METHODES //LISTEN LADEN void setAttractorList(ArrayList attractorList)//arrayliste aus dem hauptprogram laden { this.attractorList = attractorList; } void setDichteList(ArrayList dichteList)//arrayliste aus dem hauptprogram laden { this.dichteList = dichteList; } void setParticleList(ArrayList particleList)//arrayliste aus dem hauptprogram laden { this.particleList = particleList; } //--------------------------------------------------------------------------------------------------------- //GETTERS AND SETTERS void setFassade(PGraphics facade) { this.fassade = facade; } float getX() { return this.x; } float getY() { return this.y; } //--------------------------------------------------------------------------------------------------------- //BEWEGUNG void step() { dVx = 0; dVy = 0; for (int i=0; i