Index: orxonox/trunk/src/lib/coord/helper_parent.cc
===================================================================
--- orxonox/trunk/src/lib/coord/helper_parent.cc	(revision 4315)
+++ orxonox/trunk/src/lib/coord/helper_parent.cc	(revision 4318)
@@ -30,5 +30,5 @@
 HelperParent::HelperParent () 
 {
-   this->setClassName ("HelperParent");
+   this->setClassID(CL_HELPER_PARENT);
 }
 
Index: orxonox/trunk/src/lib/graphics/graphics_engine.cc
===================================================================
--- orxonox/trunk/src/lib/graphics/graphics_engine.cc	(revision 4315)
+++ orxonox/trunk/src/lib/graphics/graphics_engine.cc	(revision 4318)
@@ -34,5 +34,5 @@
   this->minFPS = 9999;
   this->maxFPS = 0;
-  this->setClassName ("GraphicsEngine");
+  this->setClassID(CL_GRAPHICS_ENGINE);
 
   this->fullscreen = false;
Index: orxonox/trunk/src/lib/graphics/light.cc
===================================================================
--- orxonox/trunk/src/lib/graphics/light.cc	(revision 4315)
+++ orxonox/trunk/src/lib/graphics/light.cc	(revision 4318)
@@ -34,5 +34,5 @@
 Light::Light(int lightNumber)
 {
-  this->setClassName("Light");
+  this->setClassID(CL_LIGHT);
   char tmpName[7];
   sprintf(tmpName, "Light%d", lightNumber);
@@ -205,5 +205,5 @@
 LightManager::LightManager () 
 {
-  this->setClassName ("LightManager");
+  this->setClassID(CL_LIGHT_MANAGER);
 
   glEnable (GL_LIGHTING);
Index: orxonox/trunk/src/lib/graphics/particles/particle_emitter.cc
===================================================================
--- orxonox/trunk/src/lib/graphics/particles/particle_emitter.cc	(revision 4315)
+++ orxonox/trunk/src/lib/graphics/particles/particle_emitter.cc	(revision 4318)
@@ -30,5 +30,5 @@
 		  float velocity)
 {
-   this->setClassName ("ParticleEmitter");
+   this->setClassID(CL_PARTICLE_EMITTER);
    this->direction = direction;
    this->setSpread(angle);
Index: orxonox/trunk/src/lib/graphics/particles/particle_engine.cc
===================================================================
--- orxonox/trunk/src/lib/graphics/particles/particle_engine.cc	(revision 4315)
+++ orxonox/trunk/src/lib/graphics/particles/particle_engine.cc	(revision 4318)
@@ -30,5 +30,5 @@
 ParticleEngine::ParticleEngine () 
 {
-   this->setClassName ("ParticleEngine");
+   this->setClassID(CL_PARTICLE_ENGINE);
 
    this->systemList = new tList<ParticleSystem>;
Index: orxonox/trunk/src/lib/graphics/particles/particle_system.cc
===================================================================
--- orxonox/trunk/src/lib/graphics/particles/particle_system.cc	(revision 4315)
+++ orxonox/trunk/src/lib/graphics/particles/particle_system.cc	(revision 4318)
@@ -34,5 +34,5 @@
 ParticleSystem::ParticleSystem (unsigned int maxCount, PARTICLE_TYPE type)
 {
-   this->setClassName ("ParticleSystem");
+   this->setClassID(CL_PARTICLE_SYSTEM);
    this->material = NULL;
    this->name = NULL;
Index: orxonox/trunk/src/lib/graphics/text_engine.cc
===================================================================
--- orxonox/trunk/src/lib/graphics/text_engine.cc	(revision 4315)
+++ orxonox/trunk/src/lib/graphics/text_engine.cc	(revision 4318)
@@ -51,5 +51,5 @@
 Text::Text(Font* font, int type)
 {
-  this->setClassName("Text");
+  this->setClassID(CL_TEXT);
 
   // initialize this Text
@@ -802,5 +802,5 @@
 TextEngine::TextEngine () 
 {
-   this->setClassName ("TextEngine");
+   this->setClassID(CL_TEXT_ENGINE);
    this->enableFonts();
 
Index: orxonox/trunk/src/lib/lang/base_object.cc
===================================================================
--- orxonox/trunk/src/lib/lang/base_object.cc	(revision 4315)
+++ orxonox/trunk/src/lib/lang/base_object.cc	(revision 4318)
@@ -42,8 +42,11 @@
 }
 
-void BaseObject::setClassName (const char* className)
+
+void BaseObject::setClassID (int id)
 {
-  this->className = className;
+  this->id = id;
 }
+
+
 
 bool BaseObject::isA (char* className)
Index: orxonox/trunk/src/lib/lang/base_object.h
===================================================================
--- orxonox/trunk/src/lib/lang/base_object.h	(revision 4315)
+++ orxonox/trunk/src/lib/lang/base_object.h	(revision 4318)
@@ -9,5 +9,5 @@
 
 #include "stdincl.h"
-
+#include "class_list.h"
 
 class BaseObject {
@@ -17,6 +17,9 @@
   virtual ~BaseObject ();
 
-  void setClassName (const char* className);
-  inline const char* getClassName(void) const { return this->className;};
+  //void setClassName (const char* className);
+  void setClassID(int id);
+
+  inline const char* getClassName(void) const { return "";};
+  inline int getClassID(void) const { return this->id; }
   bool isA (char* className);
 
@@ -26,4 +29,5 @@
  private:
   const char* className;
+  int id;
   bool finalized;
 };
