Index: code/branches/presentation2012merge/src/modules/gametypes/SpaceRaceManager.cc
===================================================================
--- code/branches/presentation2012merge/src/modules/gametypes/SpaceRaceManager.cc	(revision 9271)
+++ code/branches/presentation2012merge/src/modules/gametypes/SpaceRaceManager.cc	(revision 9272)
@@ -149,5 +149,5 @@
             }
             else
-			{
+            {
                 // adjust the radarvisibility
                 gametype->newCheckpointReached(newCheckpoint, player);
Index: code/branches/presentation2012merge/src/modules/pickup/items/DamageBoostPickup.cc
===================================================================
--- code/branches/presentation2012merge/src/modules/pickup/items/DamageBoostPickup.cc	(revision 9271)
+++ code/branches/presentation2012merge/src/modules/pickup/items/DamageBoostPickup.cc	(revision 9272)
@@ -70,6 +70,6 @@
     void DamageBoostPickup::initialize(void)
     {
-    	this->duration_ = 0.0f;
-    	this->damageMultiplier_ = 1.0f; //The default damage multiplier.
+        this->duration_ = 0.0f;
+        this->damageMultiplier_ = 1.0f; //The default damage multiplier.
         //Defines who is allowed to pick up the pickup.
         this->addTarget(ClassIdentifier<SpaceShip>::getIdentifier());
@@ -130,5 +130,5 @@
         SpaceShip* ship = this->carrierToSpaceShipHelper();
         if(ship == NULL) // If the PickupCarrier is no SpaceShip, then this pickup is useless and therefore is destroyed.
-           	this->Pickupable::destroy();
+            this->Pickupable::destroy();
 
 
Index: code/branches/presentation2012merge/src/modules/pickup/items/DamageBoostPickup.h
===================================================================
--- code/branches/presentation2012merge/src/modules/pickup/items/DamageBoostPickup.h	(revision 9271)
+++ code/branches/presentation2012merge/src/modules/pickup/items/DamageBoostPickup.h	(revision 9272)
@@ -57,5 +57,5 @@
             virtual void clone(OrxonoxClass*& item); //!< Creates a duplicate of the input OrxonoxClass.
 
-    	    /**
+            /**
             @brief Get the time the DamagePickup lasts.
             @return Returns the time in seconds the DamagePickup lasts.
@@ -95,5 +95,5 @@
 
             Timer durationTimer_; //!< Timer.
-	    float duration_; //! Duration of damage boost.
+            float duration_; //! Duration of damage boost.
 
     };
Index: code/branches/presentation2012merge/src/modules/towerdefense/CMakeLists.txt
===================================================================
--- code/branches/presentation2012merge/src/modules/towerdefense/CMakeLists.txt	(revision 9271)
+++ code/branches/presentation2012merge/src/modules/towerdefense/CMakeLists.txt	(revision 9272)
@@ -5,5 +5,5 @@
   TowerDefenseHUDController.cc
   TowerDefensePlayerStats.cc
-  
+
 )
 
@@ -13,5 +13,5 @@
   LINK_LIBRARIES
     orxonox
-	overlays
+    overlays
   SOURCE_FILES ${TOWERDEFENSE_SRC_FILES}
 )
Index: code/branches/presentation2012merge/src/modules/towerdefense/TDEnemy.h
===================================================================
--- code/branches/presentation2012merge/src/modules/towerdefense/TDEnemy.h	(revision 9271)
+++ code/branches/presentation2012merge/src/modules/towerdefense/TDEnemy.h	(revision 9272)
@@ -13,7 +13,7 @@
 
 private:
-	float health;
-	float speed;
-	float armour;
+    float health;
+    float speed;
+    float armour;
 
 
Index: code/branches/presentation2012merge/src/modules/towerdefense/Tower.cc
===================================================================
--- code/branches/presentation2012merge/src/modules/towerdefense/Tower.cc	(revision 9271)
+++ code/branches/presentation2012merge/src/modules/towerdefense/Tower.cc	(revision 9272)
@@ -17,9 +17,9 @@
 {
     CreateFactory(Tower);
-	
+
     /**
-	 @brief
-	 Constructor. Registers and initializes the object.
-	 */
+    @brief
+        Constructor. Registers and initializes the object.
+    */
     Tower::Tower(BaseObject* creator) : Pawn(creator)
     {
@@ -34,32 +34,32 @@
         this->delay_ = false;
         this->delayTimer_.setTimer(0.2f, false, createExecutor(createFunctor(&TetrisStone::enableMovement, this)));
-		*/
+        */
     }
-	
-	void Tower::setOrientation(const Quaternion& orientation)
-	{
-		static int ori;
-		orxout() << "orientation " << ++ori << endl;
-	}
-	
-	void Tower::rotateYaw(const Vector2& value)
-	{
-		static int yaw;
-		orxout() << "rotateYaw " << ++yaw << endl;
-	}
-	
-	void Tower::rotatePitch(const Vector2& value)
-	{
-		static int pitch;
-		orxout() << "rotatePitch " << ++pitch << endl;
-	}
-	
-	void Tower::rotateRoll(const Vector2& value)
-	{
-		static int roll;
-		orxout() << "rotateRoll" << ++roll << endl;
-	}
-		
-	// This function is called whenever a player presses the up or the down key.
+
+    void Tower::setOrientation(const Quaternion& orientation)
+    {
+        static int ori;
+        orxout() << "orientation " << ++ori << endl;
+    }
+
+    void Tower::rotateYaw(const Vector2& value)
+    {
+        static int yaw;
+        orxout() << "rotateYaw " << ++yaw << endl;
+    }
+
+    void Tower::rotatePitch(const Vector2& value)
+    {
+        static int pitch;
+        orxout() << "rotatePitch " << ++pitch << endl;
+    }
+
+    void Tower::rotateRoll(const Vector2& value)
+    {
+        static int roll;
+        orxout() << "rotateRoll" << ++roll << endl;
+    }
+
+    // This function is called whenever a player presses the up or the down key.
     // You have to implement what happens when the up or the down key is pressed.
     // value.x < 0 means: down key is pressed.
@@ -75,27 +75,27 @@
 
     /**
-	 @brief
-	 Overloaded the function to rotate the stone.
-	 @param value
-	 A vector whose first component is the angle by which to rotate.
-	 */
-		 /*
+    @brief
+        Overloaded the function to rotate the stone.
+    @param value
+        A vector whose first component is the angle by which to rotate.
+    */
+    /*
     void Tower::moveFrontBack(const Vector2& value)
     {
         //orxout() << "frontBack.x: " << value.x << endl;
     }
-	*/
-	
+    */
+
     /**
-	 @brief
-	 Overloaded the function to steer the stone right and left
-	 @param value
-	 A vector whose first component is the direction in which we want to steer the stone.
-	 */
-		 /*
+    @brief
+        Overloaded the function to steer the stone right and left
+    @param value
+        A vector whose first component is the direction in which we want to steer the stone.
+    */
+    /*
     void Tower::moveRightLeft(const Vector2& value)
     {
-		//orxout() << "rightLeft.x: " << value.x << endl;
-		
+        //orxout() << "rightLeft.x: " << value.x << endl;
+
         if(!this->delay_)
         {
@@ -104,10 +104,10 @@
             if(!this->tetris_->isValidMove(this, newPos))
                 return;
-			
+
             this->setPosition(newPos);
             this->delay_ = true;
             this->delayTimer_.startTimer();
-		}
+        }
     }
-	*/
+    */
 }
Index: code/branches/presentation2012merge/src/modules/towerdefense/Tower.h
===================================================================
--- code/branches/presentation2012merge/src/modules/towerdefense/Tower.h	(revision 9271)
+++ code/branches/presentation2012merge/src/modules/towerdefense/Tower.h	(revision 9272)
@@ -10,5 +10,5 @@
 @brief
 See TowerDefenseReadme.txt for Information.
-    
+
 @ingroup TowerDefense
 */
@@ -20,5 +20,5 @@
 #include "towerdefense/TowerDefensePrereqs.h"
 #include "worldentities/pawns/SpaceShip.h"
-	
+
 
 namespace orxonox
@@ -26,24 +26,24 @@
     class _TowerDefenseExport Tower : public Pawn
     {
-	public:
-		Tower(BaseObject* creator);
-		virtual ~Tower() {};
-		
-		// Maybe later override these to move towers with cursor keys
-		/*
-		virtual void moveFrontBack(const Vector2& value);
-		virtual void moveRightLeft(const Vector2& value);
-		*/
-		
-		// Overriding these to stop towers from spasing out
-		void setOrientation(const Quaternion& orientation);
+    public:
+        Tower(BaseObject* creator);
+        virtual ~Tower() {};
+
+        // Maybe later override these to move towers with cursor keys
+        /*
+        virtual void moveFrontBack(const Vector2& value);
+        virtual void moveRightLeft(const Vector2& value);
+        */
+
+        // Overriding these to stop towers from spasing out
+        void setOrientation(const Quaternion& orientation);
         virtual void rotateYaw(const Vector2& value);
         virtual void rotatePitch(const Vector2& value);
         virtual void rotateRoll(const Vector2& value);
-		
-		void setGame(TowerDefense* towerdefense)
-		{ assert(towerdefense); game_ = towerdefense; }
-	private:
-		TowerDefense* game_;
+
+        void setGame(TowerDefense* towerdefense)
+        { assert(towerdefense); game_ = towerdefense; }
+    private:
+        TowerDefense* game_;
     };
 }
Index: code/branches/presentation2012merge/src/modules/towerdefense/TowerDefense.cc
===================================================================
--- code/branches/presentation2012merge/src/modules/towerdefense/TowerDefense.cc	(revision 9271)
+++ code/branches/presentation2012merge/src/modules/towerdefense/TowerDefense.cc	(revision 9272)
@@ -82,8 +82,8 @@
 #include "worldentities/pawns/SpaceShip.h"
 #include "controllers/WaypointController.h"
-	 
+
 #include "graphics/Model.h"
 #include "infos/PlayerInfo.h"
-	 
+
 #include "chat/ChatManager.h"
 
@@ -94,20 +94,20 @@
 {
     CreateUnloadableFactory(TowerDefense);
-	
-	TowerDefense::TowerDefense(BaseObject* creator) : Deathmatch(creator)
+
+    TowerDefense::TowerDefense(BaseObject* creator) : Deathmatch(creator)
     {
         RegisterObject(TowerDefense);
-		
+
         this->setHUDTemplate("TowerDefenseHUD");
 
-		this->stats_ = new TowerDefensePlayerStats();
-
-		/* Temporary hack to allow the player to add towers */
-		this->dedicatedAddTower_ = createConsoleCommand( "addTower", createExecutor( createFunctor(&TowerDefense::addTower, this) ) );
-    }
-	
+        this->stats_ = new TowerDefensePlayerStats();
+
+        /* Temporary hack to allow the player to add towers */
+        this->dedicatedAddTower_ = createConsoleCommand( "addTower", createExecutor( createFunctor(&TowerDefense::addTower, this) ) );
+    }
+
     TowerDefense::~TowerDefense()
     {
-		/* Part of a temporary hack to allow the player to add towers */
+        /* Part of a temporary hack to allow the player to add towers */
         if (this->isInitialized())
         {
@@ -116,193 +116,192 @@
         }
     }
-	
-	void TowerDefense::setCenterpoint(TowerDefenseCenterpoint *centerpoint)
-	{
-		orxout() << "Centerpoint now setting..." << endl;
-		this->center_ = centerpoint;
-		orxout() << "Centerpoint now set..." << endl;
-	}
-	
+
+    void TowerDefense::setCenterpoint(TowerDefenseCenterpoint *centerpoint)
+    {
+        orxout() << "Centerpoint now setting..." << endl;
+        this->center_ = centerpoint;
+        orxout() << "Centerpoint now set..." << endl;
+    }
+
     void TowerDefense::start()
     {
         Deathmatch::start();
-		
-		const int kInitialTowerCount = 3;
-		Coordinate initialTowerCoordinates[kInitialTowerCount] = {{3,2}, {8,5}, {12,10}};
-		
-		for (int i = 0; i < kInitialTowerCount; i++)
-		{
-			Coordinate coordinate = initialTowerCoordinates[i];
-			addTower(coordinate.x, coordinate.y);
-		}
-		
-		ChatManager::message("Use the console command addTower x y to add towers");
-
-		//TODO: let the player control his controllable entity && TODO: create a new ControllableEntity for the player
-	}
-	
-	void TowerDefense::end()
-	{
-		Deathmatch::end();
-	 
-		ChatManager::message("Match is over");
-	}
-	
-	void TowerDefense::addTower(int x, int y)
-	{
-		const TowerCost towerCost = TDDefaultTowerCost;
-		
-		if (!this->hasEnoughCreditForTower(towerCost))
-		{
-			orxout() << "not enough credit: " << (this->stats_->getCredit()) << " available, " << TDDefaultTowerCost << " needed.";
-			return;
-		}
-		
-		if (this->towerExists(x,y))
-		{
-			orxout() << "tower exists!!" << endl;
-			return;
-		}		
-		
-		/*
-		unsigned int width = this->center_->getWidth();
-		unsigned int height = this->center_->getHeight();
-		*/
-		
-		int tileScale = (int) this->center_->getTileScale();
-			
-		if (x > 15 || y > 15 || x < 0 || y < 0)
-		{
-			//Hard coded: TODO: let this depend on the centerpoint's height, width and fieldsize (fieldsize doesn't exist yet)
-			orxout() << "Can not add Tower: x and y should be between 0 and 15" << endl;
-			return;
-		}
-		
-		orxout() << "Will add tower at (" << (x-8) * tileScale << "," << (y-8) * tileScale << ")" << endl;
-		
-		// Add tower to coordinatesStack
-		Coordinate newTowerCoordinates = {x, y};
-		addedTowersCoordinates_.push_back(newTowerCoordinates);
-		
-		// Reduce credit
-		this->stats_->buyTower(towerCost);
-		
-		// Create tower
-		Tower* newTower = new Tower(this->center_);
-		newTower->addTemplate(this->center_->getTowerTemplate());
-
-		newTower->setPosition(static_cast<float>((x-8) * tileScale), static_cast<float>((y-8) * tileScale), 75);
-		newTower->setGame(this);
-	}
-	
-	bool TowerDefense::hasEnoughCreditForTower(TowerCost towerCost)
-	{
-		return ((this->stats_->getCredit()) >= towerCost);
-	}
-	
-	bool TowerDefense::towerExists(int x, int y)
-	{
-		for(std::vector<Coordinate>::iterator it = addedTowersCoordinates_.begin(); it != addedTowersCoordinates_.end(); ++it) 
-		{
-			Coordinate currentCoordinates = (Coordinate) (*it);
-			if (currentCoordinates.x == x && currentCoordinates.y == y)
-				return true;
-		}
-		
-		return false;
-	}
-	
-	
-	void TowerDefense::tick(float dt)
+
+        const int kInitialTowerCount = 3;
+        Coordinate initialTowerCoordinates[kInitialTowerCount] = {{3,2}, {8,5}, {12,10}};
+
+        for (int i = 0; i < kInitialTowerCount; i++)
+        {
+            Coordinate coordinate = initialTowerCoordinates[i];
+            addTower(coordinate.x, coordinate.y);
+        }
+
+        ChatManager::message("Use the console command addTower x y to add towers");
+
+        //TODO: let the player control his controllable entity && TODO: create a new ControllableEntity for the player
+    }
+
+    void TowerDefense::end()
+    {
+        Deathmatch::end();
+
+        ChatManager::message("Match is over");
+    }
+
+    void TowerDefense::addTower(int x, int y)
+    {
+        const TowerCost towerCost = TDDefaultTowerCost;
+
+        if (!this->hasEnoughCreditForTower(towerCost))
+        {
+            orxout() << "not enough credit: " << (this->stats_->getCredit()) << " available, " << TDDefaultTowerCost << " needed.";
+            return;
+        }
+
+        if (this->towerExists(x,y))
+        {
+            orxout() << "tower exists!!" << endl;
+            return;
+        }
+
+        /*
+        unsigned int width = this->center_->getWidth();
+        unsigned int height = this->center_->getHeight();
+        */
+
+        int tileScale = (int) this->center_->getTileScale();
+
+        if (x > 15 || y > 15 || x < 0 || y < 0)
+        {
+            //Hard coded: TODO: let this depend on the centerpoint's height, width and fieldsize (fieldsize doesn't exist yet)
+            orxout() << "Can not add Tower: x and y should be between 0 and 15" << endl;
+            return;
+        }
+
+        orxout() << "Will add tower at (" << (x-8) * tileScale << "," << (y-8) * tileScale << ")" << endl;
+
+        // Add tower to coordinatesStack
+        Coordinate newTowerCoordinates = {x, y};
+        addedTowersCoordinates_.push_back(newTowerCoordinates);
+
+        // Reduce credit
+        this->stats_->buyTower(towerCost);
+
+        // Create tower
+        Tower* newTower = new Tower(this->center_);
+        newTower->addTemplate(this->center_->getTowerTemplate());
+
+        newTower->setPosition(static_cast<float>((x-8) * tileScale), static_cast<float>((y-8) * tileScale), 75);
+        newTower->setGame(this);
+    }
+
+    bool TowerDefense::hasEnoughCreditForTower(TowerCost towerCost)
+    {
+        return ((this->stats_->getCredit()) >= towerCost);
+    }
+
+    bool TowerDefense::towerExists(int x, int y)
+    {
+        for(std::vector<Coordinate>::iterator it = addedTowersCoordinates_.begin(); it != addedTowersCoordinates_.end(); ++it)
+        {
+            Coordinate currentCoordinates = (Coordinate) (*it);
+            if (currentCoordinates.x == x && currentCoordinates.y == y)
+                return true;
+        }
+
+        return false;
+    }
+
+
+    void TowerDefense::tick(float dt)
     {
         SUPER(TowerDefense, tick, dt);
     }
