Index: orxonox/trunk/src/lib/particles/particle_emitter.cc
===================================================================
--- orxonox/trunk/src/lib/particles/particle_emitter.cc	(revision 4556)
+++ orxonox/trunk/src/lib/particles/particle_emitter.cc	(revision 4597)
@@ -1,3 +1,3 @@
-/* 
+/*
    orxonox - the future of 3D-vertical-scrollers
 
@@ -31,7 +31,8 @@
    \brief standard constructor
 */
-ParticleEmitter::ParticleEmitter(const Vector& direction, float angle, float emissionRate, 
-		  float velocity)
-{
+ParticleEmitter::ParticleEmitter(const Vector& direction, float angle, float emissionRate,
+                  float velocity)
+{
+  this->setClassID(CL_PARTICLE_EMITTER, "ParticleEmitter");
   this->type = EMITTER_DOT;
   this->emitterSize = 1.0;
@@ -64,5 +65,5 @@
    removes the EmitterSystem from the ParticleEngine
 */
-ParticleEmitter::~ParticleEmitter () 
+ParticleEmitter::~ParticleEmitter ()
 {
   ParticleEngine::getInstance()->removeEmitter(this);
@@ -91,5 +92,5 @@
   LoadParam<ParticleEmitter>(root, "emission-velocity", this, &ParticleEmitter::setEmissionVelocity)
     .describe("How fast the particles are emittet (their initial speed)");
-  
+
   LoadParam<ParticleEmitter>(root, "spread", this, &ParticleEmitter::setSpread)
     .describe("The angle the particles are emitted from (angle, deviation)");
@@ -224,34 +225,34 @@
     float count = (dt+this->saveTime) * this->emissionRate;
     this->saveTime = modff(count, &count) / this->emissionRate;
-    PRINTF(5)("emitting %f particles, saving %f seconds for the next round\n", count, this->saveTime); 
-    
+    PRINTF(5)("emitting %f particles, saving %f seconds for the next round\n", count, this->saveTime);
+
     if (likely(count > 0))
       {
-	Vector inheritVelocity = this->getVelocity() * this->inheritSpeed;
-	for (int i = 0; i < count; i++)
-	  // emmits from EMITTER_DOT,
-	  {
-	    Vector randDir = Vector(rand()-RAND_MAX/2, rand()-RAND_MAX/2, rand()-RAND_MAX/2);
-	    randDir.normalize();
-	    randDir = (this->getAbsDir()*Quaternion(angle + randomAngle *((float)rand()/RAND_MAX -.5), randDir)).apply(this->direction);
-	    Vector velocityV = randDir.getNormalized()*this->velocity + inheritVelocity;
-
-	    // this should spread the Particles evenly. if the Emitter is moved around quickly
-	    Vector equalSpread = this->getVelocity() * rand()/RAND_MAX * dt;
-	    Vector extension; // the Vector for different fields.
-
-	    if (this->type & 2)
-	      {
-		extension = Vector(this->emitterSize * ((float)rand()/RAND_MAX -.5), 0, this->emitterSize * ((float)rand()/RAND_MAX - .5));
-		extension = this->getAbsDir().apply(extension);
-	      }
-	    else if (this->type & 8)
-	      {
-		extension = Vector((float)rand()/RAND_MAX -.5, (float)rand()/RAND_MAX -.5, (float)rand()/RAND_MAX -.5) * this->emitterSize;
-	      }
-
-	    system->addParticle(this->getAbsCoor() + extension - equalSpread, velocityV);
-	    
-	  }
+        Vector inheritVelocity = this->getVelocity() * this->inheritSpeed;
+        for (int i = 0; i < count; i++)
+          // emmits from EMITTER_DOT,
+          {
+            Vector randDir = Vector(rand()-RAND_MAX/2, rand()-RAND_MAX/2, rand()-RAND_MAX/2);
+            randDir.normalize();
+            randDir = (this->getAbsDir()*Quaternion(angle + randomAngle *((float)rand()/RAND_MAX -.5), randDir)).apply(this->direction);
+            Vector velocityV = randDir.getNormalized()*this->velocity + inheritVelocity;
+
+            // this should spread the Particles evenly. if the Emitter is moved around quickly
+            Vector equalSpread = this->getVelocity() * rand()/RAND_MAX * dt;
+            Vector extension; // the Vector for different fields.
+
+            if (this->type & 2)
+              {
+                extension = Vector(this->emitterSize * ((float)rand()/RAND_MAX -.5), 0, this->emitterSize * ((float)rand()/RAND_MAX - .5));
+                extension = this->getAbsDir().apply(extension);
+              }
+            else if (this->type & 8)
+              {
+                extension = Vector((float)rand()/RAND_MAX -.5, (float)rand()/RAND_MAX -.5, (float)rand()/RAND_MAX -.5) * this->emitterSize;
+              }
+
+            system->addParticle(this->getAbsCoor() + extension - equalSpread, velocityV);
+
+          }
       }
   }
Index: orxonox/trunk/src/lib/particles/particle_emitter.h
===================================================================
--- orxonox/trunk/src/lib/particles/particle_emitter.h	(revision 4556)
+++ orxonox/trunk/src/lib/particles/particle_emitter.h	(revision 4597)
@@ -1,3 +1,3 @@
-/*! 
+/*!
     \file particle_emitter.h
     \brief Definition of a ParticleEmitter
@@ -9,13 +9,16 @@
 #include "p_node.h"
 
-// FORWARD DEFINITION 
+// FORWARD DEFINITION
 class ParticleSystem;
 class TiXmlElement;
 
 //! The form of the Emitter to emit from
-typedef enum EMITTER_TYPE { EMITTER_DOT   = 1,
-			    EMITTER_PLANE = 2,
-			    EMITTER_SPHERE= 4,
-			    EMITTER_CUBE  = 8 };
+  typedef enum EMITTER_TYPE
+{
+  EMITTER_DOT     = 1,
+  EMITTER_PLANE   = 2,
+  EMITTER_SPHERE  = 4,
+  EMITTER_CUBE    = 8
+};
 
 //! A class to handle an Emitter.
@@ -24,8 +27,8 @@
  public:
   ParticleEmitter(const Vector& direction, float angle = .5,
-		  float emissionRate = 1.0, float velocity = 1.0);
+                  float emissionRate = 1.0, float velocity = 1.0);
   ParticleEmitter(const TiXmlElement* root);
   virtual ~ParticleEmitter(void);
-  
+
   void loadParams(const TiXmlElement* root);
 
Index: orxonox/trunk/src/lib/particles/particle_engine.cc
===================================================================
--- orxonox/trunk/src/lib/particles/particle_engine.cc	(revision 4556)
+++ orxonox/trunk/src/lib/particles/particle_engine.cc	(revision 4597)
@@ -1,3 +1,3 @@
-/* 
+/*
    orxonox - the future of 3D-vertical-scrollers
 
@@ -30,7 +30,8 @@
    \brief standard constructor
 */
-ParticleEngine::ParticleEngine () 
+ParticleEngine::ParticleEngine ()
 {
    this->setClassID(CL_PARTICLE_ENGINE, "ParticleEngine");
+   this->setName("ParticleEngine");
 
    this->systemList = new tList<ParticleSystem>;
@@ -47,5 +48,5 @@
    \brief deletes all the system, emitters, connections and Lists
 */
-ParticleEngine::~ParticleEngine () 
+ParticleEngine::~ParticleEngine ()
 {
   // delete all remaining systems
@@ -113,14 +114,14 @@
     {
       if (tmpConnection->emitter == emitter && tmpConnection->system == system)
-	{
-	  PRINTF(2)("Connection between Emitter and System already added\n");
-	  delete tmpConIt;
-	  return;
-	}
-      
+        {
+          PRINTF(2)("Connection between Emitter and System already added\n");
+          delete tmpConIt;
+          return;
+        }
+
       tmpConnection = tmpConIt->nextElement();
     }
   delete tmpConIt;
-  
+
 
 
@@ -144,5 +145,5 @@
     {
       if (tmpConnection->system == system)
-	this->breakConnection(tmpConnection);
+        this->breakConnection(tmpConnection);
       tmpConnection = tmpConIt->nextElement();
     }
@@ -165,5 +166,5 @@
     {
       if (tmpConnection->emitter == emitter)
-	this->breakConnection(tmpConnection);
+        this->breakConnection(tmpConnection);
       tmpConnection = tmpConIt->nextElement();
     }
@@ -191,7 +192,7 @@
     if (tmpConnection->emitter == emitter && tmpConnection->system == system)
       {
-	this->breakConnection(tmpConnection);
-	delete tmpConIt;
-	return true;
+        this->breakConnection(tmpConnection);
+        delete tmpConIt;
+        return true;
       }
     tmpConnection = tmpConIt->nextElement();
@@ -268,8 +269,8 @@
     {
       if (!strcmp(systemName, tmpSys->getName()))
-	{
-	  delete tmpIt;
-	  return tmpSys;
-	}
+        {
+          delete tmpIt;
+          return tmpSys;
+        }
       tmpSys = tmpIt->nextElement();
     }
@@ -291,8 +292,8 @@
       count++;
       if ( count == number)
-	{
-	  delete tmpIt;
-	  return tmpSys;
-	}
+        {
+          delete tmpIt;
+          return tmpSys;
+        }
       tmpSys = tmpIt->nextElement();
     }
@@ -312,8 +313,8 @@
     {
       if (!strcmp(emitterName, tmpEmit->getName()))
-	{
-	  delete tmpIt;
-	  return tmpEmit;
-	}
+        {
+          delete tmpIt;
+          return tmpEmit;
+        }
       tmpEmit = tmpIt->nextElement();
     }
@@ -336,8 +337,8 @@
       count++;
       if ( count == number)
-	{
-	  delete tmpIt;
-	  return tmpEmit;
-	}
+        {
+          delete tmpIt;
+          return tmpEmit;
+        }
       tmpEmit = tmpIt->nextElement();
     }
@@ -356,5 +357,5 @@
   PRINT(0)(" Reference: %p\n", ParticleEngine::singletonRef);
   PRINT(0)(" Count: Emitters: %d; Systems: %d, Connections: %d\n",
-	    this->emitterList->getSize(), this->systemList->getSize(), this->connectionList->getSize());
+            this->emitterList->getSize(), this->systemList->getSize(), this->connectionList->getSize());
   if (this->connectionList->getSize() > 0)
     {
@@ -365,8 +366,8 @@
       ParticleConnection* tmpConnection = tmpConIt->nextElement();
       while(tmpConnection)
-	{
-	  PRINT(0)(" Emitter '%s' emitts into System '%s'\n", tmpConnection->emitter->getName(), tmpConnection->system->getName());
-	  tmpConnection = tmpConIt->nextElement();
-	}
+        {
+          PRINT(0)(" Emitter '%s' emitts into System '%s'\n", tmpConnection->emitter->getName(), tmpConnection->system->getName());
+          tmpConnection = tmpConIt->nextElement();
+        }
       delete tmpConIt;
     }
@@ -376,8 +377,8 @@
       ParticleSystem* tmpSys = tmpIt->nextElement();
       while(tmpSys)
-	{
-	  tmpSys->debug();
-	  tmpSys = tmpIt->nextElement();
-	}
+        {
+          tmpSys->debug();
+          tmpSys = tmpIt->nextElement();
+        }
       delete tmpIt;
     }
