Index: code/branches/libraries2/src/orxonox/objects/CMakeLists.txt
===================================================================
--- code/branches/libraries2/src/orxonox/objects/CMakeLists.txt	(revision 5727)
+++ code/branches/libraries2/src/orxonox/objects/CMakeLists.txt	(revision 5728)
@@ -1,11 +1,7 @@
 ADD_SOURCE_FILES(ORXONOX_SRC_FILES
-  EventListener.cc
-  EventDispatcher.cc
-  EventTarget.cc
   GlobalShader.cc
   Level.cc
   Radar.cc
   Scene.cc
-  Script.cc
 )
 
Index: code/branches/libraries2/src/orxonox/objects/EventDispatcher.cc
===================================================================
--- code/branches/libraries2/src/orxonox/objects/EventDispatcher.cc	(revision 5727)
+++ 	(revision )
@@ -1,81 +1,0 @@
-/*
- *   ORXONOX - the hottest 3D action shooter ever to exist
- *                    > www.orxonox.net <
- *
- *
- *   License notice:
- *
- *   This program is free software; you can redistribute it and/or
- *   modify it under the terms of the GNU General Public License
- *   as published by the Free Software Foundation; either version 2
- *   of the License, or (at your option) any later version.
- *
- *   This program is distributed in the hope that it will be useful,
- *   but WITHOUT ANY WARRANTY; without even the implied warranty of
- *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *   GNU General Public License for more details.
- *
- *   You should have received a copy of the GNU General Public License
- *   along with this program; if not, write to the Free Software
- *   Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
- *
- *   Author:
- *      Fabian 'x3n' Landau
- *   Co-authors:
- *      ...
- *
- */
-
-#include "EventDispatcher.h"
-
-#include "core/CoreIncludes.h"
-#include "core/EventIncludes.h"
-#include "core/XMLPort.h"
-#include "EventTarget.h"
-
-namespace orxonox
-{
-    CreateFactory(EventDispatcher);
-
-    EventDispatcher::EventDispatcher(BaseObject* creator) : BaseObject(creator)
-    {
-        RegisterObject(EventDispatcher);
-    }
-
-    EventDispatcher::~EventDispatcher()
-    {
-        if (this->isInitialized())
-            for (std::list<EventTarget*>::iterator it = this->targets_.begin(); it != this->targets_.end(); ++it)
-                delete (*it);
-    }
-
-    void EventDispatcher::XMLPort(Element& xmlelement, XMLPort::Mode mode)
-    {
-        SUPER(EventDispatcher, XMLPort, xmlelement, mode);
-
-        XMLPortObject(EventDispatcher, EventTarget, "targets", addTarget, getTarget, xmlelement, mode);
-    }
-
-    void EventDispatcher::processEvent(Event& event)
-    {
-        for (std::list<EventTarget*>::iterator it = this->targets_.begin(); it != this->targets_.end(); ++it)
-            (*it)->fireEvent(event);
-    }
-
-    void EventDispatcher::addTarget(EventTarget* target)
-    {
-        this->targets_.push_back(target);
-    }
-
-    EventTarget* EventDispatcher::getTarget(unsigned int index) const
-    {
-        unsigned int i = 0;
-        for (std::list<EventTarget*>::const_iterator it = this->targets_.begin(); it != this->targets_.end(); ++it)
-        {
-            if (i == index)
-                return (*it);
-            ++i;
-        }
-        return 0;
-    }
-}
Index: code/branches/libraries2/src/orxonox/objects/EventDispatcher.h
===================================================================
--- code/branches/libraries2/src/orxonox/objects/EventDispatcher.h	(revision 5727)
+++ 	(revision )
@@ -1,57 +1,0 @@
-/*
- *   ORXONOX - the hottest 3D action shooter ever to exist
- *                    > www.orxonox.net <
- *
- *
- *   License notice:
- *
- *   This program is free software; you can redistribute it and/or
- *   modify it under the terms of the GNU General Public License
- *   as published by the Free Software Foundation; either version 2
- *   of the License, or (at your option) any later version.
- *
- *   This program is distributed in the hope that it will be useful,
- *   but WITHOUT ANY WARRANTY; without even the implied warranty of
- *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *   GNU General Public License for more details.
- *
- *   You should have received a copy of the GNU General Public License
- *   along with this program; if not, write to the Free Software
- *   Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
- *
- *   Author:
- *      Fabian 'x3n' Landau
- *   Co-authors:
- *      ...
- *
- */
-
-#ifndef _EventDispatcher_H__
-#define _EventDispatcher_H__
-
-#include "OrxonoxPrereqs.h"
-
-#include <list>
-#include "core/BaseObject.h"
-
-namespace orxonox
-{
-    class _OrxonoxExport EventDispatcher : public BaseObject
-    {
-        public:
-            EventDispatcher(BaseObject* creator);
-            virtual ~EventDispatcher();
-
-            virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode);
-
-            virtual void processEvent(Event& event);
-
-            void addTarget(EventTarget* target);
-            EventTarget* getTarget(unsigned int index) const;
-
-        private:
-            std::list<EventTarget*> targets_;
-    };
-}
-
-#endif /* _EventDispatcher_H__ */
Index: code/branches/libraries2/src/orxonox/objects/EventListener.cc
===================================================================
--- code/branches/libraries2/src/orxonox/objects/EventListener.cc	(revision 5727)
+++ 	(revision )
@@ -1,96 +1,0 @@
-/*
- *   ORXONOX - the hottest 3D action shooter ever to exist
- *                    > www.orxonox.net <
- *
- *
- *   License notice:
- *
- *   This program is free software; you can redistribute it and/or
- *   modify it under the terms of the GNU General Public License
- *   as published by the Free Software Foundation; either version 2
- *   of the License, or (at your option) any later version.
- *
- *   This program is distributed in the hope that it will be useful,
- *   but WITHOUT ANY WARRANTY; without even the implied warranty of
- *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *   GNU General Public License for more details.
- *
- *   You should have received a copy of the GNU General Public License
- *   along with this program; if not, write to the Free Software
- *   Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
- *
- *   Author:
- *      Fabian 'x3n' Landau
- *   Co-authors:
- *      ...
- *
- */
-
-#include "EventListener.h"
-
-#include "core/CoreIncludes.h"
-#include "core/XMLPort.h"
-
-namespace orxonox
-{
-    CreateFactory(EventListener);
-
-    EventListener::EventListener(BaseObject* creator) : BaseObject(creator)
-    {
-        RegisterObject(EventListener);
-
-        this->bActive_ = false;
-    }
-
-    EventListener::~EventListener()
-    {
-    }
-
-    void EventListener::XMLPort(Element& xmlelement, XMLPort::Mode mode)
-    {
-        SUPER(EventListener, XMLPort, xmlelement, mode);
-
-        XMLPortParam(EventListener, "event", setEventName, getEventName, xmlelement, mode);
-    }
-
-    void EventListener::processEvent(Event& event)
-    {
-        if (this->bActive_)
-        {
-            COUT(2) << "Warning: Detected Event loop in EventListener \"" << this->getName() << "\"" << std::endl;
-            return;
-        }
-
-        this->bActive_ = true;
-
-        this->fireEvent(event.activate_, event.originator_);
-
-        this->bActive_ = false;
-    }
-
-    void EventListener::setEventName(const std::string& eventname)
-    {
-        this->eventName_ = eventname;
-
-        if (this->eventName_ == "")
-            return;
-
-        for (ObjectList<BaseObject>::iterator it = ObjectList<BaseObject>::begin(); it != ObjectList<BaseObject>::end(); ++it)
-            if (it->getName() == this->eventName_)
-                this->registerAsListener(*it);
-    }
-
-    void EventListener::loadedNewXMLName(BaseObject* object)
-    {
-        if (this->eventName_ == "")
-            return;
-
-        if (object->getName() == this->eventName_)
-            this->registerAsListener(object);
-    }
-
-    void EventListener::registerAsListener(BaseObject* object)
-    {
-        object->registerEventListener(this, "");
-    }
-}
Index: code/branches/libraries2/src/orxonox/objects/EventListener.h
===================================================================
--- code/branches/libraries2/src/orxonox/objects/EventListener.h	(revision 5727)
+++ 	(revision )
@@ -1,63 +1,0 @@
-/*
- *   ORXONOX - the hottest 3D action shooter ever to exist
- *                    > www.orxonox.net <
- *
- *
- *   License notice:
- *
- *   This program is free software; you can redistribute it and/or
- *   modify it under the terms of the GNU General Public License
- *   as published by the Free Software Foundation; either version 2
- *   of the License, or (at your option) any later version.
- *
- *   This program is distributed in the hope that it will be useful,
- *   but WITHOUT ANY WARRANTY; without even the implied warranty of
- *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *   GNU General Public License for more details.
- *
- *   You should have received a copy of the GNU General Public License
- *   along with this program; if not, write to the Free Software
- *   Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
- *
- *   Author:
- *      Fabian 'x3n' Landau
- *   Co-authors:
- *      ...
- *
- */
-
-#ifndef _EventListener_H__
-#define _EventListener_H__
-
-#include "OrxonoxPrereqs.h"
-
-#include <string>
-#include "core/BaseObject.h"
-#include "core/XMLNameListener.h"
-
-namespace orxonox
-{
-    class _OrxonoxExport EventListener : public BaseObject, public XMLNameListener
-    {
-        public:
-            EventListener(BaseObject* creator);
-            virtual ~EventListener();
-
-            virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode);
-
-            virtual void processEvent(Event& event);
-
-            void setEventName(const std::string& eventname);
-            inline const std::string& getEventName() const
-                { return this->eventName_; }
-
-        private:
-            virtual void loadedNewXMLName(BaseObject* object);
-            void registerAsListener(BaseObject* object);
-
-            std::string eventName_;
-            bool bActive_;
-    };
-}
-
-#endif /* _EventListener_H__ */
Index: code/branches/libraries2/src/orxonox/objects/EventTarget.cc
===================================================================
--- code/branches/libraries2/src/orxonox/objects/EventTarget.cc	(revision 5727)
+++ 	(revision )
@@ -1,68 +1,0 @@
-/*
- *   ORXONOX - the hottest 3D action shooter ever to exist
- *                    > www.orxonox.net <
- *
- *
- *   License notice:
- *
- *   This program is free software; you can redistribute it and/or
- *   modify it under the terms of the GNU General Public License
- *   as published by the Free Software Foundation; either version 2
- *   of the License, or (at your option) any later version.
- *
- *   This program is distributed in the hope that it will be useful,
- *   but WITHOUT ANY WARRANTY; without even the implied warranty of
- *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *   GNU General Public License for more details.
- *
- *   You should have received a copy of the GNU General Public License
- *   along with this program; if not, write to the Free Software
- *   Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
- *
- *   Author:
- *      Fabian 'x3n' Landau
- *   Co-authors:
- *      ...
- *
- */
-
-#include "EventTarget.h"
-#include "core/CoreIncludes.h"
-
-namespace orxonox
-{
-    CreateFactory(EventTarget);
-
-    EventTarget::EventTarget(BaseObject* creator) : BaseObject(creator)
-    {
-        RegisterObject(EventTarget);
-    }
-
-    EventTarget::~EventTarget()
-    {
-    }
-
-    void EventTarget::changedName()
-    {
-        SUPER(EventTarget, changedName);
-
-        for (ObjectList<BaseObject>::iterator it = ObjectList<BaseObject>::begin(); it != ObjectList<BaseObject>::end(); ++it)
-            if (it->getName() == this->getName())
-                this->addAsEvent(*it);
-    }
-
-    void EventTarget::loadedNewXMLName(BaseObject* object)
-    {
-        if (this->getName() == "")
-            return;
-
-        if (object->getName() == this->getName())
-            this->addAsEvent(object);
-    }
-
-    void EventTarget::addAsEvent(BaseObject* object)
-    {
-        if (object != static_cast<BaseObject*>(this))
-            object->addEvent(this, "");
-    }
-}
Index: code/branches/libraries2/src/orxonox/objects/EventTarget.h
===================================================================
--- code/branches/libraries2/src/orxonox/objects/EventTarget.h	(revision 5727)
+++ 	(revision )
@@ -1,53 +1,0 @@
-/*
- *   ORXONOX - the hottest 3D action shooter ever to exist
- *                    > www.orxonox.net <
- *
- *
- *   License notice:
- *
- *   This program is free software; you can redistribute it and/or
- *   modify it under the terms of the GNU General Public License
- *   as published by the Free Software Foundation; either version 2
- *   of the License, or (at your option) any later version.
- *
- *   This program is distributed in the hope that it will be useful,
- *   but WITHOUT ANY WARRANTY; without even the implied warranty of
- *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *   GNU General Public License for more details.
- *
- *   You should have received a copy of the GNU General Public License
- *   along with this program; if not, write to the Free Software
- *   Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
- *
- *   Author:
- *      Fabian 'x3n' Landau
- *   Co-authors:
- *      ...
- *
- */
-
-#ifndef _EventTarget_H__
-#define _EventTarget_H__
-
-#include "OrxonoxPrereqs.h"
-
-#include "core/BaseObject.h"
-#include "core/XMLNameListener.h"
-
-namespace orxonox
-{
-    class _OrxonoxExport EventTarget : public BaseObject, public XMLNameListener
-    {
-        public:
-            EventTarget(BaseObject* creator);
-            virtual ~EventTarget();
-
-            virtual void changedName();
-
-        private:
-            virtual void loadedNewXMLName(BaseObject* object);
-            void addAsEvent(BaseObject* object);
-    };
-}
-
-#endif /* _EventTarget_H__ */
Index: code/branches/libraries2/src/orxonox/objects/Script.cc
===================================================================
--- code/branches/libraries2/src/orxonox/objects/Script.cc	(revision 5727)
+++ 	(revision )
@@ -1,64 +1,0 @@
-/*
- *   ORXONOX - the hottest 3D action shooter ever to exist
- *                    > www.orxonox.net <
- *
- *
- *   License notice:
- *
- *   This program is free software; you can redistribute it and/or
- *   modify it under the terms of the GNU General Public License
- *   as published by the Free Software Foundation; either version 2
- *   of the License, or (at your option) any later version.
- *
- *   This program is distributed in the hope that it will be useful,
- *   but WITHOUT ANY WARRANTY; without even the implied warranty of
- *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *   GNU General Public License for more details.
- *
- *   You should have received a copy of the GNU General Public License
- *   along with this program; if not, write to the Free Software
- *   Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
- *
- *   Author:
- *      Benjamin Knecht
- *   Co-authors:
- *      ...
- *
- */
-
-#include "Script.h"
-
-#include "core/CoreIncludes.h"
-#include "core/LuaState.h"
-#include "core/XMLPort.h"
-
-namespace orxonox
-{
-    CreateFactory(Script);
-
-    Script::Script(BaseObject* creator) : BaseObject(creator)
-    {
-        RegisterObject(Script);
-
-        // Get a new LuaState
-        luaState_ = new LuaState();
-    }
-
-    Script::~Script()
-    {
-        if (this->isInitialized())
-            delete luaState_;
-    }
-
-    void Script::XMLPort(Element& xmlelement, XMLPort::Mode mode)
-    {
-        BaseObject::XMLPort(xmlelement, mode);
-
-        XMLPortParam(Script, "code", setCode, getCode, xmlelement, mode);
-    }
-
-    void Script::execute()
-    {
-        luaState_->doString(code_);
-    }
-}
Index: code/branches/libraries2/src/orxonox/objects/Script.h
===================================================================
--- code/branches/libraries2/src/orxonox/objects/Script.h	(revision 5727)
+++ 	(revision )
@@ -1,56 +1,0 @@
-/*
- *   ORXONOX - the hottest 3D action shooter ever to exist
- *                    > www.orxonox.net <
- *
- *
- *   License notice:
- *
- *   This program is free software; you can redistribute it and/or
- *   modify it under the terms of the GNU General Public License
- *   as published by the Free Software Foundation; either version 2
- *   of the License, or (at your option) any later version.
- *
- *   This program is distributed in the hope that it will be useful,
- *   but WITHOUT ANY WARRANTY; without even the implied warranty of
- *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *   GNU General Public License for more details.
- *
- *   You should have received a copy of the GNU General Public License
- *   along with this program; if not, write to the Free Software
- *   Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
- *
- *   Author:
- *      Benjamin Knecht
- *   Co-authors:
- *      ...
- *
- */
-
-#ifndef _Script_H__
-#define _Script_H__
-
-#include "OrxonoxPrereqs.h"
-
-#include <string>
-#include "core/BaseObject.h"
-
-namespace orxonox
-{
-    class _OrxonoxExport Script : public BaseObject
-    {
-    public:
-        Script(BaseObject* creator);
-        ~Script();
-        void XMLPort(Element& xmlelement, XMLPort::Mode mode);
-        void execute();
-
-        void setCode(const std::string& code) { code_ = code; }
-        const std::string& getCode() const { return code_; }
-
-    private:
-        std::string code_;
-        LuaState* luaState_;
-    };
-}
-
-#endif /* _Script_H__ */
Index: code/branches/libraries2/src/orxonox/objects/collisionshapes/BoxCollisionShape.cc
===================================================================
--- code/branches/libraries2/src/orxonox/objects/collisionshapes/BoxCollisionShape.cc	(revision 5727)
+++ 	(revision )
@@ -1,76 +1,0 @@
-/*
- *   ORXONOX - the hottest 3D action shooter ever to exist
- *                    > www.orxonox.net <
- *
- *
- *   License notice:
- *
- *   This program is free software; you can redistribute it and/or
- *   modify it under the terms of the GNU General Public License
- *   as published by the Free Software Foundation; either version 2
- *   of the License, or (at your option) any later version.
- *
- *   This program is distributed in the hope that it will be useful,
- *   but WITHOUT ANY WARRANTY; without even the implied warranty of
- *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *   GNU General Public License for more details.
- *
- *   You should have received a copy of the GNU General Public License
- *   along with this program; if not, write to the Free Software
- *   Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
- *
- *   Author:
- *      Reto Grieder
- *   Co-authors:
- *      ...
- *
- */
-
-#include "BoxCollisionShape.h"
-
-#include <BulletCollision/CollisionShapes/btBoxShape.h>
-
-#include "core/CoreIncludes.h"
-#include "core/XMLPort.h"
-#include "tools/BulletConversions.h"
-
-namespace orxonox
-{
-    CreateFactory(BoxCollisionShape);
-
-    BoxCollisionShape::BoxCollisionShape(BaseObject* creator) : CollisionShape(creator)
-    {
-        RegisterObject(BoxCollisionShape);
-
-        this->halfExtents_ = Vector3(1, 1, 1);
-        updateShape();
-
-        this->registerVariables();
-    }
-
-    BoxCollisionShape::~BoxCollisionShape()
-    {
-        if (this->isInitialized())
-            delete this->collisionShape_;
-    }
-
-    void BoxCollisionShape::registerVariables()
-    {
-        registerVariable(this->halfExtents_, VariableDirection::ToClient, new NetworkCallback<CollisionShape>(this, &CollisionShape::updateShape));
-    }
-
-    void BoxCollisionShape::XMLPort(Element& xmlelement, XMLPort::Mode mode)
-    {
-        SUPER(BoxCollisionShape, XMLPort, xmlelement, mode);
-
-        XMLPortParam(BoxCollisionShape, "halfExtents",  setHalfExtents,  getHalfExtents,  xmlelement, mode);
-        XMLPortParamLoadOnly(BoxCollisionShape, "width",  setWidth,  xmlelement, mode);
-        XMLPortParamLoadOnly(BoxCollisionShape, "height", setHeight, xmlelement, mode);    
-        XMLPortParamLoadOnly(BoxCollisionShape, "length", setLength, xmlelement, mode);    
-    }
-
-    btCollisionShape* BoxCollisionShape::createNewShape() const
-    {
-        return new btBoxShape(multi_cast<btVector3>(this->halfExtents_));
-    }
-}
Index: code/branches/libraries2/src/orxonox/objects/collisionshapes/BoxCollisionShape.h
===================================================================
--- code/branches/libraries2/src/orxonox/objects/collisionshapes/BoxCollisionShape.h	(revision 5727)
+++ 	(revision )
@@ -1,75 +1,0 @@
-/*
- *   ORXONOX - the hottest 3D action shooter ever to exist
- *                    > www.orxonox.net <
- *
- *
- *   License notice:
- *
- *   This program is free software; you can redistribute it and/or
- *   modify it under the terms of the GNU General Public License
- *   as published by the Free Software Foundation; either version 2
- *   of the License, or (at your option) any later version.
- *
- *   This program is distributed in the hope that it will be useful,
- *   but WITHOUT ANY WARRANTY; without even the implied warranty of
- *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *   GNU General Public License for more details.
- *
- *   You should have received a copy of the GNU General Public License
- *   along with this program; if not, write to the Free Software
- *   Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
- *
- *   Author:
- *      Reto Grieder
- *   Co-authors:
- *      ...
- *
- */
-
-#ifndef _BoxCollisionShape_H__
-#define _BoxCollisionShape_H__
-
-#include "OrxonoxPrereqs.h"
-
-#include "util/Math.h"
-#include "CollisionShape.h"
-
-namespace orxonox
-{
-    class _OrxonoxExport BoxCollisionShape : public CollisionShape
-    {
-        public:
-            BoxCollisionShape(BaseObject* creator);
-            virtual ~BoxCollisionShape();
-
-            void registerVariables();
-            virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode);
-
-            inline void setHalfExtents(const Vector3& extents)
-                { this->halfExtents_ = extents; updateShape(); }
-            inline const Vector3& getHalfExtents() const
-                { return halfExtents_;}
-
-            inline void setWidth(float value)
-                { this->halfExtents_.z = value / 2; updateShape(); }
-            inline float getWidth() const
-                { return this->halfExtents_.z * 2; }
-
-            inline void setHeight(float value)
-                { this->halfExtents_.y = value / 2; updateShape(); }
-            inline float getHeight() const
-                { return this->halfExtents_.y * 2; }
-
-            inline void setLength(float value)
-                { this->halfExtents_.x = value / 2; updateShape(); }
-            inline float getLength() const
-                { return this->halfExtents_.x * 2; }
-
-        private:
-            btCollisionShape* createNewShape() const;
-
-            Vector3 halfExtents_;
-     };
-}
-
-#endif /* _BoxCollisionShape_H__ */
Index: code/branches/libraries2/src/orxonox/objects/collisionshapes/CMakeLists.txt
===================================================================
--- code/branches/libraries2/src/orxonox/objects/collisionshapes/CMakeLists.txt	(revision 5727)
+++ code/branches/libraries2/src/orxonox/objects/collisionshapes/CMakeLists.txt	(revision 5728)
@@ -1,9 +1,5 @@
 ADD_SOURCE_FILES(ORXONOX_SRC_FILES
-  BoxCollisionShape.cc
   CollisionShape.cc
   CompoundCollisionShape.cc
-  ConeCollisionShape.cc
-  PlaneCollisionShape.cc
-  SphereCollisionShape.cc
   WorldEntityCollisionShape.cc
 )