-	
-	// Function to test if we can add waypoints using code only. Doesn't work yet
-	
-	// THE PROBLEM: WaypointController's getControllableEntity() returns null, so it won't track. How do we get the controlableEntity to NOT BE NULL???
-	/*
-	void TowerDefense::addWaypointsAndFirstEnemy()
-	{
-		SpaceShip *newShip = new SpaceShip(this->center_);
-		newShip->addTemplate("spaceshipassff");
-		
-		WaypointController *newController = new WaypointController(newShip);
-		newController->setAccuracy(3);
-		
-		Model *wayPoint1 = new Model(newController);
-		wayPoint1->setMeshSource("crate.mesh");	
-		wayPoint1->setPosition(7,-7,5);
-		wayPoint1->setScale(0.2);
-			
-		Model *wayPoint2 = new Model(newController);
-		wayPoint2->setMeshSource("crate.mesh");
-		wayPoint2->setPosition(7,7,5);
-		wayPoint2->setScale(0.2);
-			
-		newController->addWaypoint(wayPoint1);
-		newController->addWaypoint(wayPoint2);
-			
-		// The following line causes the game to crash
-
-		newShip->setController(newController);
-//		newController -> getPlayer() -> startControl(newShip);
-		newShip->setPosition(-7,-7,5);
-		newShip->setScale(0.1);
-		//newShip->addSpeed(1);
-		
-		
-		
-//		this->center_->attach(newShip);
-	}
-	*/
-	/*
-	 void TowerDefense::playerEntered(PlayerInfo* player)
-	 {
-	 Deathmatch::playerEntered(player);
-	 
-	 const std::string& message = player->getName() + " entered the game";
-	 ChatManager::message(message);
-	 }
-	 
-	 bool TowerDefense::playerLeft(PlayerInfo* player)
-	 {
-	 bool valid_player = Deathmatch::playerLeft(player);
-	 
-	 if (valid_player)
-	 {
-	 const std::string& message = player->getName() + " left the game";
-	 ChatManager::message(message);
-	 }
-	 
-	 return valid_player;
-	 }
-	 
-	 
-	 void TowerDefense::pawnKilled(Pawn* victim, Pawn* killer)
-	 {
-	 if (victim && victim->getPlayer())
-	 {
-	 std::string message;
-	 if (killer)
-	 {
-	 if (killer->getPlayer())
-	 message = victim->getPlayer()->getName() + " was killed by " + killer->getPlayer()->getName();
-	 else
-	 message = victim->getPlayer()->getName() + " was killed";
-	 }
-	 else
-	 message = victim->getPlayer()->getName() + " died";
-	 
-	 ChatManager::message(message);
-	 }
-	 
-	 Deathmatch::pawnKilled(victim, killer);
-	 }
-	 
-	 void TowerDefense::playerScored(PlayerInfo* player)
-	 {
-	 Gametype::playerScored(player);
-	 
-	 }*/
+
+    // Function to test if we can add waypoints using code only. Doesn't work yet
+
+    // THE PROBLEM: WaypointController's getControllableEntity() returns null, so it won't track. How do we get the controlableEntity to NOT BE NULL???
+    /*
+    void TowerDefense::addWaypointsAndFirstEnemy()
+    {
+        SpaceShip *newShip = new SpaceShip(this->center_);
+        newShip->addTemplate("spaceshipassff");
+
+        WaypointController *newController = new WaypointController(newShip);
+        newController->setAccuracy(3);
+
+        Model *wayPoint1 = new Model(newController);
+        wayPoint1->setMeshSource("crate.mesh");
+        wayPoint1->setPosition(7,-7,5);
+        wayPoint1->setScale(0.2);
+
+        Model *wayPoint2 = new Model(newController);
+        wayPoint2->setMeshSource("crate.mesh");
+        wayPoint2->setPosition(7,7,5);
+        wayPoint2->setScale(0.2);
+
+        newController->addWaypoint(wayPoint1);
+        newController->addWaypoint(wayPoint2);
+
+        // The following line causes the game to crash
+
+        newShip->setController(newController);
+//        newController -> getPlayer() -> startControl(newShip);
+        newShip->setPosition(-7,-7,5);
+        newShip->setScale(0.1);
+        //newShip->addSpeed(1);
+
+
+
+//      this->center_->attach(newShip);
+    }
+    */
+    /*
+    void TowerDefense::playerEntered(PlayerInfo* player)
+    {
+        Deathmatch::playerEntered(player);
+
+        const std::string& message = player->getName() + " entered the game";
+        ChatManager::message(message);
+    }
+
+    bool TowerDefense::playerLeft(PlayerInfo* player)
+    {
+        bool valid_player = Deathmatch::playerLeft(player);
+
+        if (valid_player)
+        {
+            const std::string& message = player->getName() + " left the game";
+            ChatManager::message(message);
+        }
+
+        return valid_player;
+    }
+
+
+    void TowerDefense::pawnKilled(Pawn* victim, Pawn* killer)
+    {
+        if (victim && victim->getPlayer())
+        {
+            std::string message;
+            if (killer)
+            {
+                if (killer->getPlayer())
+                    message = victim->getPlayer()->getName() + " was killed by " + killer->getPlayer()->getName();
+                else
+                    message = victim->getPlayer()->getName() + " was killed";
+            }
+            else
+                message = victim->getPlayer()->getName() + " died";
+
+            ChatManager::message(message);
+        }
+
+        Deathmatch::pawnKilled(victim, killer);
+    }
+
+    void TowerDefense::playerScored(PlayerInfo* player)
+    {
+        Gametype::playerScored(player);
+    }*/
 }
