Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8944


Ignore:
Timestamp:
Nov 23, 2011, 2:14:29 PM (12 years ago)
Author:
eceline
Message:

level file added

Location:
code/branches/spaceraceTwo
Files:
1 added
4 edited

Legend:

Unmodified
Added
Removed
  • code/branches/spaceraceTwo/src/modules/gametypes/SpaceRace.cc

    r8940 r8944  
    4646        RegisterObject(SpaceRace);
    4747       
     48         const std::string& message = "SpaceRace constructed";
     49         orxout()<< message << endl;
     50   
    4851        this->bTimeIsUp_ = false;
    4952        this->numberOfBots_ = 0;
     
    5255       for (std::map<PlayerInfo*, Player>::iterator it = this->players_.begin(); it != this->players_.end(); ++it)
    5356        {this->checkpointReached_[it->first]=0;}
     57       
     58       
    5459    }
    5560   
     
    9297
    9398    void SpaceRace::start()
    94     {
    95                            this->spawnPlayersIfRequested(); Gametype::checkStart();
     99    {
     100                Gametype::start();
     101                           this->spawnPlayersIfRequested(); //Gametype::checkStart();
    96102                           this->cantMove_=true;
    97103         
  • code/branches/spaceraceTwo/src/modules/gametypes/SpaceRaceManager.cc

    r8940 r8944  
    4545    {
    4646        RegisterObject(SpaceRaceManager);
    47                
     47         
     48          const std::string& message = "SpaceRaceManager constructed";
     49         orxout()<< message << endl;     
    4850    }
    4951
  • code/branches/spaceraceTwo/src/orxonox/gametypes/Gametype.cc

    r8918 r8944  
    134134               
    135135            }
    136                  
    137                 this->checkStart();
     136           
     137             const std::string& message = "Gametype should start";
     138         orxout()<< message << endl;   
     139                this->start();
     140                const std::string& message2 = "Gametype should have started";
     141         orxout()<< message2 << endl;
     142         
    138143        }
    139144        else if (!this->gtinfo_->hasEnded())
     
    144149
    145150    void Gametype::start()
    146     {
     151    { const std::string& message = "Gametype starts";
     152         orxout()<< message << endl;
     153         
    147154        this->addBots(this->numberOfBots_);
    148155
     
    150157
    151158        this->spawnPlayersIfRequested();
     159       
     160         
    152161    }
    153162
  • code/branches/spaceraceTwo/src/orxonox/infos/GametypeInfo.cc

    r8898 r8944  
    164164    {
    165165        if(this->bStarted_)
    166             return;
     166           {const std::string& message = "bStarted true";
     167         orxout()<< message << endl; return;}
    167168       
    168169        this->bStarted_ = true;
    169170        this->changedStarted();
     171       
     172        const std::string& message = "bStarted true";
     173         orxout()<< message << endl;
    170174    }
    171175
Note: See TracChangeset for help on using the changeset viewer.