Index: orxonox/trunk/src/lib/particles/particle_system.cc
===================================================================
--- orxonox/trunk/src/lib/particles/particle_system.cc	(revision 4556)
+++ orxonox/trunk/src/lib/particles/particle_system.cc	(revision 4597)
@@ -1,3 +1,3 @@
-/* 
+/*
    orxonox - the future of 3D-vertical-scrollers
 
@@ -41,4 +41,5 @@
 {
   this->setClassID(CL_PARTICLE_SYSTEM, "ParticleSystem");
+
   this->material = NULL;
   this->maxCount = maxCount;
@@ -125,5 +126,5 @@
 /**
    \brief Sets the lifespan of newly created particles
-*/   
+*/
 void ParticleSystem::setLifeSpan(float lifeSpan, float randomLifeSpan)
 {
@@ -197,19 +198,19 @@
 {
   Particle* tickPart = particles;  // the particle to Tick
-  Particle* prevPart = NULL;       // 
+  Particle* prevPart = NULL;       //
   while (likely(tickPart != NULL))
     {
       // applying force to the System.
       if (likely (tickPart->mass > 0.0))
-	tickPart->velocity += tickPart->extForce / tickPart->mass * dt;
+        tickPart->velocity += tickPart->extForce / tickPart->mass * dt;
 
       // rendering new position.
       tickPart->position = tickPart->position + tickPart->velocity * dt;
       tickPart->radius = radiusAnim.getValue(tickPart->lifeCycle)
-	+ randRadiusAnim.getValue(tickPart->lifeCycle) * tickPart->radiusRand;
+        + randRadiusAnim.getValue(tickPart->lifeCycle) * tickPart->radiusRand;
 
       tickPart->mass = massAnim.getValue(tickPart->lifeCycle)
-	+ randMassAnim.getValue(tickPart->lifeCycle) * tickPart->massRand;
-      
+        + randMassAnim.getValue(tickPart->lifeCycle) * tickPart->massRand;
+
       tickPart->extForce = Vector(0,0,0);
 
@@ -223,35 +224,35 @@
 
       if (this->conserve < 1.0)
-	tickPart->velocity = tickPart->velocity * this->conserve;
+        tickPart->velocity = tickPart->velocity * this->conserve;
       // find out if we have to delete tickPart
       if (unlikely((tickPart->lifeCycle += dt/tickPart->lifeTime) >= 1.0))
-	{
-	  // remove the particle from the list
-	  if (likely(prevPart != NULL))
-	    {
-	      prevPart->next = tickPart->next;
-	      tickPart->next = this->deadList;
-	      this->deadList = tickPart;
-	      tickPart = prevPart->next;
-	    }
-	  else
-	    {
-	      prevPart = NULL;
-	      this->particles = tickPart->next;
-	      tickPart->next = this->deadList;
-	      this->deadList = tickPart;
-	      tickPart = this->particles;
-	    }
-	  --this->count;
-	}
+        {
+          // remove the particle from the list
+          if (likely(prevPart != NULL))
+            {
+              prevPart->next = tickPart->next;
+              tickPart->next = this->deadList;
+              this->deadList = tickPart;
+              tickPart = prevPart->next;
+            }
+          else
+            {
+              prevPart = NULL;
+              this->particles = tickPart->next;
+              tickPart->next = this->deadList;
+              this->deadList = tickPart;
+              tickPart = this->particles;
+            }
+          --this->count;
+        }
       else
-	{      
-	  prevPart = tickPart;
-	  tickPart = tickPart->next;
-	}
-    }
-}
-
-/** 
+        {
+          prevPart = tickPart;
+          tickPart = tickPart->next;
+        }
+    }
+}
+
+/**
     \brief applies some force to a Particle.
     \param field the Field to apply.
@@ -281,5 +282,5 @@
 
   Particle* drawPart = particles;
-      
+
   switch (this->particleType)
     {
@@ -289,48 +290,48 @@
       glDepthMask(GL_FALSE);
 
-      material->select(); 
+      material->select();
       //glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_ENV_MODE, GL_MODULATE);
-      
+
 
       while (likely(drawPart != NULL))
-	{
-	  glColor4fv(drawPart->color);
-	  //! \todo implement a faster code for the look-at Camera algorithm.
-
-	  const PNode* camera = State::getInstance()->getCamera();  //!< \todo MUST be different
-	  Vector cameraPos = camera->getAbsCoor();
-	  Vector cameraTargetPos = State::getInstance()->getCameraTarget()->getAbsCoor();
-	  Vector view = cameraTargetPos - cameraPos;
-	  Vector up = Vector(0, 1, 0);
-	  up = camera->getAbsDir().apply(up);
-	  Vector h = up.cross(view);
-	  Vector v = h.cross(view);
-	  h.normalize();
-	  v.normalize();
-	  v *= .5 * drawPart->radius;
-	  h *= .5 * drawPart->radius;
-
-	  glBegin(GL_TRIANGLE_STRIP);
-	  glTexCoord2i(1, 1);
-	  glVertex3f(drawPart->position.x - h.x - v.x,
-		     drawPart->position.y - h.y - v.y,
-		     drawPart->position.z - h.z - v.z);
-	  glTexCoord2i(0, 1);
-	  glVertex3f(drawPart->position.x - h.x + v.x,
-		     drawPart->position.y - h.y + v.y,
-		     drawPart->position.z - h.z + v.z);
-	  glTexCoord2i(1, 0);
-	  glVertex3f(drawPart->position.x + h.x - v.x,
-		     drawPart->position.y + h.y - v.y,
-		     drawPart->position.z + h.z - v.z);
-	  glTexCoord2i(0, 0);
-	  glVertex3f(drawPart->position.x + h.x + v.x,
-		     drawPart->position.y + h.y + v.y,
-		     drawPart->position.z + h.z + v.z);
-
-	  glEnd();
-  
-	  drawPart = drawPart->next;
-	}
+        {
+          glColor4fv(drawPart->color);
+          //! \todo implement a faster code for the look-at Camera algorithm.
+
+          const PNode* camera = State::getInstance()->getCamera();  //!< \todo MUST be different
+          Vector cameraPos = camera->getAbsCoor();
+          Vector cameraTargetPos = State::getInstance()->getCameraTarget()->getAbsCoor();
+          Vector view = cameraTargetPos - cameraPos;
+          Vector up = Vector(0, 1, 0);
+          up = camera->getAbsDir().apply(up);
+          Vector h = up.cross(view);
+          Vector v = h.cross(view);
+          h.normalize();
+          v.normalize();
+          v *= .5 * drawPart->radius;
+          h *= .5 * drawPart->radius;
+
+          glBegin(GL_TRIANGLE_STRIP);
+          glTexCoord2i(1, 1);
+          glVertex3f(drawPart->position.x - h.x - v.x,
+                     drawPart->position.y - h.y - v.y,
+                     drawPart->position.z - h.z - v.z);
+          glTexCoord2i(0, 1);
+          glVertex3f(drawPart->position.x - h.x + v.x,
+                     drawPart->position.y - h.y + v.y,
+                     drawPart->position.z - h.z + v.z);
+          glTexCoord2i(1, 0);
+          glVertex3f(drawPart->position.x + h.x - v.x,
+                     drawPart->position.y + h.y - v.y,
+                     drawPart->position.z + h.z - v.z);
+          glTexCoord2i(0, 0);
+          glVertex3f(drawPart->position.x + h.x + v.x,
+                     drawPart->position.y + h.y + v.y,
+                     drawPart->position.z + h.z + v.z);
+
+          glEnd();
+
+          drawPart = drawPart->next;
+        }
       glDepthMask(GL_TRUE);
       break;
@@ -340,26 +341,26 @@
       glBegin(GL_LINES);
       while (likely(drawPart != NULL))
-	{
-	  glColor4fv(drawPart->color);
-	  glVertex3f(drawPart->position.x, drawPart->position.y, drawPart->position.z);
-	  glVertex3f(drawPart->position.x - drawPart->velocity.x,
-		     drawPart->position.y - drawPart->velocity.y,
-		     drawPart->position.z - drawPart->velocity.z);
-	  drawPart = drawPart->next;
-	}
+        {
+          glColor4fv(drawPart->color);
+          glVertex3f(drawPart->position.x, drawPart->position.y, drawPart->position.z);
+          glVertex3f(drawPart->position.x - drawPart->velocity.x,
+                     drawPart->position.y - drawPart->velocity.y,
+                     drawPart->position.z - drawPart->velocity.z);
+          drawPart = drawPart->next;
+        }
       glEnd();
       break;
-      
+
     case PARTICLE_DOT:
       glBegin(GL_POINTS);
       while (likely(drawPart != NULL))
-	{
-	  glColor4fv(drawPart->color);
-
-	  glLineWidth(drawPart->radius);
-
-	  glVertex3f(drawPart->position.x, drawPart->position.y, drawPart->position.z);
-	  drawPart = drawPart->next;
-	}
+        {
+          glColor4fv(drawPart->color);
+
+          glLineWidth(drawPart->radius);
+
+          glVertex3f(drawPart->position.x, drawPart->position.y, drawPart->position.z);
+          drawPart = drawPart->next;
+        }
       glEnd();
       break;
@@ -380,35 +381,35 @@
       // if it is the first Particle
       if (unlikely(particles == NULL))
-	{
-	  if (likely(deadList != NULL))
-	    {
-	      this->particles = this->deadList;
-	      deadList = deadList->next;
-	    }
-	  else
-	    {
-	      PRINTF(5)("Generating new Particle\n");
-	      this->particles = new Particle;
-	    }
-	  this->particles->next = NULL;
-	}
+        {
+          if (likely(deadList != NULL))
+            {
+              this->particles = this->deadList;
+              deadList = deadList->next;
+            }
+          else
+            {
+              PRINTF(5)("Generating new Particle\n");
+              this->particles = new Particle;
+            }
+          this->particles->next = NULL;
+        }
       // filling the List from the beginning
       else
-	{
-	  Particle* tmpPart;
-	  if (likely(deadList != NULL))
-	    {
-	      tmpPart = this->deadList;
-	      deadList = deadList->next;
-	    }
-	  else
-	    {
-	      PRINTF(5)("Generating new Particle\n");
-	      tmpPart = new Particle;
-	    }
-	  tmpPart->next = this->particles;
-	  this->particles = tmpPart;
-	}
-      
+        {
+          Particle* tmpPart;
+          if (likely(deadList != NULL))
+            {
+              tmpPart = this->deadList;
+              deadList = deadList->next;
+            }
+          else
+            {
+              PRINTF(5)("Generating new Particle\n");
+              tmpPart = new Particle;
+            }
+          tmpPart->next = this->particles;
+          this->particles = tmpPart;
+        }
+
       particles->lifeTime = this->lifeSpan + (float)(rand()/RAND_MAX)* this->randomLifeSpan;
       particles->lifeCycle = 0.0;
Index: orxonox/trunk/src/lib/particles/particle_system.h
===================================================================
--- orxonox/trunk/src/lib/particles/particle_system.h	(revision 4556)
+++ orxonox/trunk/src/lib/particles/particle_system.h	(revision 4597)
@@ -1,3 +1,3 @@
-/*! 
+/*!
     \file particle_system.h
 
@@ -23,10 +23,13 @@
 
 //! An enumerator for the different types of particles.
-typedef enum PARTICLE_TYPE { PARTICLE_DOT           =  PARTICLE_DOT_MASK,
-			     PARTICLE_SPARK         =  PARTICLE_SPARK_MASK,
-			     PARTICLE_SPRITE        =  PARTICLE_SPRITE_MASK,
-			     PARTICLE_MULTI_SPRITE  =  PARTICLE_SPRITE_MASK | PARTICLE_MULTI_MASK,
-			     PARTICLE_MODEL         =  PARTICLE_MODEL_MASK,
-			     PARTICLE_MULTI_MODE    =  PARTICLE_MODEL_MASK | PARTICLE_MULTI_MASK };
+typedef enum PARTICLE_TYPE
+{
+  PARTICLE_DOT           =  PARTICLE_DOT_MASK,
+  PARTICLE_SPARK         =  PARTICLE_SPARK_MASK,
+  PARTICLE_SPRITE        =  PARTICLE_SPRITE_MASK,
+  PARTICLE_MULTI_SPRITE  =  PARTICLE_SPRITE_MASK | PARTICLE_MULTI_MASK,
+  PARTICLE_MODEL         =  PARTICLE_MODEL_MASK,
+  PARTICLE_MULTI_MODE    =  PARTICLE_MODEL_MASK | PARTICLE_MULTI_MASK
+};
 
 #define PARTICLE_DEFAULT_MAX_COUNT    200               //!< A default count of particles in the system.
@@ -59,8 +62,8 @@
 //! A class to handle ParticleSystems
 class ParticleSystem : public WorldEntity, public PhysicsInterface {
-  
+
  public:
   ParticleSystem(unsigned int maxCount = PARTICLE_DEFAULT_MAX_COUNT,
-		 PARTICLE_TYPE type = PARTICLE_DEFAULT_TYPE);
+                 PARTICLE_TYPE type = PARTICLE_DEFAULT_TYPE);
   virtual ~ParticleSystem();
 
@@ -116,5 +119,5 @@
 
   GLuint*           glID;                //!< A List of different gl-List-ID's
-  GLuint            dialectCount;        //!< How many different types of particles are there in the Particle System  
+  GLuint            dialectCount;        //!< How many different types of particles are there in the Particle System
 
   // per particle attributes
Index: orxonox/trunk/src/lib/particles/quick_animation.cc
===================================================================
--- orxonox/trunk/src/lib/particles/quick_animation.cc	(revision 4556)
+++ orxonox/trunk/src/lib/particles/quick_animation.cc	(revision 4597)
@@ -1,3 +1,3 @@
-/* 
+/*
    orxonox - the future of 3D-vertical-scrollers
 
@@ -27,5 +27,4 @@
 using namespace std;
 
-
 /**
    \brief standard constructor
@@ -33,5 +32,5 @@
 QuickAnimation::QuickAnimation (void)
 {
-   this->setClassName("QuickAnimation");
+   this->setClassID(CL_QUICK_ANIMATION, "QuickAnimation");
 
    this->first = this->current = NULL;
@@ -47,5 +46,5 @@
   this->current = this->first;
   QuickKeyFrame delKF;
-  
+
   while (this->current != NULL)
     {
@@ -54,5 +53,4 @@
       this->current = this->first;
     }
-
 }
 
@@ -70,9 +68,9 @@
       // if it is between some keyframes
       if ((!this->current->next && this->current->position < position)
-	  || (this->current->position < position && this->current->next->position > position))
-	break;
+          || (this->current->position < position && this->current->next->position > position))
+        break;
       // if it is the same as an already existing keyframe
       else if (this->current->position == position)
-	return false;
+        return false;
       this->current = this->current->next;
     }
@@ -92,5 +90,5 @@
   newKey->value = value;
   newKey->position = position;
-  
+
   this->current = this->first;
 
@@ -110,9 +108,9 @@
     {
       if (this->current->position < position+region && this->current->position > position-region)
-	{
-	  this->current->value = value;
-	  return true;
-	}
-      this->current = this->current->next;  
+        {
+          this->current->value = value;
+          return true;
+        }
+      this->current = this->current->next;
     }
   this->current = this->first;
@@ -122,18 +120,18 @@
 /*
   \param position The position where to find the Node to kill
-  
+
   bool QuickAnimation::removeEntry(float position)
   {
   this->current = this->first;
-  QuickKeyFrame* last = 
-  
+  QuickKeyFrame* last =
+
   while (this->current)
   {
   if (this->current->position == position)
   {
-  
-  
+
+
   }
-  this->current = this->current->next;  
+  this->current = this->current->next;
   }
   this->current = this->first;
@@ -145,5 +143,5 @@
    \param position the position to get the value from :)
 */
-float QuickAnimation::getValue(float position) 
+float QuickAnimation::getValue(float position)
 {
   if (unlikely(this->first == NULL))
@@ -154,16 +152,16 @@
     {
       if (unlikely(position < this->current->position))
-	{
-	  if (position <= this->first->position)
-	    return this->first->value;
-	  this->current = this->first;
-	}
+        {
+          if (position <= this->first->position)
+            return this->first->value;
+          this->current = this->first;
+        }
       while (likely(this->current->next != NULL && position > this->current->next->position))
-	this->current = this->current->next;
+        this->current = this->current->next;
       if (this->current->next == NULL)
-	return this->current->value;
-	       
+        return this->current->value;
+
       return this->current->value + (this->current->next->value - this->current->value)
-	* ((position-this->current->position) / (this->current->next->position -this->current->position));
+        * ((position-this->current->position) / (this->current->next->position -this->current->position));
     }
 }
Index: orxonox/trunk/src/lib/particles/quick_animation.h
===================================================================
--- orxonox/trunk/src/lib/particles/quick_animation.h	(revision 4556)
+++ orxonox/trunk/src/lib/particles/quick_animation.h	(revision 4597)
@@ -1,3 +1,3 @@
-/*! 
+/*!
     \file quick_animation.h
     \brief Definition of the QuickAnimation-class
@@ -21,4 +21,5 @@
    this class is optimized for a raising value. eg. 100 particles sorted
    by age.
+  \todo speedUP this stuff (especially getValue)
 */
 class QuickAnimation : public BaseObject {
