Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 18, 2017, 12:40:00 PM (7 years ago)
Author:
patricwi
Message:

rolled back to functional without 2 branches

Location:
code/branches/Presentation_HS17
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • code/branches/Presentation_HS17

  • code/branches/Presentation_HS17/src/orxonox/infos/GametypeInfo.cc

    r11686 r11690  
    4343#include "interfaces/GametypeMessageListener.h"
    4444#include "interfaces/NotificationListener.h"
    45 #include "scriptablecontroller/scriptable_controller.h"
    46 #include "Level.h"
    4745
    4846#include "PlayerInfo.h"
     
    7876        this->spawned_ = false;
    7977        this->readyToSpawn_ = false;
    80         this->isFirstSpawn_ = true;
    8178
    8279        this->registerVariables();
     
    313310        {
    314311            if(this->hasStarted() && !this->hasEnded())
     312
    315313                this->setSpawnedHelper(player, true);
    316         }
    317 
    318         // TODO We might want to handle the subsequent spawns as well somehow
    319         if(player->isHumanPlayer() && player->isLocalPlayer() && this->isFirstSpawn_)
    320         {
    321             this->isFirstSpawn_ = false;
    322             this->getLevel()->getScriptableController()->setPlayer(player);
    323 
    324             // This handles paths relative to the 'level' directory
    325             std::string script = this->getLevel()->getScript();
    326             if(script.at(0) != '/')
    327                 script = "../levels/" + script; // Not very dynamic
    328             this->getLevel()->getScriptableController()->runScript(script);
    329314        }
    330315    }
  • code/branches/Presentation_HS17/src/orxonox/infos/GametypeInfo.h

    r11686 r11690  
    8383            inline bool isStartCountdownRunning() const
    8484                { return this->bStartCountdownRunning_; }
    85 
     85           
    8686            void changedStartCountdownRunning(void); // Is called when the start countdown has been either started or stopped.
    8787
     
    168168            bool spawned_; //!< Whether the local Player is currently spawned.
    169169            bool readyToSpawn_; //!< Whether the local Player is ready to spawn.
    170             bool isFirstSpawn_;
    171170    };
    172171}
  • code/branches/Presentation_HS17/src/orxonox/infos/HumanPlayer.cc

    r11686 r11690  
    3838#include "gametypes/Gametype.h"
    3939#include "overlays/OverlayGroup.h"
    40 #include "Level.h"
    41 #include "scriptablecontroller/scriptable_controller.h"
    4240
    4341namespace orxonox
Note: See TracChangeset for help on using the changeset viewer.