Index: code/branches/presentation2012merge/src/modules/towerdefense/TowerDefense.h
===================================================================
--- code/branches/presentation2012merge/src/modules/towerdefense/TowerDefense.h	(revision 9271)
+++ code/branches/presentation2012merge/src/modules/towerdefense/TowerDefense.h	(revision 9272)
@@ -26,12 +26,12 @@
  *
  */
-	 
+
  /**
-	 @brief
-	 GameType class for TowerDefense. See TowerDefenseReadme.txt for Information.
-	 
-	 @ingroup TowerDefense
+    @brief
+        GameType class for TowerDefense. See TowerDefenseReadme.txt for Information.
+
+    @ingroup TowerDefense
  */
-	 
+
 
 #ifndef _TowerDefense_H__
@@ -40,57 +40,57 @@
 #include "towerdefense/TowerDefensePrereqs.h"
 #include "gametypes/Deathmatch.h"
-		 
+
  #include "TowerDefensePlayerStats.h"
-		 
+
 namespace orxonox
 {
-	class _TowerDefenseExport TowerDefense : public Deathmatch
+    class _TowerDefenseExport TowerDefense : public Deathmatch
     {
-	public:
-		TowerDefense(BaseObject* creator);
-		virtual ~TowerDefense();
-		
-		virtual void start(); //<! The function is called when the gametype starts
-		virtual void end();
-		virtual void tick(float dt);
-		//virtual void playerEntered(PlayerInfo* player);
-		//virtual bool playerLeft(PlayerInfo* player);
-		
-		//virtual void pawnKilled(Pawn* victim, Pawn* killer = 0);
-		//virtual void playerScored(PlayerInfo* player);
-		
-		
-		/*	Called by TowerDefenseCenterpoint upon game start 
-			The centerpoint is used to create towers
-		*/
-		void setCenterpoint(TowerDefenseCenterpoint *centerpoint);
-		
-		/* Adds a tower at x, y in the playfield */
-		void addTower(int x, int y);
-		
-		/* Part of a temporary hack to allow the player to add towers */
-		ConsoleCommand* dedicatedAddTower_;
-		
-		//TODO: void spawnNewWave()
-	    //TODO: create a timer which regularly calls the spawnNewWave function  (time driven)
-		//      or spawn a new wave when the old wave has been killed           (event driven)
+    public:
+        TowerDefense(BaseObject* creator);
+        virtual ~TowerDefense();
+
+        virtual void start(); //<! The function is called when the gametype starts
+        virtual void end();
+        virtual void tick(float dt);
+        //virtual void playerEntered(PlayerInfo* player);
+        //virtual bool playerLeft(PlayerInfo* player);
+
+        //virtual void pawnKilled(Pawn* victim, Pawn* killer = 0);
+        //virtual void playerScored(PlayerInfo* player);
 
 
-	private:
-		TowerDefenseCenterpoint *center_;
-		
-		/* handles stats */
-		TowerDefensePlayerStats *stats_;
-		bool hasEnoughCreditForTower(TowerCost towerCost);
-	
-		bool towerExists(int x, int y);
-		
-		typedef struct {
-			int x;
-			int y;
-		} Coordinate; 
-		
-		std::vector<Coordinate> addedTowersCoordinates_;
-		std::vector<Tower*> towers_;
+        /*  Called by TowerDefenseCenterpoint upon game start
+            The centerpoint is used to create towers
+        */
+        void setCenterpoint(TowerDefenseCenterpoint *centerpoint);
+
+        /* Adds a tower at x, y in the playfield */
+        void addTower(int x, int y);
+
+        /* Part of a temporary hack to allow the player to add towers */
+        ConsoleCommand* dedicatedAddTower_;
+
+        //TODO: void spawnNewWave()
+        //TODO: create a timer which regularly calls the spawnNewWave function  (time driven)
+        //      or spawn a new wave when the old wave has been killed           (event driven)
+
+
+    private:
+        TowerDefenseCenterpoint *center_;
+
+        /* handles stats */
+        TowerDefensePlayerStats *stats_;
+        bool hasEnoughCreditForTower(TowerCost towerCost);
+
+        bool towerExists(int x, int y);
+
+        typedef struct {
+            int x;
+            int y;
+        } Coordinate;
+
+        std::vector<Coordinate> addedTowersCoordinates_;
+        std::vector<Tower*> towers_;
     };
 }