Index: code/branches/libraries2/src/orxonox/objects/collisionshapes/ConeCollisionShape.cc
===================================================================
--- code/branches/libraries2/src/orxonox/objects/collisionshapes/ConeCollisionShape.cc	(revision 5727)
+++ 	(revision )
@@ -1,75 +1,0 @@
-/*
- *   ORXONOX - the hottest 3D action shooter ever to exist
- *                    > www.orxonox.net <
- *
- *
- *   License notice:
- *
- *   This program is free software; you can redistribute it and/or
- *   modify it under the terms of the GNU General Public License
- *   as published by the Free Software Foundation; either version 2
- *   of the License, or (at your option) any later version.
- *
- *   This program is distributed in the hope that it will be useful,
- *   but WITHOUT ANY WARRANTY; without even the implied warranty of
- *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *   GNU General Public License for more details.
- *
- *   You should have received a copy of the GNU General Public License
- *   along with this program; if not, write to the Free Software
- *   Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
- *
- *   Author:
- *      Reto Grieder
- *   Co-authors:
- *      ...
- *
- */
-
-#include "ConeCollisionShape.h"
-
-#include <BulletCollision/CollisionShapes/btConeShape.h>
-
-#include "core/CoreIncludes.h"
-#include "core/XMLPort.h"
-
-namespace orxonox
-{
-    CreateFactory(ConeCollisionShape);
-
-    ConeCollisionShape::ConeCollisionShape(BaseObject* creator) : CollisionShape(creator)
-    {
-        RegisterObject(ConeCollisionShape);
-
-        this->radius_ = 1.0f;
-        this->height_ = 1.0f;
-        updateShape();
-
-        this->registerVariables();
-    }
-
-    ConeCollisionShape::~ConeCollisionShape()
-    {
-        if (this->isInitialized())
-            delete this->collisionShape_;
-    }
-
-    void ConeCollisionShape::registerVariables()
-    {
-        registerVariable(this->radius_, VariableDirection::ToClient, new NetworkCallback<CollisionShape>(this, &CollisionShape::updateShape));
-        registerVariable(this->height_, VariableDirection::ToClient, new NetworkCallback<CollisionShape>(this, &CollisionShape::updateShape));
-    }
-
-    void ConeCollisionShape::XMLPort(Element& xmlelement, XMLPort::Mode mode)
-    {
-        SUPER(ConeCollisionShape, XMLPort, xmlelement, mode);
-
-        XMLPortParam(ConeCollisionShape, "radius", setRadius, getRadius, xmlelement, mode);
-        XMLPortParam(ConeCollisionShape, "height", setHeight, getHeight, xmlelement, mode);    
-    }
-
-    btCollisionShape* ConeCollisionShape::createNewShape() const
-    {
-        return new btConeShape(this->radius_, this->height_);
-    }
-}
Index: code/branches/libraries2/src/orxonox/objects/collisionshapes/ConeCollisionShape.h
===================================================================
--- code/branches/libraries2/src/orxonox/objects/collisionshapes/ConeCollisionShape.h	(revision 5727)
+++ 	(revision )
@@ -1,64 +1,0 @@
-/*
- *   ORXONOX - the hottest 3D action shooter ever to exist
- *                    > www.orxonox.net <
- *
- *
- *   License notice:
- *
- *   This program is free software; you can redistribute it and/or
- *   modify it under the terms of the GNU General Public License
- *   as published by the Free Software Foundation; either version 2
- *   of the License, or (at your option) any later version.
- *
- *   This program is distributed in the hope that it will be useful,
- *   but WITHOUT ANY WARRANTY; without even the implied warranty of
- *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *   GNU General Public License for more details.
- *
- *   You should have received a copy of the GNU General Public License
- *   along with this program; if not, write to the Free Software
- *   Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
- *
- *   Author:
- *      Reto Grieder
- *   Co-authors:
- *      ...
- *
- */
-
-#ifndef _ConeCollisionShape_H__
-#define _ConeCollisionShape_H__
-
-#include "OrxonoxPrereqs.h"
-#include "CollisionShape.h"
-
-namespace orxonox
-{
-    class _OrxonoxExport ConeCollisionShape : public CollisionShape
-    {
-        public:
-            ConeCollisionShape(BaseObject* creator);
-            virtual ~ConeCollisionShape();
-
-            void registerVariables();
-            virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode);
-
-            inline void setRadius(float value)
-                { this->radius_ = value; updateShape(); }
-            inline float getRadius() const
-                { return radius_; }
-
-            inline void setHeight(float value)
-                { this->height_ = value; updateShape(); }
-            inline float getHeight() const
-                { return this->height_; }
-
-        private:
-            btCollisionShape* createNewShape() const;
-
-            float radius_;
-            float height_;
-     };
-}
-
-#endif /* _ConeCollisionShape_H__ */
Index: code/branches/libraries2/src/orxonox/objects/collisionshapes/PlaneCollisionShape.cc
===================================================================
--- code/branches/libraries2/src/orxonox/objects/collisionshapes/PlaneCollisionShape.cc	(revision 5727)
+++ 	(revision )
@@ -1,76 +1,0 @@
-/*
- *   ORXONOX - the hottest 3D action shooter ever to exist
- *                    > www.orxonox.net <
- *
- *
- *   License notice:
- *
- *   This program is free software; you can redistribute it and/or
- *   modify it under the terms of the GNU General Public License
- *   as published by the Free Software Foundation; either version 2
- *   of the License, or (at your option) any later version.
- *
- *   This program is distributed in the hope that it will be useful,
- *   but WITHOUT ANY WARRANTY; without even the implied warranty of
- *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *   GNU General Public License for more details.
- *
- *   You should have received a copy of the GNU General Public License
- *   along with this program; if not, write to the Free Software
- *   Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
- *
- *   Author:
- *      Martin Stypinski
- *   Co-authors:
- *      ...
- *
- */
-
-#include "PlaneCollisionShape.h"
-
-#include <BulletCollision/CollisionShapes/btStaticPlaneShape.h>
-
-#include "core/CoreIncludes.h"
-#include "core/XMLPort.h"
-#include "tools/BulletConversions.h"
-
-namespace orxonox
-{
-    CreateFactory(PlaneCollisionShape);
-
-    PlaneCollisionShape::PlaneCollisionShape(BaseObject* creator) : CollisionShape(creator)
-    {
-        RegisterObject(PlaneCollisionShape);
-
-        this->normal_ = Vector3(0, 1, 0);
-        this->offset_ = 0.0f;
-        updateShape();
-
-        this->registerVariables();
-    }
-
-    PlaneCollisionShape::~PlaneCollisionShape()
-    {
-        if (this->isInitialized())
-            delete this->collisionShape_;
-    }
-
-    void PlaneCollisionShape::registerVariables()
-    {
-        registerVariable(this->normal_, VariableDirection::ToClient, new NetworkCallback<CollisionShape>(this, &CollisionShape::updateShape));
-        registerVariable(this->offset_, VariableDirection::ToClient, new NetworkCallback<CollisionShape>(this, &CollisionShape::updateShape));
-    }
-
-    void PlaneCollisionShape::XMLPort(Element& xmlelement, XMLPort::Mode mode)
-    {
-        SUPER(PlaneCollisionShape, XMLPort, xmlelement, mode);
-
-        XMLPortParam(PlaneCollisionShape, "normal", setNormal, getNormal, xmlelement, mode);
-        XMLPortParam(PlaneCollisionShape, "offset", setOffset, getOffset, xmlelement, mode);    
-    }
-
-    btCollisionShape* PlaneCollisionShape::createNewShape() const
-    {
-        return new btStaticPlaneShape(multi_cast<btVector3>(this->normal_), this->offset_);
-    }
-}
Index: code/branches/libraries2/src/orxonox/objects/collisionshapes/PlaneCollisionShape.h
===================================================================
--- code/branches/libraries2/src/orxonox/objects/collisionshapes/PlaneCollisionShape.h	(revision 5727)
+++ 	(revision )
@@ -1,66 +1,0 @@
-/*
- *   ORXONOX - the hottest 3D action shooter ever to exist
- *                    > www.orxonox.net <
- *
- *
- *   License notice:
- *
- *   This program is free software; you can redistribute it and/or
- *   modify it under the terms of the GNU General Public License
- *   as published by the Free Software Foundation; either version 2
- *   of the License, or (at your option) any later version.
- *
- *   This program is distributed in the hope that it will be useful,
- *   but WITHOUT ANY WARRANTY; without even the implied warranty of
- *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *   GNU General Public License for more details.
- *
- *   You should have received a copy of the GNU General Public License
- *   along with this program; if not, write to the Free Software
- *   Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
- *
- *   Author:
- *      Martin Stypinski
- *   Co-authors:
- *      ...
- *
- */
-
-#ifndef _PlaneCollisionShape_H__
-#define _PlaneCollisionShape_H__
-
-#include "OrxonoxPrereqs.h"
-
-#include "util/Math.h"
-#include "CollisionShape.h"
-
-namespace orxonox
-{
-    class _OrxonoxExport PlaneCollisionShape : public CollisionShape
-    {
-        public:
-            PlaneCollisionShape(BaseObject* creator);
-            virtual ~PlaneCollisionShape();
-
-            void registerVariables();
-            virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode);
-
-            inline void setNormal(const Vector3& normal)
-                { this->normal_ = normal; updateShape(); }
-            inline const Vector3& getNormal()
-                { return normal_;}
-
-            inline void setOffset(float offset)
-                { this->offset_ = offset; updateShape(); }
-            inline float getOffset()
-                { return this->offset_;}
-
-        private:
-            btCollisionShape* createNewShape()const;
-
-            Vector3 normal_;
-            float   offset_;
-     };
-}
-
-#endif /* _PlaneCollisionShape_H__ */
Index: code/branches/libraries2/src/orxonox/objects/collisionshapes/SphereCollisionShape.cc
===================================================================
--- code/branches/libraries2/src/orxonox/objects/collisionshapes/SphereCollisionShape.cc	(revision 5727)
+++ 	(revision )
@@ -1,72 +1,0 @@
-/*
- *   ORXONOX - the hottest 3D action shooter ever to exist
- *                    > www.orxonox.net <
- *
- *
- *   License notice:
- *
- *   This program is free software; you can redistribute it and/or
- *   modify it under the terms of the GNU General Public License
- *   as published by the Free Software Foundation; either version 2
- *   of the License, or (at your option) any later version.
- *
- *   This program is distributed in the hope that it will be useful,
- *   but WITHOUT ANY WARRANTY; without even the implied warranty of
- *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *   GNU General Public License for more details.
- *
- *   You should have received a copy of the GNU General Public License
- *   along with this program; if not, write to the Free Software
- *   Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
- *
- *   Author:
- *      Reto Grieder
- *   Co-authors:
- *      ...
- *
- */
-
-#include "SphereCollisionShape.h"
-
-#include <BulletCollision/CollisionShapes/btSphereShape.h>
-
-#include "core/CoreIncludes.h"
-#include "core/XMLPort.h"
-
-namespace orxonox
-{
-    CreateFactory(SphereCollisionShape);
-
-    SphereCollisionShape::SphereCollisionShape(BaseObject* creator) : CollisionShape(creator)
-    {
-        RegisterObject(SphereCollisionShape);
-
-        this->radius_ = 1.0f;
-        updateShape();
-
-        this->registerVariables();
-    }
-
-    SphereCollisionShape::~SphereCollisionShape()
-    {
-        if (this->isInitialized())
-            delete this->collisionShape_;
-    }
-
-    void SphereCollisionShape::registerVariables()
-    {
-        registerVariable(this->radius_, VariableDirection::ToClient, new NetworkCallback<CollisionShape>(this, &CollisionShape::updateShape));
-    }
-
-    void SphereCollisionShape::XMLPort(Element& xmlelement, XMLPort::Mode mode)
-    {
-        SUPER(SphereCollisionShape, XMLPort, xmlelement, mode);
-
-        XMLPortParam(SphereCollisionShape, "radius", setRadius, getRadius, xmlelement, mode);
-    }
-
-    btCollisionShape* SphereCollisionShape::createNewShape() const
-    {
-        return new btSphereShape(this->radius_);
-    }
-}
Index: code/branches/libraries2/src/orxonox/objects/collisionshapes/SphereCollisionShape.h
===================================================================
--- code/branches/libraries2/src/orxonox/objects/collisionshapes/SphereCollisionShape.h	(revision 5727)
+++ 	(revision )
@@ -1,58 +1,0 @@
-/*
- *   ORXONOX - the hottest 3D action shooter ever to exist
- *                    > www.orxonox.net <
- *
- *
- *   License notice:
- *
- *   This program is free software; you can redistribute it and/or
- *   modify it under the terms of the GNU General Public License
- *   as published by the Free Software Foundation; either version 2
- *   of the License, or (at your option) any later version.
- *
- *   This program is distributed in the hope that it will be useful,
- *   but WITHOUT ANY WARRANTY; without even the implied warranty of
- *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *   GNU General Public License for more details.
- *
- *   You should have received a copy of the GNU General Public License
- *   along with this program; if not, write to the Free Software
- *   Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
- *
- *   Author:
- *      Reto Grieder
- *   Co-authors:
- *      ...
- *
- */
-
-#ifndef _SphereCollisionShape_H__
-#define _SphereCollisionShape_H__
-
-#include "OrxonoxPrereqs.h"
-#include "CollisionShape.h"
-
-namespace orxonox
-{
-    class _OrxonoxExport SphereCollisionShape : public CollisionShape
-    {
-        public:
-            SphereCollisionShape(BaseObject* creator);
-            virtual ~SphereCollisionShape();
-
-            void registerVariables();
-            virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode);
-
-            inline void setRadius(float radius)
-                { this->radius_ = radius; updateShape(); }
-            inline float getRadius() const
-                { return this->radius_; }
-
-        private:
-            btCollisionShape* createNewShape() const;
-
-            float radius_;
-    };
-}
-
-#endif /* _SphereCollisionShape_H__ */
Index: code/branches/libraries2/src/orxonox/objects/worldentities/Attacher.cc
===================================================================
--- code/branches/libraries2/src/orxonox/objects/worldentities/Attacher.cc	(revision 5727)
+++ 	(revision )
@@ -1,120 +1,0 @@
-/*
- *   ORXONOX - the hottest 3D action shooter ever to exist
- *                    > www.orxonox.net <
- *
- *
- *   License notice:
- *
- *   This program is free software; you can redistribute it and/or
- *   modify it under the terms of the GNU General Public License
- *   as published by the Free Software Foundation; either version 2
- *   of the License, or (at your option) any later version.
- *
- *   This program is distributed in the hope that it will be useful,
- *   but WITHOUT ANY WARRANTY; without even the implied warranty of
- *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *   GNU General Public License for more details.
- *
- *   You should have received a copy of the GNU General Public License
- *   along with this program; if not, write to the Free Software
- *   Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
- *
- *   Author:
- *      Fabian 'x3n' Landau
- *   Co-authors:
- *      ...
- *
- */
-
-#include "Attacher.h"
-
-#include "core/CoreIncludes.h"
-#include "core/XMLPort.h"
-
-namespace orxonox
-{
-    CreateFactory(Attacher);
-
-    Attacher::Attacher(BaseObject* creator) : StaticEntity(creator)
-    {
-        RegisterObject(Attacher);
-
-        this->target_ = 0;
-    }
-
-    void Attacher::XMLPort(Element& xmlelement, XMLPort::Mode mode)
-    {
-        SUPER(Attacher, XMLPort, xmlelement, mode);
-
-        XMLPortParam(Attacher, "target", setTarget, getTarget, xmlelement, mode);
-        XMLPortObject(Attacher, WorldEntity, "", addObject, getObject, xmlelement, mode);
-    }
-
-    void Attacher::processEvent(Event& event)
-    {
-        for (std::list<WorldEntity*>::iterator it = this->objects_.begin(); it != this->objects_.end(); ++it)
-            (*it)->fireEvent(event);
-    }
-
-    void Attacher::changedActivity()
-    {
-        SUPER(Attacher, changedActivity);
-
-        for (std::list<WorldEntity*>::iterator it = this->objects_.begin(); it != this->objects_.end(); ++it)
-            (*it)->setActive(this->isActive());
-    }
-
-    void Attacher::changedVisibility()
-    {
-        SUPER(Attacher, changedVisibility);
-
-        for (std::list<WorldEntity*>::iterator it = this->objects_.begin(); it != this->objects_.end(); ++it)
-            (*it)->setVisible(this->isVisible());
-    }
-
-    void Attacher::addObject(WorldEntity* object)
-    {
-        this->objects_.push_back(object);
-
-        this->attach(object);
-    }
-
-    WorldEntity* Attacher::getObject(unsigned int index) const
-    {
-        unsigned int i = 0;
-        for (std::list<WorldEntity*>::const_iterator it = this->objects_.begin(); it != this->objects_.end(); ++it)
-        {
-            if (i == index)
-                return (*it);
-
-            ++i;
-        }
-        return 0;
-    }
-
-    void Attacher::setTarget(const std::string& target)
-    {
-        this->targetname_ = target;
-        this->target_ = 0;
-
-        if (this->targetname_ == "")
-            return;
-
-        for (ObjectList<WorldEntity>::iterator it = ObjectList<WorldEntity>::begin(); it != ObjectList<WorldEntity>::end(); ++it)
-            if (it->getName() == this->targetname_)
-                this->attachToParent(*it);
-    }
-
-    void Attacher::loadedNewXMLName(BaseObject* object)
-    {
-        if (this->target_ || this->targetname_ == "")
-            return;
-
-        WorldEntity* entity = orxonox_cast<WorldEntity*>(object);
-        if (entity && entity->getName() == this->targetname_)
-        {
-            this->target_ = entity;
-            this->attachToParent(entity);
-        }
-    }
-}
Index: code/branches/libraries2/src/orxonox/objects/worldentities/Attacher.h
===================================================================
--- code/branches/libraries2/src/orxonox/objects/worldentities/Attacher.h	(revision 5727)
+++ 	(revision )
@@ -1,69 +1,0 @@
-/*
- *   ORXONOX - the hottest 3D action shooter ever to exist
- *                    > www.orxonox.net <
- *
- *
- *   License notice:
- *
- *   This program is free software; you can redistribute it and/or
- *   modify it under the terms of the GNU General Public License
- *   as published by the Free Software Foundation; either version 2
- *   of the License, or (at your option) any later version.
- *
- *   This program is distributed in the hope that it will be useful,
- *   but WITHOUT ANY WARRANTY; without even the implied warranty of
- *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *   GNU General Public License for more details.
- *
- *   You should have received a copy of the GNU General Public License
- *   along with this program; if not, write to the Free Software
- *   Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
- *
- *   Author:
- *      Fabian 'x3n' Landau
- *   Co-authors:
- *      ...
- *
- */
-
-#ifndef _Attacher_H__
-#define _Attacher_H__
-
-#include "OrxonoxPrereqs.h"
-
-#include <list>
-#include <string>
-#include "core/XMLNameListener.h"
-#include "objects/worldentities/StaticEntity.h"
-
-namespace orxonox
-{
-    class _OrxonoxExport Attacher : public StaticEntity, public XMLNameListener
-    {
-        public:
-            Attacher(BaseObject* creator);
-            virtual ~Attacher() {}
-
-            virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode);
-
-            virtual void processEvent(Event& event);
-            virtual void changedActivity();
-            virtual void changedVisibility();
-
-            void addObject(WorldEntity* object);
-            WorldEntity* getObject(unsigned int index) const;
-
-            void setTarget(const std::string& target);
-            inline const std::string& getTarget() const
-                { return this->targetname_; }
-
-            void loadedNewXMLName(BaseObject* object);
-
-        private:
-            WorldEntity* target_;
-            std::string targetname_;
-            std::list<WorldEntity*> objects_;
-    };
-}
-
-#endif /* _Attacher_H__ */
Index: code/branches/libraries2/src/orxonox/objects/worldentities/CMakeLists.txt
===================================================================
--- code/branches/libraries2/src/orxonox/objects/worldentities/CMakeLists.txt	(revision 5727)
+++ code/branches/libraries2/src/orxonox/objects/worldentities/CMakeLists.txt	(revision 5728)
@@ -6,5 +6,4 @@
   ControllableEntity.cc
 