Index: code/branches/presentation2012merge/src/modules/towerdefense/TowerDefenseCenterpoint.cc
===================================================================
--- code/branches/presentation2012merge/src/modules/towerdefense/TowerDefenseCenterpoint.cc	(revision 9271)
+++ code/branches/presentation2012merge/src/modules/towerdefense/TowerDefenseCenterpoint.cc	(revision 9272)
@@ -50,12 +50,12 @@
     {
         RegisterObject(TowerDefenseCenterpoint);
- 
- 	   	this->width_ = 15;
+
+        this->width_ = 15;
         this->height_ = 15;
         this->towerTemplate_ = "";
-        
+
         //this->setCollisionType(Static);
 
-		this->checkGametype();
+        this->checkGametype();
 
     }
@@ -71,7 +71,7 @@
         XMLPortParam(TowerDefenseCenterpoint, "width", setWidth, getWidth, xmlelement, mode);
         XMLPortParam(TowerDefenseCenterpoint, "height", setHeight, getHeight, xmlelement, mode);
-		XMLPortParam(TowerDefenseCenterpoint, "tileScale", setTileScale, getTileScale, xmlelement, mode);
+        XMLPortParam(TowerDefenseCenterpoint, "tileScale", setTileScale, getTileScale, xmlelement, mode);
         XMLPortParam(TowerDefenseCenterpoint, "towerTemplate", setTowerTemplate, getTowerTemplate, xmlelement, mode);