-  Attacher.cc
   Backlight.cc
   Billboard.cc
@@ -19,10 +18,7 @@
   ParticleEmitter.cc
   ParticleSpawner.cc
-  Planet.cc
   SpawnPoint.cc
   TeamSpawnPoint.cc
-  ForceField.cc
 )
 
 ADD_SUBDIRECTORY(pawns)
-ADD_SUBDIRECTORY(triggers)
Index: code/branches/libraries2/src/orxonox/objects/worldentities/ForceField.cc
===================================================================
--- code/branches/libraries2/src/orxonox/objects/worldentities/ForceField.cc	(revision 5727)
+++ 	(revision )
@@ -1,87 +1,0 @@
-/*
- *   ORXONOX - the hottest 3D action shooter ever to exist
- *                    > www.orxonox.net <
- *
- *
- *   License notice:
- *
- *   This program is free software; you can redistribute it and/or
- *   modify it under the terms of the GNU General Public License
- *   as published by the Free Software Foundation; either version 2
- *   of the License, or (at your option) any later version.
- *
- *   This program is distributed in the hope that it will be useful,
- *   but WITHOUT ANY WARRANTY; without even the implied warranty of
- *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *   GNU General Public License for more details.
- *
- *   You should have received a copy of the GNU General Public License
- *   along with this program; if not, write to the Free Software
- *   Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
- *
- *   Author:
- *      Aurelian Jaggi
- *   Co-authors:
- *      ...
- *
- */
-
-#include "ForceField.h"
-
-#include "core/CoreIncludes.h"
-#include "core/XMLPort.h"
-#include "objects/worldentities/MobileEntity.h"
-
-namespace orxonox
-{
-    CreateFactory(ForceField);
-
-    ForceField::ForceField(BaseObject* creator) : StaticEntity(creator)
-    {
-        RegisterObject(ForceField);
-
-        //Standard Values
-        this->setDirection(Vector3::ZERO);
-        velocity_ = 100;
-        diameter_ = 500;
-        length_ = 5000;
-    }
-
-    ForceField::~ForceField() {}
-
-    void ForceField::XMLPort(Element& xmlelement, XMLPort::Mode mode)
-    {
-        SUPER(ForceField, XMLPort, xmlelement, mode);
- 
-        //For correct xml import use: position, direction, velocity, scale
-        XMLPortParam(ForceField, "velocity", setVelocity, getVelocity, xmlelement, mode).defaultValues(100);
-        XMLPortParam(ForceField, "diameter", setDiameter, getDiameter, xmlelement, mode).defaultValues(500);
-        XMLPortParam(ForceField, "length"  , setLength  , getLength  , xmlelement, mode).defaultValues(2000);
-    }
-
-    void ForceField::tick(float dt)
-    {
-        for (ObjectList<MobileEntity>::iterator it = ObjectList<MobileEntity>::begin(); it != ObjectList<MobileEntity>::end(); ++it)
-        {
-            //calculate from
-            Vector3 directionVec = this->getOrientation() * WorldEntity::FRONT;
-            directionVec.normalise();
-
-            Vector3 distanceVec = it->getWorldPosition() - (this->getWorldPosition() + (this->length_ / 2 * directionVec));
-
-            //distance from centervector of the field (
-            float distFromCenterVec = ((it->getWorldPosition() - this->getWorldPosition()).crossProduct(directionVec)).length();
-
-            if (distanceVec.length() < this->length_ / 2 && distFromCenterVec < diameter_ / 2)
-            {
-                //normalize distance from center
-                it->applyCentralForce(((diameter_ / 2 - distFromCenterVec) / (diameter_ / 2)) * directionVec * velocity_);
-            }
-        }
-    }
-}
-
-
-
-
-
Index: code/branches/libraries2/src/orxonox/objects/worldentities/ForceField.h
===================================================================
--- code/branches/libraries2/src/orxonox/objects/worldentities/ForceField.h	(revision 5727)
+++ 	(revision )
@@ -1,74 +1,0 @@
-/*
- *   ORXONOX - the hottest 3D action shooter ever to exist
- *                    > www.orxonox.net <
- *
- *
- *   License notice:
- *
- *   This program is free software; you can redistribute it and/or
- *   modify it under the terms of the GNU General Public License
- *   as published by the Free Software Foundation; either version 2
- *   of the License, or (at your option) any later version.
- *
- *   This program is distributed in the hope that it will be useful,
- *   but WITHOUT ANY WARRANTY; without even the implied warranty of
- *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *   GNU General Public License for more details.
- *
- *   You should have received a copy of the GNU General Public License
- *   along with this program; if not, write to the Free Software
- *   Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
- *
- *   Author:
- *      Aurelian Jaggi
- *   Co-authors:
- *      ...
- *
- */
-
-
-#ifndef _ForceField_H__
-#define _ForceField_H__
-
-#include "OrxonoxPrereqs.h"
-
-#include "tools/interfaces/Tickable.h"
-#include "StaticEntity.h"
-
-namespace orxonox
-{
-    class _OrxonoxExport ForceField : public StaticEntity, public Tickable
-    {
-    public:
-        ForceField(BaseObject* creator);
-        virtual ~ForceField();
-        virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode);
-        virtual void tick(float dt);
-
-        inline void setVelocity(float vel)
-            { this->velocity_ = vel; }
-
-        inline float getVelocity()
-            { return velocity_; }
-
-        inline void setDiameter(float diam)
-            { this->diameter_ = diam; }
-
-        inline float getDiameter()
-            { return diameter_; }
-
-        inline void setLength(float l)
-            { this->length_ = l; }
-
-        inline float getLength()
-            { return length_; }
-
-    private:
-        float velocity_;
-        float diameter_;
-        float length_;
-  };
-}
-
-#endif
-
Index: code/branches/libraries2/src/orxonox/objects/worldentities/Planet.cc
===================================================================
--- code/branches/libraries2/src/orxonox/objects/worldentities/Planet.cc	(revision 5727)
+++ 	(revision )
@@ -1,175 +1,0 @@
-/*
- *   ORXONOX - the hottest 3D action shooter ever to exist
- *                    > www.orxonox.net <
- *
- *
- *   License notice:
- *
- *   This program is free software; you can redistribute it and/or
- *   modify it under the terms of the GNU General Public License
- *   as published by the Free Software Foundation; either version 2
- *   of the License, or (at your option) any later version.
- *
- *   This program is distributed in the hope that it will be useful,
- *   but WITHOUT ANY WARRANTY; without even the implied warranty of
- *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *   GNU General Public License for more details.
- *
- *   You should have received a copy of the GNU General Public License
- *   along with this program; if not, write to the Free Software
- *   Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
- *
- *   Author:
- *      Marian Runo
- *   Co-authors:
- *      ...
- *
- */
-
-#include "Planet.h"
-
-#include <OgreEntity.h>
-#include <OgreBillboardSet.h>
-#include <OgreProgressiveMesh.h>
-
-#include "core/CoreIncludes.h"
-#include "core/GameMode.h"
-#include "core/XMLPort.h"
-#include "objects/Scene.h"
-#include "Camera.h"
-#include "CameraManager.h"
-
-namespace orxonox
-{
-    CreateFactory(Planet);    
-
-    /**
-     * @brief Constructor
-     */
-    Planet::Planet(BaseObject* creator): MovableEntity(creator)
-    {
-        RegisterObject(Planet);
-        this->registerVariables();
-    }
-
-    /**
-     * @brief Destructor
-     */
-    Planet::~Planet()
-    {
-        if (this->isInitialized() && this->mesh_.getEntity())
-            this->detachOgreObject(this->mesh_.getEntity());
-    }    
-
-    void Planet::tick(float dt)
-    {
-        if(!this->isVisible())
-            return;
-
-        if (GameMode::showsGraphics())
-        {
-            Camera* activeCamera = CameraManager::getInstance().getActiveCamera();
-            if(activeCamera)
-            {
-                float distance = this->getPosition().distance( activeCamera->getWorldPosition() );
-                //             COUT(2) << distance << std::endl;
-                float planetRadius = this->getScale();
-
-                float newScale = 2 * distance / sqrt(distance*distance - planetRadius*planetRadius);
-                float tempTest = newScale*(1+float(this->atmosphereSize)/float(this->imageSize));
-                newScale = tempTest;
-
-                this->billboard_.getBillboardSet()->setDefaultDimensions(newScale, newScale);
-            }
-        }
-
-        SUPER(Planet, tick, dt);
-    }
-
-    void Planet::init()
-    {
-        float scaleFactor = this->getScale();
-
-        this->distList.push_back(10.0f*scaleFactor);
-        this->distList.push_back(19.0f*scaleFactor);
-        this->distList.push_back(27.0f*scaleFactor);
-        this->distList.push_back(34.0f*scaleFactor);
-        this->distList.push_back(40.0f*scaleFactor);
-        this->distList.push_back(45.0f*scaleFactor);
-        this->distList.push_back(49.0f*scaleFactor);
-        this->distList.push_back(52.0f*scaleFactor);
-        this->distList.push_back(54.0f*scaleFactor);
-        this->distList.push_back(55.0f*scaleFactor);
-
-        float reductionValue = 0.2f;
-
-        this->mesh_.getEntity()->getMesh()->generateLodLevels(distList, Ogre::ProgressiveMesh::VRQ_PROPORTIONAL, reductionValue);
-        billboard_.setBillboardSet(this->getScene()->getSceneManager(), this->atmosphere_, Vector3(0,0,0));
-
-        this->attachOgreObject(this->billboard_.getBillboardSet());    
-        this->billboard_.getBillboardSet()->setUseAccurateFacing(true);
-        this->setCastShadows(true);
-        this->billboard_.getBillboardSet()->setRenderQueueGroup(this->mesh_.getEntity()->getRenderQueueGroup());
-        this->mesh_.setCastShadows(true);
-    }
-
-    void Planet::changedMesh()
-    {
-        if (this->mesh_.getEntity())
-            this->detachOgreObject(this->mesh_.getEntity());
-
-        this->mesh_.setMeshSource(this->getScene()->getSceneManager(), this->meshSrc_);
-
-        if (this->mesh_.getEntity())
-        {
-            this->attachOgreObject(this->mesh_.getEntity());
-            this->mesh_.getEntity()->setCastShadows(this->bCastShadows_);
-            this->mesh_.setVisible(this->isVisible());
-        }
-        this->init();
-    }
-
-    void Planet::changedShadows()
-    {
-        this->mesh_.setCastShadows(this->bCastShadows_);
-    }
-
-    /**
-        @brief XML loading and saving.
-        @param xmlelement The XML-element
-        @param loading Loading (true) or saving (false)
-        @return The XML-element
-    */
-    void Planet::XMLPort(Element& xmlelement, XMLPort::Mode mode)
-    {
-        SUPER(Planet, XMLPort, xmlelement, mode);
-
-        if (GameMode::showsGraphics())
-        {
-            XMLPortParam(Planet, "atmosphere", setAtmosphere, getAtmosphere, xmlelement, mode).defaultValues("planet/Atmosphere");
-            XMLPortParam(Planet, "atmospheresize", setAtmosphereSize, getAtmosphereSize, xmlelement,mode);     
-            XMLPortParam(Planet, "imagesize", setImageSize, getImageSize, xmlelement,mode);         
-            XMLPortParam(Planet, "mesh", setMeshSource, getMeshSource, xmlelement, mode);
-            XMLPortParam(Planet, "shadow", setCastShadows, getCastShadows, xmlelement, mode).defaultValues(true);
-        }
-    }
-
-    void Planet::registerVariables()
-    {
-        registerVariable(this->atmosphere_, VariableDirection::ToClient);
-        registerVariable(this->meshSrc_, VariableDirection::ToClient, new NetworkCallback<Planet>(this, &Planet::changedMesh));
-        registerVariable(this->bCastShadows_, VariableDirection::ToClient, new NetworkCallback<Planet>(this, &Planet::changedShadows));
-        registerVariable(this->atmosphereSize, VariableDirection::ToClient);
-        registerVariable(this->imageSize, VariableDirection::ToClient);
-    }
-
-    void Planet::changedVisibility()
-    {
-        SUPER(Planet, changedVisibility);
-        if (this->isInitialized())
-        {
-            this->mesh_.setVisible(this->isVisible());
-            this->billboard_.setVisible(this->isVisible());
-        }
-    }
-}
Index: code/branches/libraries2/src/orxonox/objects/worldentities/Planet.h
===================================================================
--- code/branches/libraries2/src/orxonox/objects/worldentities/Planet.h	(revision 5727)
+++ 	(revision )
@@ -1,116 +1,0 @@
-/*
- *   ORXONOX - the hottest 3D action shooter ever to exist
- *                    > www.orxonox.net <
- *
- *
- *   License notice:
- *
- *   This program is free software; you can redistribute it and/or
- *   modify it under the terms of the GNU General Public License
- *   as published by the Free Software Foundation; either version 2
- *   of the License, or (at your option) any later version.
- *
- *   This program is distributed in the hope that it will be useful,
- *   but WITHOUT ANY WARRANTY; without even the implied warranty of
- *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *   GNU General Public License for more details.
- *
- *   You should have received a copy of the GNU General Public License
- *   along with this program; if not, write to the Free Software
- *   Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
- *
- *   Author:
- *      Marian Runo
- *   Co-authors:
- *      ...
- *
- */
-
-#ifndef _Planet_H__
-#define _Planet_H__
-
-#include "OrxonoxPrereqs.h"
-
-#include <string>
-#include "tools/BillboardSet.h"
-#include "tools/Mesh.h"
-#include "MovableEntity.h"
-
-namespace orxonox
-{
-    class _OrxonoxExport Planet : public MovableEntity
-    {
-        public:
-            Planet(BaseObject* creator);
-            
-            virtual ~Planet();
-            
-            void init();
-            virtual void tick(float dt);
-            
-            virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode);
-            
-            virtual void changedVisibility();
-            
-            inline void setMeshSource(const std::string& meshname)
-                { this->meshSrc_ = meshname; this->changedMesh(); }
-                
-            inline const std::string& getMeshSource() const
-                { return this->meshSrc_; }
-
-            inline void setCastShadows(bool bCastShadows)
-                { this->bCastShadows_ = bCastShadows; this->changedShadows(); }
-                
-            inline bool getCastShadows() const
-                { return this->bCastShadows_; }            
-            
-            inline const std::string& getMesh() const{
-                return this->meshSrc_;
-            }
-            
-            inline void setAtmosphereSize(float size){
-                this->atmosphereSize = size;
-            }
-            
-            inline float getAtmosphereSize(){
-                return this->atmosphereSize;
-            }
-            
-            inline void setAtmosphere(const std::string& atmosphere){
-                this->atmosphere_ = atmosphere;
-            }
-            
-            inline const std::string& getAtmosphere(){
-                return this->atmosphere_;
-            }
-            
-            inline void setImageSize(float size){
-                this->imageSize = size;
-            }
-            
-            inline float getImageSize(){
-                return this->imageSize;
-            }
-
-        protected:
-            void registerVariables();
-
-        private:
-        
-            void changedMesh();
-            void changedShadows();
-            
-            std::string meshSrc_;
-            std::string atmosphere_;
-            Mesh mesh_;
-            float atmosphereSize;
-            float imageSize;
-            std::vector<float> distList;
-            BillboardSet billboard_;
-            bool bCastShadows_;
-
-    };
-}
-
-#endif
-