-		
+
         //TODO: add XMLPortObject(TowerDefenseCenterpoint, WorldEntity, "waypoints", addWaypoint, getWaypoint,  xmlelement, mode);
         // This was copied and shightly modified from WaypointController.cc ; there are no getters and setters and no membervariable yet
@@ -100,7 +100,7 @@
     void TowerDefenseCenterpoint::checkGametype()
     {
-		if (this->getGametype() != NULL && this->getGametype()->isA(Class(TowerDefense)))
+        if (this->getGametype() != NULL && this->getGametype()->isA(Class(TowerDefense)))
         {
-			// Sets the centerpoint of the gametype. The gametype uses this to later spawn in towers, he needs the tower template stored in the center point
+            // Sets the centerpoint of the gametype. The gametype uses this to later spawn in towers, he needs the tower template stored in the center point
             TowerDefense* towerDefenseGametype = orxonox_cast<TowerDefense*>(this->getGametype().get());
             towerDefenseGametype->setCenterpoint(this);
Index: code/branches/presentation2012merge/src/modules/towerdefense/TowerDefenseCenterpoint.h
===================================================================
--- code/branches/presentation2012merge/src/modules/towerdefense/TowerDefenseCenterpoint.h	(revision 9271)
+++ code/branches/presentation2012merge/src/modules/towerdefense/TowerDefenseCenterpoint.h	(revision 9272)
@@ -54,5 +54,5 @@
             virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode);
             virtual void changedGametype();
-            
+
             /**
             @brief The width and hight in number of tiles. Default is 15 for both.
@@ -60,23 +60,23 @@
             void setWidth(unsigned int width)
                 { this->width_ = width; }
-            
-			unsigned int getWidth(void) const
+
+            unsigned int getWidth(void) const
                 { return this->width_; }
-                
+
             void setHeight(unsigned int height)
                 { this->height_ = height; }
-            
-			unsigned int getHeight(void) const
+
+            unsigned int getHeight(void) const
                 { return this->height_; }
-			
-			/**
-			@brief How to convert to world coordinates, e.g. that 0,15 is not at -8,-8 but at -80,-80 (if scale would be 10)
-			*/
-			void setTileScale(unsigned int tileScale)
-				{ this->tileScale_ = tileScale; }
-			
-			unsigned int getTileScale(void) const
-				{ return this->tileScale_; }
-                
+
+            /**
+                @brief How to convert to world coordinates, e.g. that 0,15 is not at -8,-8 but at -80,-80 (if scale would be 10)
+            */
+            void setTileScale(unsigned int tileScale)
+                { this->tileScale_ = tileScale; }
+
+            unsigned int getTileScale(void) const
+                { return this->tileScale_; }
+
             /**
             @brief Set the template for the towers.
@@ -85,15 +85,15 @@
             void setTowerTemplate(const std::string& templateName)
                 { this->towerTemplate_ = templateName; }
-            
-			const std::string& getTowerTemplate(void) const
+
+            const std::string& getTowerTemplate(void) const
                 { return this->towerTemplate_; }
 
         private:
             void checkGametype();
-            
+
             unsigned int width_;
             unsigned int height_;
-			unsigned int tileScale_;
-			
+            unsigned int tileScale_;
+
             std::string towerTemplate_;
     };
Index: code/branches/presentation2012merge/src/modules/towerdefense/TowerDefenseHUDController.cc
===================================================================
--- code/branches/presentation2012merge/src/modules/towerdefense/TowerDefenseHUDController.cc	(revision 9271)
+++ code/branches/presentation2012merge/src/modules/towerdefense/TowerDefenseHUDController.cc	(revision 9272)
@@ -25,5 +25,5 @@
  *      ...
  */
- 
+
 #include "TowerDefenseHUDController.h"
 
@@ -35,36 +35,36 @@
 namespace orxonox
 {
-	CreateFactory(TowerDefenseHUDController);
-	
+    CreateFactory(TowerDefenseHUDController);
+
     TowerDefenseHUDController::TowerDefenseHUDController(BaseObject* creator) : OverlayText(creator)
-	{
-		RegisterObject(TowerDefenseHUDController);
-	}
-	
-	TowerDefenseHUDController::~TowerDefenseHUDController()
-	{
-		
-	}
+    {
+        RegisterObject(TowerDefenseHUDController);
+    }
+
+    TowerDefenseHUDController::~TowerDefenseHUDController()
+    {
+
+    }
 
     void TowerDefenseHUDController::tick(float dt)
-	{
-		SUPER(TowerDefenseHUDController, tick, dt);
-	}
-	
+    {
+        SUPER(TowerDefenseHUDController, tick, dt);
+    }
+
     void TowerDefenseHUDController::XMLPort(Element& xmlelement, XMLPort::Mode mode)
-	{
-		SUPER(TowerDefenseHUDController, XMLPort, xmlelement, mode);
-	}
-	
+    {
+        SUPER(TowerDefenseHUDController, XMLPort, xmlelement, mode);
+    }
+
     void TowerDefenseHUDController::changedOwner()
     {
         SUPER(TowerDefenseHUDController, changedOwner);
-		/*
+        /*
         if (this->getOwner() != NULL && this->getOwner()->getGametype())
             this->owner_ = orxonox_cast<Pong*>(this->getOwner()->getGametype().get());
         else
             this->owner_ = 0;
-			*/
+        */
     }
-	
+
 }
Index: code/branches/presentation2012merge/src/modules/towerdefense/TowerDefenseHUDController.h
===================================================================
--- code/branches/presentation2012merge/src/modules/towerdefense/TowerDefenseHUDController.h	(revision 9271)
+++ code/branches/presentation2012merge/src/modules/towerdefense/TowerDefenseHUDController.h	(revision 9272)
@@ -26,12 +26,12 @@
  *
  */
-	 
+
  /**
-	 @brief
-	 This subclass of OverlayText is used to display the stats of the player in the HUD
-	 
-	 @ingroup TowerDefense
+    @brief
+        This subclass of OverlayText is used to display the stats of the player in the HUD
+
+    @ingroup TowerDefense
  */
-	 
+
 
 #ifndef _TowerDefenseHUDController_H__
@@ -48,11 +48,11 @@
     class _TowerDefenseExport TowerDefenseHUDController : public OverlayText, public Tickable
     {
-	public:
-		TowerDefenseHUDController(BaseObject* creator);
+    public:
+        TowerDefenseHUDController(BaseObject* creator);
         virtual ~TowerDefenseHUDController();
 
         virtual void tick(float dt);
         virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode);
-		virtual void changedOwner();
+        virtual void changedOwner();
     };
 }
Index: code/branches/presentation2012merge/src/modules/towerdefense/TowerDefensePlayerStats.cc
===================================================================
--- code/branches/presentation2012merge/src/modules/towerdefense/TowerDefensePlayerStats.cc	(revision 9271)
+++ code/branches/presentation2012merge/src/modules/towerdefense/TowerDefensePlayerStats.cc	(revision 9272)
@@ -25,20 +25,20 @@
  *      ...
  */
- 
+
 #include "TowerDefensePlayerStats.h"
 
 namespace orxonox
 {
-	const int kDefaultCredit = 200;
-	
+    const int kDefaultCredit = 200;
+
     TowerDefensePlayerStats::TowerDefensePlayerStats()
-	{
-		this->credit_ = kDefaultCredit;
-		this->waveNumber_ = 0;
-	}
-	/*
-	TowerDefensePlayerStats::~TowerDefensePlayerStats()
-	{
-	}
-	*/		
+    {
+        this->credit_ = kDefaultCredit;
+        this->waveNumber_ = 0;
+    }
+    /*
+    TowerDefensePlayerStats::~TowerDefensePlayerStats()
+    {
+    }
+    */
 }
Index: code/branches/presentation2012merge/src/modules/towerdefense/TowerDefensePlayerStats.h
===================================================================
--- code/branches/presentation2012merge/src/modules/towerdefense/TowerDefensePlayerStats.h	(revision 9271)
+++ code/branches/presentation2012merge/src/modules/towerdefense/TowerDefensePlayerStats.h	(revision 9272)
@@ -26,12 +26,12 @@
  *
  */
-	 
+
  /**
-	 @brief
-	 This manages the stats of the player. It is used by 'TowerDefense', the gametype
-	
-	 @ingroup TowerDefense
+    @brief
+        This manages the stats of the player. It is used by 'TowerDefense', the gametype
+
+    @ingroup TowerDefense
  */
-	 
+
 
 #ifndef _TowerDefensePlayerStats_H__
@@ -42,33 +42,33 @@
 namespace orxonox
 {
-	typedef enum _TowerCosts {
-		// Set to 0 for debug...
-		TDDefaultTowerCost = 0
-	} TowerCost;
-	
+    typedef enum _TowerCosts {
+        // Set to 0 for debug...
+        TDDefaultTowerCost = 0
+    } TowerCost;
+
     class _TowerDefenseExport TowerDefensePlayerStats
     {
-	public:
-		TowerDefensePlayerStats();
-		
-		inline int getCredit()
-			{ return credit_; }
-		
-		inline void setCredit(int credit)
-			{ credit_ = credit; }
-		
-		inline void buyTower(TowerCost cost)
-			{ credit_ -= cost;}
-		
-		inline int getWaveNumber()
-			{ return waveNumber_; }
-		
-		inline void didLoadNextWave()
-			{ waveNumber_++; }
-		
-	private:
-		int credit_;
-		int waveNumber_;
-		//int baseHealth_;
+    public:
+        TowerDefensePlayerStats();
+
+        inline int getCredit()
+            { return credit_; }
+
+        inline void setCredit(int credit)
+            { credit_ = credit; }
+
+        inline void buyTower(TowerCost cost)
+            { credit_ -= cost;}
+
+        inline int getWaveNumber()
+            { return waveNumber_; }
+
+        inline void didLoadNextWave()
+            { waveNumber_++; }
+
+    private:
+        int credit_;
+        int waveNumber_;
+        //int baseHealth_;
     };
 }
Index: code/branches/presentation2012merge/src/modules/towerdefense/TowerDefensePrereqs.h
===================================================================
--- code/branches/presentation2012merge/src/modules/towerdefense/TowerDefensePrereqs.h	(revision 9271)
+++ code/branches/presentation2012merge/src/modules/towerdefense/TowerDefensePrereqs.h	(revision 9272)
@@ -66,8 +66,8 @@
 {
     class TowerDefense;
-	class Tower;
+    class Tower;
     class TowerDefenseCenterpoint;
-	class TowerDefenseHUDController;
-	class TowerDefensePlayerStats;
+    class TowerDefenseHUDController;
+    class TowerDefensePlayerStats;
 }
 
